Last active
April 22, 2016 13:55
-
-
Save carlfredrikhero/35d5a28047c6d46649144c5bcb6597c3 to your computer and use it in GitHub Desktop.
Qlikview macro to trigger "on demand" loads of NPrinting job or task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Read https://community.qlik.com/docs/DOC-8441 to set up "External XML Request" | |
' in NPrinting | |
' Add this macro to Qlikview, change the Path variable | |
' Make sure "Request Module Security" = "System Access" and | |
' "Current Local Security" = "Allow System Access" | |
' http://i.imgur.com/lKlUNt2.png | |
' If you need to execute this macro from the Access Point, be sure to allow | |
' macros on the server. http://i.imgur.com/xerNPnF.png | |
' Add a button to your Qlikview application that trigger this macro | |
' The file "job.processed" will change name to "job.request" which is NPrintings | |
' cue to process the file. | |
Sub RunJob() | |
Dim Fso, Path, Processed, Request | |
Path = "C:\Path\to\your\xmlFiles\" | |
Processed = "job.processed" | |
Request = "job.request" | |
Set Fso = CreateObject("Scripting.FileSystemObject") | |
Fso.MoveFile Path & Processed, Path & Request | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment