on 12-31-2007 7:08 AM
Hi Expert;
I search a lot of docs, but no tutorial deal with this element.
Can anyone share some experience of how to use this element?
my scenario is:
there are two two drop down list A, B. B's list entry is based on the selection of A. so I have to dynamically retrieve B list. how can I achieve this?
Best regards,
John
Hi John,
Since values of drop down list B depends on value selected of drop down list A, please
1) create simple type of B's drop down list in local dictionary and populate with generic list(all values)
2) Alter B's list using IWDSimpleTypeModifiable option based on selection of A's drop downlist on event.
IWDNodeInfo selValsNodeInfo = wdContext.nodeSelectionValues()
.getNodeInfo();
IWDAttributeInfo attrInfo = selValsNodeInfo.getAttribute("Colours");
ISimpleTypeModifiable msType = attrInfo.getModifiableSimpleType();
msType.setFieldLabel("Alt Colours");
IModifiableSimpleValueSet valueSet = msType.getSVServices()
.getModifiableSimpleValueSet();
valueSet.put("Colour_10", "Pink");
valueSet.put("Colour_11", "Tan");
valueSet.put("Colour_12", "Saffron");
valueSet.put("Colour_13", "Lime");
valueSet.put("Colour_14", "Sky Blue");
valueSet.put("Colour_15", "Turquoise");
valueSet.put("Colour_16", "Purple");
Regards,
Ganga.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gangadharayya;
Thanks for reply:)
when the selection is changed, is there any event handler in webdynpro controller where i can place these code?
IWDNodeInfo selValsNodeInfo = wdContext.nodeSelectionValues()
.getNodeInfo();
IWDAttributeInfo attrInfo = selValsNodeInfo.getAttribute("Colours");
ISimpleTypeModifiable msType = attrInfo.getModifiableSimpleType();
msType.setFieldLabel("Alt Colours");
IModifiableSimpleValueSet valueSet = msType.getSVServices()
.getModifiableSimpleValueSet();
valueSet.put("Colour_10", "Pink");
valueSet.put("Colour_11", "Tan");
valueSet.put("Colour_12", "Saffron");
valueSet.put("Colour_13", "Lime");
valueSet.put("Colour_14", "Sky Blue");
valueSet.put("Colour_15", "Turquoise");
valueSet.put("Colour_16", "Purple");
But according to the previous post it seems it is Web Dynpro UI.
Ok, If it is Interactive form, Can you please let me know do you really need to get the dynamic data from the database or those can be static means you have fix number of value for dropdown B for each value in Drppdown A.
If this is the case you can handle that using Java scripts. One advantages of this you can use the form offline aswell.
This is the simplest solution but depeneds upon your excat requirement.
Regards
Satya
Hi Satyabrata;
There are two dropdownlist, one for selection of company, another is for selection of cost center which is based on the selection of company.
I am not very clear about how adobe form works.
Could you tell me :
how the context node data can go into adobe form?
then how I can use javascript to access those data?
Best regards,
John
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.