on 02-11-2008 7:38 AM
Hi all,
I have taken a node(Status_node) and an attribute(STATUS_TABLE) in that node and i have bind that nodeattribute to the dropdown key which is in a UITABLE but iam unable to set the values to that dropdownkey.
so anyone help me out in solving this issue.
the code that i hvae used is:
IPrivateUpdateDefectsPage.IStatus_nodeElement tablestatus = wdContext.nodeStatus_node().createStatus_nodeElement();
tablestatus.setSTATUS_TABLE(Status);
wdContext.nodeStatus_node().addElement(tablestatus);
HI Ayyapparaj KV ,
Thanks for your Reply,actually my problem is I am able to populate values in dropdown but i have to retrive the value from DATABASE and i have to set that value to dropdownd but i am not able to do so.
so plz help me out in solving this issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the following code to populate the dropdownn
ISimpleTypeModifiable modifiable = wdContext.getNodeInfo().getAttribute("Your Attribute").getModifiableSimpleType();
ISimpleValueServices simpleValueServices = modifiable.getSVServices();
IModifiableSimpleValueSet simpleValueSet = simpleValueServices.getModifiableSimpleValueSet();
for(int x=0; x<10;x++)
{
simpleValueSet.put(String.valueOf(x), String.valueOf(x));
}
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.