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: 
dineshsingh
Partner - Contributor III
Partner - Contributor III

QlikView Macro in JScript

Hi All,

I am new to QlikView and I want to write Macro in QlikView using Java Script. I know JavaScript but I don't have any idea how to write Macro using it. For my help you can write a macro in JavaScript to show an alert box.

Thanks

3 Replies
Not applicable

You can use in Module Editor (Ctrl+m):

function Alert() {

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

  x.popup('works');

}

fkeuroglian
Partner - Master
Partner - Master

Hi

ctrl + M(module editor)

you have the possibility to choose between JScript and VBscript

in vbscript

sub Alert

msgbox("hellow world")

end sub

call the function Alert into a button or some another action

good luck

Fernando

see this example

Macro tutorial

Useful Qlikview Macros

elyM
Partner - Creator
Partner - Creator

I post a simple example.

function SomeUserInformations(){

    var WshNetwork = new ActiveXObject("WScript.Network");

    Application.MsgBox("Domain = " + WshNetwork.UserDomain);

    Application.MsgBox("Computer Name = " + WshNetwork.ComputerName);

    Application.MsgBox("User Name = " + WshNetwork.UserName);

}

QlikView module support JScript not Java Script language.