cancel
Showing results for 
Search instead for 
Did you mean: 

Populating ListBox values from RFC in webdynpro Java

0 Kudos

Hi Experts,

I am using Webdynpro for Java for developing adobe forms.

In adobe form, i have to provide one box, where the user can select multiple values. I have few queries for this.

1. Can I use ListBox UI for this? Or something else?

2. In adobe Library list, List Box is not available in Webdynpro native tab. I can see List box in other two tabs. One in Standard tab and other in Custom tab. Which one should I use for this. Or I have to just drag the context variable from Data View and change the field type to List Box?

3. I have to populate values from a fuction module. I know how to execute and get the values from an RFM. I want to know, how will be the context structure for list box and it's mapping with ListBox UI and how can i populate the values from RFM node to this List Box.

Any help will be highly appreciated.

Thanks,

Fahad Hamsa

Accepted Solutions (0)

Answers (3)

Answers (3)

OttoGold
Active Contributor
0 Kudos

Thank you for sharing. My respect, Otto

0 Kudos

Hi All,

My issue is resolved. I wil explain, what I did, so that someone may find it useful.

1. I had dragged one ListBox UI from Standard Library

2. Created Node structure for this ListBox as follows

AddressNode (RootNode for Form: Cardinality-1:N)

->ListBoxNode (The node for ListBox with caridnality- 0:N) with attributes Key and Value

3. Do the mapping of List Box to the node created. For that, follow the steps below.

Click on ListBox. Go to Object->Binding. Click on Specify Item Values(Green Link).

In Items field, enter $record.ListBoxNode[*]

In Item Text field, enter Key

In Item Value field, enter Value

4. Populate the values in the node bound to List Box as follows.

IPrivate<View>.IListBoxNodeNode lbNode = wdContext.nodeListBoxNode();

for(int i=0;i<5;i++)//Putting 5 values in the list box node

{

IPrivateTestCompView.IListBoxNodeElement lbEl = lbNode.createListBoxNodeElement();

lbNode.addElement(lbEl);

lbEl.setKey("Key"(i1));

lbEl.setValue("Value"(i1));

}

Hope this will be helpful for some one.

If anyone face issue in this, please let me know. I can share the sample project

I m really worried, as i did not get any response for my query from such a popular forum

It may be because my question is not clear.

Thanks guys.

Fahad Hamsa

Former Member
0 Kudos

Hi,

I am able to populate the value from RFC in my value node and I have binded the value with drop down list. However when I run the application and drop down in the adobe interactive form is inactive but I can see that the value is populated in the dropdown, the first value is displayed, any clue ?

Best,

Vinit Pugaliya

0 Kudos

Hi,

Can anyone help on this please..

Thanks

Fahad Hamsa