cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in leadselection of a Basic TableUIElement

Former Member
0 Kudos

HI Experts,

i have created two views

in first view i have some table data .

now i need to get the on lead selected row values in next view .

For this one i mapped both views to same node and attributes through Component controller.

With this one i am getting only first row values in second view irrespective of selected row.

I need to get Selected row values only in second view,

please anybody help .

Thanks and Regards,

Shashi

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

I don't believe that. If you bind e.g. an InputField to an attribute under the table data source, this input field will always display/edit the attribute of the lead-selected node element.

Armin

Former Member
0 Kudos

Hello Shashi,

Now try this way;

You have a view A with main table and view B with other control to display the selected values from view A table.

You have a structure that is binded to the table and now create Context elements at both views and Component Controller for the fields that you want to display at second view. Map this elements.

On Table lead selection you have to assign the values from table node to the context elements.

This will work.

Regards

- Vinod

*

Former Member
0 Kudos

Hi ,

try the logic given below....

Create a valueAttribute called lsel in both view and also bind them.

1)In first view

wdContext.currentContextElement.setLsel(wdContext.node<table>.getLeadSelect());

2)In Second View onPlug from view1 method:

int arg1 = wdContext.currentContextElement().getLsel();

wdContext.node<table>.swapElements(0,arg1);

Regards,

Sunitha Hari.

Former Member
0 Kudos

just tell u written in the onselected action of that table UI element......

u have to set the component controller's context element from there

xxxxxxxxxxxxxxxxxxxxxxx

Warm Regards

Shanto Aloor

Edited by: Armin Reichert on Apr 26, 2008 6:40 PM