on 01-03-2012 10:11 AM
Hi all,
I am facing a problem with dropdown in webdynpro. I want to display a dropdown hardcoded and passe the text to an atribute with is located inside a node , so i can use it with adobeforms. The node where the atribute is located has cardinality 1..1
Can anyone help me out.
Regards,
Nirali
Hi Nirali,
Try creating a simple data type with enumeration type filled with hard coded values. try assigning this simple data type to the dropdown input field properties, "value ".
This should solve your problem.
Hope it helps or let me know further in detail of your requirement.
Regards
Uday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Assuming you have your key-value pairs already available in a Map, use the following to create a dropdown for your field's attributeInfo:
IWDAttributeInfo attrInfo = wdContext.node<YourNode>().getNodeInfo().getAttribute(IPrivate<YourView>.I<ViewElement>Element.<YourField>;
IModifiableSimpleValueSet svSet = attrInfo.getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
svSet.clear();
for (Iterator i = map.entrySet().iterator(); i.hasNext();) {
Map.Entry entry = (Map.Entry) i.next();
svSet.put(entry.getKey(), (String)entry.getValue());
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I got it solved by another way.
DATA:
s_element type WDR_CONTEXT_ATTR_VALUE,
it_inst type table of WDR_CONTEXT_ATTR_VALUE,
clear s_element.
s_element-text = 'text1'.
s_element-value = '1'.
APPEND s_element to it_inst.
clear s_element.
s_element-text = 'text2'.
s_element-value = '2'.
APPEND s_element to it_inst.
clear s_element.
s_element-text = 'text3'.
s_element-value = '3'.
APPEND s_element to it_inst.
NODE_INFO->SET_ATTRIBUTE_VALUE_SET(
NAME =name of attribute
VALUE_SET = it_inst ).
Thks for the reply!
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
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.