cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice output (arraylist) into table in WD java

Former Member
0 Kudos

Hi All,

I am stuck into development issue.

I have used adaptive webservice model in my application and now the output of webservice is of type arraylist.

When user will enter some values as input the values should be displayed in a table.

Now could you please help me how to retrieve the result from arraylist of webservice to the table in wd java..

Thanks,

Anupama

Accepted Solutions (1)

Accepted Solutions (1)

p330068
Active Contributor
0 Kudos

Hi Anupama,

Create the custom node and attributes with cardinality 0 to n (refer to [Node and Node element |http://help.sap.com/saphelp_nw70/helpdata/en/92/1d3d41d4cc4c0de10000000a1550b0/content.htm]) and then popoulate node element with Array list values.

Refer to Array List iteration : [Click here|http://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/fbb99f25-e15e-40f4-8251-e21ac44424a3/]

Populating the Custom context node : [Click here|;

Best Regards

Arun Jaiswal

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Anupama,

Check the code snippet from [this link|http://www.sapgeek.net/2011/01/web-dynpro-java-how-to-consume-web-service/] to consume webservices in webdynpro java application and bind the node to table UI element.

Hope this help!

Regards,

Thirumurugan.A

Former Member
0 Kudos

Hi Anupama,

Check the code snippet from [this link|http://www.sapgeek.net/2011/01/web-dynpro-java-how-to-consume-web-service/] to consume webservices in webdynpro java application and bind the node to table UI element.

Hope this help!

Thanks & Regards,

Thirumurugan.A

Former Member
0 Kudos

HI Anupama,

Could you please eloborate your requirement further...but according to my understanding you can create a value node with all the attributes required and bind it to a table.

You can read the arraylist from webservice, iterate the arraylist object and bind the values to the value node.

You can go through this link http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/5f699f90-0201-0010-14a4-8950177281ed

Hope this helps you...

Regards,

Saleem Mohammad.

Edited by: Jason Lax on Dec 28, 2011 2:37 PM (Fixed broken link)