• 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 app with URL parm to preload filter on a grid

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

  • Launch app with URL parm to preload filter on a grid

    We are on Valence 6.1.20220316.0

    I am attempting to use an app variable in App1 to pass to App2 via behaviors.
    The idea is to pass a value from App1 to App2 that can be used to preload a filter in the grid in App2 and have the grid automatically filtered at startup.

    From App1 using ‘Launch App/URL’ and an App Parameter: Parameter Name SourceSystem value is set from app variable ParmSourceSystem

    In App 2 I have specified an app variable aSourceSystem and specified ‘Pull from URL Parameter’ SourceSystem.
    I had assumed that the App Parameter from App1 would be available to App2 as a URL Parameter.
    I then have a grid widget in App2 with a filter. In the grid widget I specified in ‘Link To App Variables’: Set Filters: F1_G10SRCSYS <= aSourceSystem.
    My idea was to have the grid in App2 filtered by the source system using the above specifications.
    Doesn’t appear that this works as I had hoped.

    Is what I am attempting doable using these specifications?

    thx

  • #2
    We will attempt to create an example on our end to see if we can replicate your results.

    Comment


    • #3
      We just tried this and it is working for us. Are you not seeing the value defaulted in your user filter field? Are your user filters in the toolbar or are you using another method?

      Comment


      • #4
        No, I am not seeing the value default in the filter.
        I am using the toolbar filter in the grid widget.

        Comment


        • #5
          Are you certain that your app variable "ParmSourceSystem" has a value when you launch App 2? When you launch App 2, bring up your network tools (be sure to select "All" traffic) and see what the value of the URL is to launch App 2.

          Comment


          • #6
            I am not certain which is the actual launch instruction, but i see this line:

            http://mbimint.mbi-inc.com:7064/reso...urceSystem=OMS &sid=S28EMBRQPNTHPTCHV77W7BUDOEHJHSK9WIRXHCHQ0YMLN JJV1DKHNE187NKGE1QP&lang=en&app=1245&vvKey=1647986 0454823592&env=1002

            And I see this line on a vvcall.pgm entry:

            Referer:
            http://mbimint.mbi-inc.com:7064/buil...MBRQPNTHPTCHV7 7W7BUDOEHJHSK9WIRXHCHQ0YMLNJJV1DKHNE187NKGE1QP&env =1002&key=16479860454823592&theme=default&SourceSy stem=OMS%20%20%20%20%20%20%20


            SourceSystem=OMS
            OMS is the expected value for the SourceSystem parm.

            Comment


            • #7
              Sorry. that post didn't post so well.

              mbimint.mbi-inc.com:7064/build/production/Runner/index.html?app=1245&lang=en&sid=S28EMBRQPNTHPTCHV7 7W7BUDOEHJHSK9WIRXHCHQ0YMLNJJV1DKHNE187NKGE1QP&env =1002&key=16479860454823592&theme=default&SourceSy stem=OMS

              Something rather strange is happening in here with &SourceSy stem=OMS.
              Not sure if it is just a cut and past issue or what?


              Comment


              • #8
                Does the URL actually have a space after "SourceSy"?

                Comment


                • #9
                  Copy your URL into a new tab on your browser (be sure there is no space after "SourceSy"). Does it work then?

                  Comment


                  • #10
                    I copied the link to the address bar in a new tab and my Catalog search app came up, but the filter field is loaded with the default value instead of the SourceSystem value:

                    Xttp://mbimint.mbi-inc.com:7064/build/production/Runner/index.html?app=1245&lang=en&sid=G5KVTX2DN1VU5V8JXC 0FGX17BN6CI0ET8CSFUQZ561SU0OA2R2ZCSREVI9O6366M&env =1002&key=16480382778871826&theme=default,default& SourceSystem=OMS%20%20%20%20%20%20%20#login

                    Comment


                    • #11
                      Would it be helpful to see the datasource call?

                      Xttp://mbimint.mbi-inc.com:7064/valence/vvcall.pgm?_dc=1648038771243&pgm=vvdatasrc&action= getData&VVID=1858&metaData=1&skipCount=0&fetch=0&u seCache=&maxResults=5000&addFilter=(F1.G10SRCSYS%2 0%3D%20%27APOLLO%27)&filter_F1.G10SRCSYS=APOLLO&So urceSystem=OMS%20%20%20%20%20%20%20&vvUser=THERRP& appVars=%5B%7B%22n%22%3A%22nabMsg%22%2C%22v%22%3A% 22%22%7D%2C%7B%22n%22%3A%22nabInfo%22%2C%22v%22%3A %22%22%7D%2C%7B%22n%22%3A%22nabIsDesktop%22%2C%22v %22%3A%220074007200750065%22%7D%2C%7B%22n%22%3A%22 nabIsMobile%22%2C%22v%22%3A%2200660061006C00730065 %22%7D%2C%7B%22n%22%3A%22nabIsPhone%22%2C%22v%22%3 A%2200660061006C00730065%22%7D%2C%7B%22n%22%3A%22n abIsTablet%22%2C%22v%22%3A%2200660061006C00730065% 22%7D%2C%7B%22n%22%3A%22nabPromptBeforeClose%22%2C %22v%22%3A%22%22%7D%2C%7B%22n%22%3A%22nabUser%22%2 C%22v%22%3A%22007400680065007200720070%22%7D%2C%7B %22n%22%3A%22nabUserId%22%2C%22v%22%3A%22003100300 0330034%22%7D%2C%7B%22n%22%3A%22nabIbmI%22%2C%22v% 22%3A%22005400480045005200520050%22%7D%2C%7B%22n%2 2%3A%22hideMainToolbarLeft%22%2C%22v%22%3A%2200740 07200750065%22%7D%2C%7B%22n%22%3A%22hideMainToolba rRight%22%2C%22v%22%3A%220074007200750065%22%7D%2C %7B%22n%22%3A%22hideMainToolbarBottom%22%2C%22v%22 %3A%220074007200750065%22%7D%2C%7B%22n%22%3A%22hid eMainToolbarTop%22%2C%22v%22%3A%220074007200750065 %22%7D%2C%7B%22n%22%3A%22aSourceSystem%22%2C%22v%2 2%3A%22004F004D00530020002000200020002000200020%22 %7D%5D&sid=G5KVTX2DN1VU5V8JXC0FGX17BN6CI0ET8CSFUQZ 561SU0OA2R2ZCSREVI9O6366M&lang=en&app=1245&vvKey=1 6480386710668024&env=1002

                      There had been an issue early on in the installation of the latest 6.1 release where I had tried to set a default value in the filter field G10SRCSYS and this kept failing in NAB. So I removed the default filter value... but it appears that there is a vestigial instruction stuck in there somehow?

                      Comment


                      • #12
                        Once more - this time I made sure the grid app had no default filter value for G10SRCSYS.

                        Here is the data source call
                        Xttp://mbimint.mbi-inc.com:7064/valence/vvcall.pgm?_dc=1648039746345&pgm=vvdatasrc&action= getData&VVID=1858&metaData=1&skipCount=0&fetch=0&u seCache=&maxResults=5000&addFilter=&SourceSystem=O MS%20%20%20%20%20%20%20&vvUser=THERRP&appVars=%5B% 7B%22n%22%3A%22nabMsg%22%2C%22v%22%3A%22%22%7D%2C% 7B%22n%22%3A%22nabInfo%22%2C%22v%22%3A%22%22%7D%2C %7B%22n%22%3A%22nabIsDesktop%22%2C%22v%22%3A%22007 4007200750065%22%7D%2C%7B%22n%22%3A%22nabIsMobile% 22%2C%22v%22%3A%2200660061006C00730065%22%7D%2C%7B %22n%22%3A%22nabIsPhone%22%2C%22v%22%3A%2200660061 006C00730065%22%7D%2C%7B%22n%22%3A%22nabIsTablet%2 2%2C%22v%22%3A%2200660061006C00730065%22%7D%2C%7B% 22n%22%3A%22nabPromptBeforeClose%22%2C%22v%22%3A%2 2%22%7D%2C%7B%22n%22%3A%22nabUser%22%2C%22v%22%3A% 22007400680065007200720070%22%7D%2C%7B%22n%22%3A%2 2nabUserId%22%2C%22v%22%3A%220031003000330034%22%7 D%2C%7B%22n%22%3A%22nabIbmI%22%2C%22v%22%3A%220054 00480045005200520050%22%7D%2C%7B%22n%22%3A%22hideM ainToolbarLeft%22%2C%22v%22%3A%220074007200750065% 22%7D%2C%7B%22n%22%3A%22hideMainToolbarRight%22%2C %22v%22%3A%220074007200750065%22%7D%2C%7B%22n%22%3 A%22hideMainToolbarBottom%22%2C%22v%22%3A%22007400 7200750065%22%7D%2C%7B%22n%22%3A%22hideMainToolbar Top%22%2C%22v%22%3A%220074007200750065%22%7D%2C%7B %22n%22%3A%22aSourceSystem%22%2C%22v%22%3A%22004F0 04D00530020002000200020002000200020%22%7D%5D&sid=G 5KVTX2DN1VU5V8JXC0FGX17BN6CI0ET8CSFUQZ561SU0OA2R2Z CSREVI9O6366M&lang=en&app=1245&vvKey=1648039743771 6786&env=1002

                        Comment


                        • #13
                          In case it's not clear. The filter value is sill not getting set.

                          Thx.

                          Comment


                          • #14
                            We are not able to replicate your issue. Please reach out to support@cnxcorp.com to schedule an online meeting so we can take a closer look.

                            Comment


                            • #15
                              Thanks.

                              Will do.

                              Comment

                              Working...
                              X