on 03-02-2006 12:28 PM
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
Sreekar,
If you are using NW04 SP13+ version or NW04s, then add "nodeElement" parameter mapping for onLeadSelect action handler as described here:
/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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.