Skip to Content
0
Former Member
Feb 16, 2007 at 07:45 AM

java.lang.IndexOutOfBoundsException: Index: 5, Size: 0

555 Views

table A -

emailid date-in sender recipient

Table B

attachementid attachmentname

i have problem with another issue

i have a master (table) detail (text and textview)

table is bind to nodetable (model)

detail is bind to nodedetail (model)

everytime when i run the i clicked the row,

i want the details to show out....

if i replace with this

IPrivateMailInboundView.IEmailInCommandBeanElement element=wdContext.nodeEmailInCommandBean().getEmailInCommandBeanElementAt(i);

wdContext.currentTablesEmailInElement().setDateIn("abc");

it works ok ..it will change the table row column [date-in] to "abc"

but my intention is to change the detail table attachement-name

public void onActionrowSelected(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
  {
    //@@begin onActionrowSelected(ServerEvent)
	int n=wdContext.nodeTablesEmailIn().size();
	int leadSelected=wdContext.nodeTablesEmailIn().getLeadSelection();
	for(int i=n-1;i>=0;--i){
		if(wdContext.nodeTablesEmailIn().isMultiSelected(i) || leadSelected==i){
		
       
			IPrivateMailInboundView.IEmailInDetailsCommandBeanElement elem=wdContext.nodeEmailInDetailsCommandBean().getEmailInDetailsCommandBeanElementAt(i);
			wdContext.currentEmailInDetailsCommandBeanElement().setAttachmentName("abc");
			
			}
		}
    //@@end
  }

#1#java.lang.IndexOutOfBoundsException: Index: 5, Size: 0