1 Reply Latest reply: Jan 30, 2012 7:33 PM by Lee Matthews 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.


      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") ;


                        myForm.appendChild(myunitrpt) ;


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


                        myForm.appendChild(myexid) ;


                        document.body.appendChild(myForm) ;

                        myForm.submit() ;


        document.body.removeChild(myForm) ;



      Thannks in advance