on 10-08-2008 7:07 AM
Hi,
I have implemented a table with TreeByNestingTableColumn(To show the tree structure in the table).I am not able to get the selected row element in lead selection method.(I am able to get parent element.) .
could anyone please tell me about this code?
BR,
Ashish
What do you mean with "I am able to get the parent element"?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Follow the below steps to the solution for your problem
1. Create Action "LeadSelection" in View with parameter (name : 'seletedItem'
and type : I<your node>Element
2. Bind this action to Table property "onLeadSelec"
3. In wdModify()
IWDTable table = (IWDTable) view.getElement("Your table id");
table.mappingOfOnLeadSelect().addSourceMapping("nodeElement", "selectedEle");
4. In onActionLeadSelection()
wdComponentAPI.getMessageManager().reportSuccess("Selected Item : "+selectedEle.get<Your Node Attribute>());
Let me know if you need more clarification
Thanks
Hi Ashish,
Go throuh this for code:[http://help.sap.com/saphelp_nw04/Helpdata/EN/c2/abfceffbacd24185ec7af8a3a2e76a/frameset.htm]
Regards,
Khushboo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashish
Please go through this link
Hope it will be helpful for u
Regards
Ruturaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
have you tried the currentElement method on the node that is bound to the table.
Ex: wdContext.currentContextElement();
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
public void onActionleadselection(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
int n = wdContext.nodeTable().size();
int leadSelected = wdContext.nodeTable().getLeadSelection();
// loop backwards to avoid index troubles
for (int i = n - 1; i >= 0; --i) {
if (wdContext.nodeTable().isMultiSelected(i) || leadSelected == i) {
wdContext.nodeTable().getElementAt(i));
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.