cancel
Showing results for 
Search instead for 
Did you mean: 

Pass value to Adobe form Input field

Former Member
0 Kudos

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 .

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Solved the problem

Former Member
0 Kudos

Hi,

Kindly detail on how you resolved your issue.

Thanks and Regards,

- anto.

Former Member
0 Kudos

Please expalin us in detail, how could you solved this.

Former Member
0 Kudos

Please expalin us in detail, how could you solved this.

amolgupta
Active Contributor
0 Kudos

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.

amolgupta
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi Amol,

How do you pass the values to the dropdown in a Adobe form.

can you please detail on it.

Thanks and Regards,

Anto.

amolgupta
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Amol,

Can you please tell me how do I capture an "Enter" event in the adobe form and then call an action?

In WebDynpro, we have the UI property onaction event, but here we do not have.

Will appreciate your help.

Thanks,

Shobhit