Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
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 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

14 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi Sushil,

I agree that Alexander's suggestion is best. If you want to POST and then display the output, an Extension is the way to go.

-Rob

Not applicable

Hi I'm Velu very new to QlikView please any one tell me how to develop a dashboards in web browser using java(jsp)

please help i tried but couldn't .in some manuals mentioned QlikView Java client how to use that..

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

The java client is no longer supported.

Any Qlikview dashboard can be displayed in a browser -- by using Qlikview Server -- without additional coding.

-Rob

mnu
Employee
Employee

It is possible to call a JavaScript function from a QlikView Button by following these steps:

  1. Create a button and choose Actions - External - Open URL
  2. Enter your JavaScript function in the format = 'javascript: functionname(parameters); true()'.
  3. Check the box 'Open in same window'
  4. See attached for an example of launching a JavaScript popup.

Note that this will only work for javascript functions and not for user defined functions.

its_anandrjs

Dear @Matt Nunn,

I am facing same problem do you get any Solution for this, if so let me know about this.

Regards,

Anand