on 03-17-2010 8:46 AM
Hi experts,
I have a drop down(DROP DOWN BY KEY) which has 2 enumaration value yes & No. My NOde name is DD_YES_NO.Attribute name is the same as NODE.I am not eble to set the value of the selected dropdown into the context attribute.
Please help me with possible code how to create a drop down and set the value of the drop down into the context attribute.
Its urgent.Please reply as early as possible.
Regards,
Aniruddha
Hi Aniruddha,
When u use DD by Key, u have to use a context attribute and not context Node. Try the following:
1. create a DD by UI element in the screemn.
2. create a context attribute of type String in the context tab
3. In the Dictionary part of the WD project, create a simple type "YesNo" of type String
4. In the Enumeration tab, enter values for key and values as "Y / Yes" "N / No"
5. Bind the context attribute to the simple type created.
then the values will be visible in the DD by key
Regards,
Poojith MV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aniruddha
Create Context node selection properties as 1:1
Write code for populating value in context node like
IDD_YES_NOElement ele = wdContext.createDD_YES_NOElement();
If(<Your Criteria>)
{
ele.setDD_YES_NO("Yes");
}else{
ele.setDD_YES_NO("No");
}
wdContext.nodeDD_NODE().addElement(ele);
And then bind to drop down.
Hope it helps,
Regards,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
try to change node attribute cardinality to 1.1, so that first value will be always shown by default.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.