cancel
Showing results for 
Search instead for 
Did you mean: 

need some help regarding slection of table records , where table is dynamic

Former Member
0 Kudos

hi,

i need some help regarding.

I have created a table Dynamically and populated with table data.

I need to fetch the selected record from the table.

can anyone point out how could i get the selected record from the table.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

You can create an action and bind this to the table onLeadSelect and select the current record as wat we do in static table

In the action,wdContext.current<Node>element.get<Attribute>

Regards

Saravanan K

Former Member
0 Kudos

Please be more careful in terminology:

The Table UI element has no property "leadselection", but it has an event "onLeadSelect" to which an action can be assigned.

Armin

Former Member
0 Kudos

Hi Armin,

Thanks for your correction. The correction has been made

Regards,

Saravanan K

Former Member
0 Kudos

Hi Armin,

Yes You are correct

Kind Regards

Mukesh

Former Member
0 Kudos

hi,

Ia m able to bind the onleadSelect event to the dynamially created table .

But i was not able to select the table records.

default first record was only selected.

can u help me out to find the way.

i am pasting the code for reference.

can u suggest me the right direction.

i want the selected record in the table to be dispalyed in another view thru this action event.

but only the forst record is now getting selected by default.

here the code.

IWDNode node =wdContext.currentContextElement().node().getChildNode(nodename,0);

for (int l = 0; l < node.size(); l++) {

int ele = node.getLeadSelection();

IWDNodeElement element= node.getElementAt(ele);

}

table.setOnLeadSelect(wdThis.wdGetObjectSelectedAction());

Former Member
0 Kudos

Hi,

Let us dynamic node 'DynamicNode'. After binding into table, bind one action in "onLeadSelect" property. Inside action String value=wdContext.current<DynamicNode>Element().get<Parametername>();

Kind Regards,

S.Mukesh Mani.

Message was edited by: Mukesh mani