Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
You can use in Module Editor (Ctrl+m):
function Alert() {
var x=new ActiveXObject("WScript.Shell");
x.popup('works');
}
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
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.