

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use in Module Editor (Ctrl+m):
function Alert() {
var x=new ActiveXObject("WScript.Shell");
x.popup('works');
}


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
