13 Replies Latest reply: Apr 29, 2015 3:22 AM by Matt Nunn RSS

    how to call a javascript function in qlikview ??

    Sushil Kumar

      Hi All,

       

      I am new to this functionality of qlikview. i have a function to call a webpage using post method. but how do i call it using a button in my qlikview dashboard as it is written in javascript and edit module of qlikview is not supporting javascripts.

       

      Please help me out to solve this issue. i have not provided the url in action due to security reasons..

       

         function callCND(){

                        var myForm = document.createElement("form");

                        myForm.setAttribute("action", "http://xyz");

                        myForm.setAttribute("method", "POST");

                        myForm.setAttribute("target", "_blank");

       

       

                        var myunitrpt = document.createElement("input") ;

                        var myexid = document.createElement("input");

       

                        myunitrpt.setAttribute("name", "UNITRPT") ;

                        myunitrpt.setAttribute("value","history");

                        myForm.appendChild(myunitrpt) ;

       

                        myexid.setAttribute("name", "EX_ID") ;

                        myexid.setAttribute("value","1093981623");

                        myForm.appendChild(myexid) ;

       

                        document.body.appendChild(myForm) ;

                        myForm.submit() ;

       

        document.body.removeChild(myForm) ;

      }

       

      Thannks in advance

       

      Sushil