cancel
Showing results for 
Search instead for 
Did you mean: 

Working on Table

Former Member
0 Kudos

Hi,

I have created table(dynamically). so when i select one row(say email address) it should display in the input field which lie on the other view.

Every thing is dynamically

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Amit,

So what's the problem in that??

regards

Sumit

Former Member
0 Kudos

how do i do this????? i tried a lot but not getting..... please help me

Former Member
0 Kudos

Hi,

You mean that you have the table created dynamically with the data. Now when you select a record it should display the email id in the inputfield.

For that you can easily map the attribute of the email id to the inputfield as well.

Your attribute should be mapped to both the views via controller.

Edited by: Manoj Kumar on Jan 24, 2008 12:43 PM

Former Member
0 Kudos

but i've taken attribute also dynamically. so tht im not getting how to connect these attribute

Former Member
0 Kudos

Hi,

You can crate an action (design time) that triggers the changes in your view.

You can bind this action dynamically to the table you create dynamically.

table.setOnLeadSelect(Action yourDesignTimeAction);

Good luck,

Roelof

PS if you need to pass parameters you also need to set the mappingOfOnSelect in your wdDoModifyView method, and process that parameter in you onAction handler.

Edited by: R. Knibbe on Jan 24, 2008 9:38 AM

Former Member
0 Kudos

HI Amit,

For table u need to do this..

IWDTable tab = (IWDTable)view.getElement("tab");

tab.bindDataSource(pass the nodeInfo for ur node)

I think u have created the node for table datasource, doesn't matter even if its created dynamically or not.

for input field u have to do this

IWDInputField in = (IWDInputField)view.getElement("input");

in.bindValue(pass the attributeInfo for ur attribute)

regards

Sumit