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

Setting default values in form widgets

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

  • Setting default values in form widgets

    I have a Customers app that contains three form widgets.. by RPG program sets the default values when adding a new customer. This works fine when the app is running standalone. But when it's called from another app, the default values do not populate.

    In the RPG pgm I'm using SetWidget('formName') then SetResponse('formFieldValue':'MYFIELD': 'value').

    Do the friendly widget names still exists when calling an app from within another app?

    thx.

  • #2
    There should be no difference. What type of RPG program in the Customers App sets the form field values? A button template program, form helper program, etc.?

    Comment


    • #3
      It's a button program...

      /include qcpylesrc,vvNabBtn

      Here's the odd thing... This only happens the FIRST time you click the button (in the Order Entry app) to add a new customer (opening this app). Any time after that, it works.

      Comment


      • #4
        Greg,

        Can you send an email to support? If possible, I would like to get on a quick Zoom to go over this one. Thanks!

        Comment

        Working...
        X