• 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.

Post/Get variable availability

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

  • Post/Get variable availability

    I am trying to retrieve the variables (parameters) passed to an RPG button program using vvIn_Char(). But I'm attempting to do this in a form helper program.
    It appears these variables are only available within the button program??

    Do I need to use app variables instead?

    Thx

  • #2
    Are you trying to reference a "form helper" program in the "Call RPG Program" action? If so, this cannot be done.

    Comment


    • #3
      The form helper program is called later...
      1. Button program is called with several variables passed into it
      2. Form Helper program may or may not be called afterward

      I would like to get the the variables (passed into the button program) if/when the form helper is called

      Sounds like I need to store the values in app variables when the button program runs?

      Comment


      • #4
        Sorry, I am still not completely understanding the process flow. But generally I would say yes, if you want to share values across different programs you would either want to use app variables or use session variables via vvUtility_setSessVar / vvUtility_getSessVar.

        Comment


        • #5
          I have it working with app variables.

          The situation:

          A button click prompts the user for two values, then creates a new RMA Order (return) with header and detail lines. These two values are used to populate values in the database records created by the button click - works great.
          The app has an "add" button allowing the user to add a new line item to the RMA Order by way of a form.
          I would like to populate the form with those two values previously entered by the user.

          Populating the app variables in the button RPG program is working - I just didn't know if there was another (better) way.

          Comment

          Working...
          X