cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Selection of a row in Tree By Nesting UI Element

Former Member
0 Kudos

Hi

I have a table containing 2 columns mapped to a context node. Also a TreeByNestingUIElement is also there.

I wished to implement OnLeadSelect() for the table. I mean when i select a row, the value of the first column of that row gets populated in another context attribute "selectedValue"

It would be great if anyone tell me how to implement the code

Regards

Sreekar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Sreekar,

If you are using NW04 SP13+ version or NW04s, then add "nodeElement" parameter mapping for onLeadSelect action handler as described here:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c092333b-0601-0010-e7af-8c2...

/people/bertram.ganz/blog/2005/09/13/new-web-dynpro-sample-available--enhancing-table-performance

Otherwise follow guidelines described in my blog:

/people/valery.silaev/blog/2005/06/20/master-of-columns-part-ii

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sreekar,

1) While creating an action for leadSelect add two parameters one of type int (selectRow) and another type String (selectCol).

2) Now in wdDoModify() add this code

IWDTable tab = (IWDTable)view.getElement("TableID"); tab.mappingOfOnLeadSelect().addSourceMapping("row","selectRow");

tab.mappingOfOnLeadSelect().addSourceMapping("col","selectCol");

3) On selecting a row u will get the selected row count and the ID of the column that u selected.

4) Now set the new context with this value.

regards,

Piyush.