Qlik Community

QlikView Extensions

Discussion Board for collaboration on QlikView Extensions.


Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Honored Contributor 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

how to call a javascript function in qlikview

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:  http://community.qlik.com/docs/DOC-2784  Well, it doesnt really call a web service, it uses an ASP page. But the principle is exactly the same. I hope this helps.