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

Launch Apps via App Variables from other Apps

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

  • Launch Apps via App Variables from other Apps

    We need to Launch apps from other apps using appvairbles, appvariable will get the App Name under certain conditions like row click etc and then the whatever App Name it holds should be launched. Same as Lauch URL but here we want to launch inside the portal itself and not in different browser tab.

  • #2
    I would suggest the following:
    • Create an app variable named "dynamicAppId" or similar
    • Add a URL Utility Widget to your application
    • Upon row click set the dynamicAppId app variable to the app id of the application you want to launch
      • Not sure if the data on the record has this info or you need to Call RPG Program to set the value
      • Then perform action "Link URL"
        • Set the URL to: build/production/Runner/index.html?app={[dynamicAppId]}
        • Also check the "Apply Portal Security" checkbox

    Comment


    • #3
      This is not working
      image.png​

      image.png​
      image.png​

      Comment


      • #4
        Place a "/" before "build"...so "/build/production/Runner/etc...."

        Comment


        • #5
          It worked, but the app opens in the same app.
          we want it to open as it would open when we do Launch App i.e. open new app in portal tab. we would also want to open multiple apps from one app in similar way.

          Comment


          • #6
            How do you know which app to call? Do you make a back-end call or is all of the necessary info on the record that is clicked?

            Comment


            • #7
              We have all the necessary information available in the Grid itself, including the App Name and a hidden App ID. The decision about which app to launch is made at runtime, using the data already present on the clicked record

              Comment


              • #8
                OK, in this case then I would use an "Execute Script". Upon clicking a row save off the app id to an app variable: "launchAppId".

                Your execute script would look like:
                Code:
                Valence.util.App.launch({
                  app : getAppVar('launchAppId')
                });
                success();

                Comment


                • #9
                  This is working as expected. Thank you!

                  Comment

                  Working...
                  X