Skip to Content
avatar image
Former Member

Using Web Service output and input to dynamic dropdown list

Hi All,

I've got a very simple scenario. I have a form that contains a single dropdown list of user names. This list of user names provided by a web service that requires a role name as input.

On the "Entry list" tab of the dropdown I have Dynamic scope selected and have specificed the web service I want to use. If I hard code a role name in the input field for the web service then it works fine. I get a dropdown of user names who belong to that role.

However, I want to get the role name from another web service before the form is processed. I've dropped the web service onto the screen. The start signal is being passed to it. It runs OK and passes its output (a role name) to my form. I use the role name as the input field for the web service on the dropdown list.

However, at run time it does not work. The web service on the dropdown is called but the value is blank. It appears that the form is rendered as soon as the iView is run which is before the role name from web service is returned.

I've tried putting the form in a nested iView and passing the role name into it using signals but get the same problem. Using both techniques if I add an input field to the form and map the role name to it then it shows me the correct role name being returned from the web service.

This must be possible but I'm doing it wrong. Has anyone got any ideas ?

Many Thanks

Gary

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 04, 2009 at 07:06 PM

    Hi Gary,

    Try saving the role to the Store, and then use the value from store to run the second web service to see if it works. And see if you can user the "timer" to delay the second webservice by sometime.

    regards,

    AE

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 05, 2009 at 04:03 AM

    Hi

    Go to 'Tools -> List Manager' create Entry Global list here on that web service. Use this list in your drop down box from 'Global List' & use this list as a input. Also someyimes when you save the model the list option is set to default manual entry list again. Check it once before deplying the model.

    I think this will work.

    Regards

    Sandeep

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for the help Sandeep but as far as I can see it's not possible to use dynamic values for input parameters when defining a Global List. Am I doing something wrong ?

  • avatar image
    Former Member
    Jun 05, 2009 at 05:09 AM

    Hi Gary,

    Try to do this with layers. One layer for getting roll name and another layer for user names list. Make an action between two layers.

    Regards

    Basheer

    Add comment
    10|10000 characters needed characters exceeded