on 06-26-2007 12:47 AM
Hi,
I am trying to pass value to the Adobe form input field. For example i designed a input field NAME. I want to pass value to this UI element which is in Adobe form. I have used SET_ATTRIBUTE method. But i am not getting the reference of the element. After the below code, Elem_Ys_Af1 is initial. So its giving short dump.
Elem_Ys_Af1 = Node_Ys_Af1->get_Element( ).
I f i dont use Adobe form i.e In webdynpro for ABAP if i design a input field i can able to pass the value.
Any help is appreciated .
Solved the problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
UI elements in the Interactive Form are like UI elements in Dynpro's layout...
the difference is that you use interactive forms for placing the UI elements...
the UI elements likewise are connected to corresponding Context elements.
whenever online(the pdf) the contents of the UI elements are mapped to the corresponding context attributes.
So ultimately it becomes sort of same as you work with dynpro UI elements.
you run get/set methods on context attributes to do changes to the contents of UI elements.....
like
wdContext.current<Node>Element().set<attribute>("the text");
to pass value to the Input Box it should be mapped to the context attribute.
UI elements in the Interactive Form are like UI elements in Dynpro's layout...
the difference is that you use interactive forms for placing the UI elements...
the UI elements likewise are connected to corresponding Context elements.
whenever online(the pdf) the contents of the UI elements are mapped to the corresponding context attributes.
So ultimately it becomes sort of same as you work with dynpro UI elements.
you run get/set methods on context attributes to do changes to the contents of UI elements.....
like
wdContext.current<Node>Element().set<attribute>("the text");
to pass value to the Input Box it should be mapped to the context attribute.
hi,
to populate the dropdown list you can do it...
1). manually or
2). by code
1). <b>manually</b> go to interactive form->edit
go to Object tab->field tab ->
you must see something like
List Items :
Text + x
click on the green + sign...
it promps you to type. type in the value press enter... and so on...
2) <b>by Code...</b>
//set up contents of a drop down list dynamically...
IWDAttributeInfo countryInfo = wdContext.nodeTravelData().getNodeInfo().
getAttributeInfo().getAttribute("DestinationCountry");
ISimpleTypeModifiable countryType =
countryInfo.getModifiableSimpleType();
IModifiableSimpleValueSet countryValueSet =
countryType.getSVServices().getModifiableSimpleValueSet();
countryValueSet.put("1","Germany");
countryValueSet.put("2","UK");
This will work....
regards,
-amol gupta
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.