Skip to main content
Marching toward a simplified navigation! READ ON
Showing results for 
Search instead for 
Did you mean: 
Master II
Master II

how to call a javascript function in qlikview

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


1 Reply
Former Employee
Former Employee

Hi Sushil  I am not sure if you solved this problem, but I have posted an application that uses the POST method to call a web service here:  Well, it doesnt really call a web service, it uses an ASP page. But the principle is exactly the same. I hope this helps.