Auto Field UserName

  • Alexander
        5 years ago #14561

        Hi,

        why does the Auto Field UserName always return an empty string in the desktop version?
        Is an in-app login necessary or is there another solution?

        BR
        Alexander

        Chris Bouveret
            Has successfully completed the online course Introduction
            Has successfully completed the online course Intermediate (200)
            Has successfully completed the online course Advanced (300)
            Has successfully completed the online course Basics (100)
            Has successfully completed the online course Advanced (320)
            Has successfully completed the Intermediate Certification
            Has successfully completed the Advanced Certification
          5 years ago #14562
          Up
          0
          Down
          ::

          Hi Alexander,

          the autofield “userName” returns an empty String because your app has no login implemented (anonymous usage), so there is no user logged in for this App, that is why the autofield is empty on the Desktop. You need to implement a Login to your App (new Login Screen in UI Designer + Server Action in Process Designer)
          This will give the Desktop access to the logged in User. On the mobile phone this is always possible because the User needs to login and thus autofield is not empty.

          Hope this helps.

          Best
          Chris

          Martin
              5 years ago #14578
              Up
              0
              Down
              ::

              Hi there,

              is there a fancy way to use or bypass the login during testing and developing?
              or at least to keep the user logged in for development purpose. or manually be able to set the AutoField.

              Because our datamodel behind checks for empty string/null value…

              best regards,
              martin

              btw: i really appretiate your response time, chris! keep it going 🙂

              Chris Bouveret
                  Has successfully completed the online course Introduction
                  Has successfully completed the online course Intermediate (200)
                  Has successfully completed the online course Advanced (300)
                  Has successfully completed the online course Basics (100)
                  Has successfully completed the online course Advanced (320)
                  Has successfully completed the Intermediate Certification
                  Has successfully completed the Advanced Certification
                5 years ago #14579
                Up
                0
                Down
                ::

                Hi Martin,

                you could use a Global Variable with a Constant for testing purposes, simulating the Login.
                The Easiest way would be to use the Mobile Client and use the “Save Login” feature though.

                Best
                Chris

              Viewing 4 posts - 1 through 4 (of 4 total)

              You must be logged in to reply to this topic.