Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
sushil353
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") ;

                  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

1 Reply
Lee_Matthews
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:  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.