Skip to Content
avatar image
Former Member

Prefill drop-down element with Web Service data

Hi

I would like to prefill a drop-down element with the values that I got from a Web Service, e.g. Countries.

Is this possible???

If yes, what must be the return value of this WebService call??

e.g. List, Resultset??

Regards,

Go:khan

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 26, 2007 at 08:40 AM

    Hi Goekhan,

    I think this should be possible. I did it with a ABAP RFC. The return value was in my RFC a table. I'm sorry that I have no experience with webservices in this case. If a List or resultset does not work you can use two returnvalues a key (integer) and a text (string) in two arrays.

    Maybe Mario knows more about this case.

    Best Regards,

    Marcel

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Marcel

      Thanks for you contribution.

      Using a key/value pair sounds like a sound idea. I will give it a try.

      Has s.o. of you experiences in calling Web Services for prefilling a drop-down UI element??

      Regards,

      Go:khan

  • avatar image
    Former Member
    Jan 26, 2007 at 10:38 AM

    Hi,

    I think it depends on your VC version.

    I'm using NW2004s SP9 and I couldn't make it work. I tried using a dynamic integration of a WS and also added additional entries. The result was only a display of the manual added entries. The WS didn't deliver any result. Maybe this is solved in SP 10 now, or I forgot something. If somebody had success with the inclusion, I'm very interested, too.

    Tobias

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 31, 2007 at 07:14 AM

    Hi Goekhan,

    In the CSN note 995481 it is said that, Patch 2 for SP9 has been released and it has the fix for dropdown and webservices. You will have to install patch 2 for VC and patch 5 for portal to get the complete fix. But even after applying these patch files, <b>drop-down's dynamic entry list with web service</b> remains a bug.. I did not get this resolved yet.

    Kavitha.

    Add comment
    10|10000 characters needed characters exceeded