on 01-24-2008 6:34 AM
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
Hi Amit,
So what's the problem in that??
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.