Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to write lead selection method for a tree by nesting table column

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

Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question