on 02-18-2008 7:27 AM
Hi,
I am doing one application . This application contains 2 views. First view contain one table and second view contains no of forms which depend on no of records in table. ex. if table having 5 records then 5 forms will display on second view how i solve this problem ..please explain in brief...
Regards,
gurprit Bhatia
Edited by: GURPRIT BHATIA on Feb 20, 2008 10:59 AM
Hi,
"if table having 5 records then 5 forms will display on second view how i solve this problem "
make use of row repeater UI for this purpose.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think its not available in your version,
You can try as follows
loop through the elements create ui elements and context attributes
bind them to the Ui elements
for(int x=0; x<wdContext.nodeT().size(); x++)
{
IWDTransparentContainer transparentContainer = (IWDTransparentContainer)view.getElement("<Your Container>");
// Add labels if needed
IWDInputField inputField = (IWDInputField) view.createElement(IWDInputField.class);
IWDNodeInfo nodeInfo = wdContext.getNodeInfo();
//create a unique name and specify the datatype
IWDAttributeInfo = nodeInfo.addAttribute(name, dataType);
inputField.bindValue(attributeInfo);
//finally add it to the container
transparentContainer.addChild(inputField);
}
Regards
Ayyapparaj
wdocontext.node<name>.size();
After Getting the size try to create a dynamic UI elements based on the number of records in the first view.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.