Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to rut JavaScript macros?

Hello,

My problem is I can't launch JavaScript macros.

  • I tried the simplest script

function alert()

{

alert("Hello, QlikView");

}

  • I chose JScript in "Scripting Engine" option.
  • I turned on WebView.
  • I create trigger to run "alert" the macro.

But it doesn't work.

Could anybody help me? Thanks in advance.

1 Reply
Anonymous
Not applicable
Author

The problem is the alert instruction.

The code is execute but the alert prompt no.

Solution (javascript):

function test(){

var x=new ActiveXObject("WScript.Shell"); 

x.popup('Antonio is The Best'); 

}

Create a button and Run Macro. name: test    (don't put test()  )