cancel
Showing results for 
Search instead for 
Did you mean: 

trigger table row event

Former Member
0 Kudos

how do i able to trigger the table row event

for webdynpro table ...how do i trigger the event

for instance:


Public Sub tablerow_click() handles tablerow.clicked
  //code here
End Sub

Message was edited by:

yzme yzme

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Create an action and bind it to the onLeadSelect event of table.

Regards

Fahad Hamsa

Former Member
0 Kudos

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

Message was edited by:

yzme yzme

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Instead of <b>wdContext.currentEmailInDetailsCommandBeanElement().setAttachmentName("abc");</b>

can u try

elem.setAttachmentName("abc");

Regards

Fahad hamsa