• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Can you set a default value on a dropdown list?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can you set a default value on a dropdown list?

    My initial values program is setting an app variable to a default value based on the location of a user (using IP ranges).

    I would like to set the default value for a dropdown list defined as a Prompt when calling an RPG program. In developer tools, I can see my app variable being set correctly, but my prompt always shows the first value in my list.

    Example... my app var "defaultZebraPrinter" is set to the value of 'ZEB08' in the initial values program.

    But when the prompt is loaded, it is replaced with the first item in the list. Occasionally, I see the expected value but it's quickly replaced by the first item in the list.

    What am I doing wrong?

    prompt.png

  • #2
    We will attempt to replicate and see if we have the same issues. We will report back once we do so. Thanks

    Comment


    • #3
      How are you setting the app variable? Linking to a form field value, from a button click, etc.? We are unable to replicate an issue with defaulting the value of a dropdown via an app variable in the prompt before calling an RPG program.

      Comment


      • #4
        The app variable is set in a startup program.

        Here is some new information.
        This works using a row button that has an action to call the RPG program and prompt.
        It does NOT work when using a button to fire an event, which has an action to call the RPG program and prompt

        Weird.

        In this case, the buttons are calling the same program and prompting the same (different action).

        Comment

        Working...
        X