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

Retrieving nabUser in mobile

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

  • Retrieving nabUser in mobile

    I have an app that uses a form to capture a comment from a user when a specific action is taken. Part of my rpg program retrieves the nabUser app variable to stamp an audit record. This works fine in the desktop version of my app, but the mobile version does not pick up the nabUser value. Is this a bug or am I doing something wrong?

  • #2
    We are unable to replicate this issue. Are you using a copy of the 'EXNABBTN' program and performing the following?
    Code:
    GetAppVar('nabUser')

    Comment


    • #3
      Here's the line of code in my RPG program:

      lUser = %upper(%trim(GetAppVar('nabUser')));

      I get a value if desktop but not if mobile. It's the same RPG program and same app.

      Comment


      • #4
        Any more thoughts on this? I can't use the mobile version while the issue persists. I'm using the Valence Portal Android app.

        Comment


        • #5
          If you modify your RPG program to respond with the user upon a button click, do you see the user in the front-end's info message at the bottom of the application?

          Code:
          SetResponse('success':'true');            
          SetResponse('info':GetAppVar('nabUser'));

          Comment


          • #6
            I see it on desktop, but not on mobile

            Comment


            • #7
              Unfortunately, we cannot replicate this on an Android or iPhone device.

              Could you please create a brand new NAB application, place any widget in it, please do not add any new app variables to it, and then add a button to the widget?

              This button should call a new RPG program, which is based on EXNABBTN. The program's sole function is to respond with the 'nabUser' value via the 'info'.

              Below is the only RPG code that should be in the process procedure.
              Code:
              SetResponse('success':'true');
              SetResponse('info':GetAppVar('nabUser'));
              Please let use know if you see the user in the front-end's info message at the bottom of the application

              Thanks

              Comment

              Working...
              X