10 Replies Latest reply: Nov 17, 2010 10:05 AM by Christian Conejero RSS

    CATCHING PARAMETER IN QV

    Christian Conejero

      I already know how to pass a parameter to QV from a web page.

       

      http://server/QvPlugin/opendoc.htm?document=doc.qvw&art=AIG4980



      But i don´t know how to catch it.

      Please give me some help that i´ll appreciate much.

      And remember, if you come to Madrid, i´ll be glad in buying you dinner.

      OK.

       

        • CATCHING PARAMETER IN QV
          Miguel Angel Baeyens de Arce

          Hello Christian,

          Although I replied to your previous post, try the following

           

          http://server/QvPlugin/opendoc.htm?document=doc.qvw&select=OID,AIG4980


          Where OID is an object ID already existing on your document, say, a listbox, taht contains the ARTICLE field.

          Hope that helps.

            • CATCHING PARAMETER IN QV
              Christian Conejero

               

               

               

               

               

               

               

               

               





               

               

               

              I´ve tried this: Partial reload on opening, and get the text from 2 text files (could be DB)

              sub Recargar()

              ActiveDocument.PartialReload

              end Sub

              add set vTipo = $(Include=Tipo.txt);

              add set vFiltro = $(Include=Filtro.txt);

              But it doesn´t execute the macro in internet.

              What I have to do to execute a macro in internet? Can I partially load the doc in the internet?

               

               

               

               

               



               

               

                • CATCHING PARAMETER IN QV
                  PeterUtas

                  I'm having exactly the same problem. I simply need to display Qlik view in an iframe with an URL variable for showing a customer selected within a CRM system dashboard (all dashboards in this CRM tool consist of HTML output).

                  However, I simply can't use "&Select=LB13,12345" at the end of the URL to pre-select a customer in a listbox. Nothing happens. I've also tried to write a macro to accomplish this as well, but it won't fire, even if I take all functionality away and just let it display a message-box. It works in the QV editor though. It won't matter if I choose the Ajax or IE plugin either, same results - nothing.

                  Should this be possible at all? Is there some kind of configuration that might prohibit the use of "&Select=" etc? If we can't get this to work the customer won't implement and integrate QV with its CRM system..

                  /Kind regards,
                  Peter

                    • CATCHING PARAMETER IN QV
                      Christian Conejero

                      Don´t use an iframe, cause you won´t see the string in the address bar of your browser, and QV is suppose to read it from there. Use a simple link, linkbutton, etc.

                      Then use the string you are using or some other that are mentioned in this discussion.

                      OK.

                      • CATCHING PARAMETER IN QV
                        Miguel Angel Baeyens de Arce

                        Hello Peter,

                        It seems to work in AJAX, and you can check for further configurations here and here.

                        Macros won't work for On Open or On Post Reload opening the document on the server.

                        Hope that helps.

                          • CATCHING PARAMETER IN QV
                            PeterUtas

                            Thanks for the answer, but I still can't get it to work. Nothing happens.

                            Infact, I tried running the Qlik view sales demo-file in this environment, and it won't work either. Is there some kind of security related configuration which potentially could cause the ajax viewer to ignore the parameters?

                            On a sidenote, we're not using the opendoc.htm to run the ajax component. If I try using it it constantly says "no connection" so instead I'm using accessPoint.aspx. Could this be related to the problems in any way?

                              • CATCHING PARAMETER IN QV
                                PeterUtas

                                Major update - I've now managed to get it working. Almost.

                                I've noticed that if I press "back" after retrieving the QV document, then my selection from the URL suddenly becomes visible! However, if I don't press "back", it's as if no parameter was ever submitted through the URL.

                                Has anybody else experienced this? It's almost as if my selection through the URL select-part is accepted, but after that some further action just clears out all selections. At that point I *can* retrieve the parameter choice but only through the "back" button. I might also add that this happens regardless of what QV document I've tried to manipulate through an URL parameter...