Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Reload d'une application via un .bat ou .vbs

Bonjour,

Je souhaite exécuter mon application (Avec une macro en post reload) avec un programme externe.

J'ai un script VBS qui me permet de charger l'application, lancer la macro, sauvegarder et tout fermer. Tout fonctionne très bien. Néanmoins je ne trouve pas la solution pour le scheduler dans la console d'administration.

J'ai pu trouver dans différents posts la solution du reload avec un .bat : "C:\Program Files\QlikView\Qv.exe" /r " D:\Mon application.qvw" mais même manuellement le reload ne se lance pas.

Avez-vous une solution pour scheduler le .vbs ou pour quelles les raisons mon .bat ne fonctionne pas ? 

Merci d'avance pour votre aide.

Précisions:

Le user utilisé est l'admin du serveur. Il a une licence NameCal.

Version: V10 SR4

16 Replies
Not applicable
Author

Bonjour,

Si je crée une tâche de rechargement tel que indiqué, le rechargement s'effectue mais la macro qui envoie les mails ne se déclenche pas.

C'est pour cela que j'essaie de lancer un programme externe (via la console, onglet System et Supporting Tasks).

martin59
Specialist II
Specialist II

Pour bénéficier du lancement de tâches externes, vous devez avoir une licence QlikView Publisher qui est un complément à votre licence serveur. En avez-vous une ?

Si ce n’est pas le cas, vous voyez l’option sans pouvoir l’utiliser.

Martin Favier

almamy_diaby
Creator
Creator

Essaie cette syntaxe: Elle marche. Je l'utilise beaucoup de fois


C:\"Program Files"\QlikView\qv.exe /r  D:\Mon application.qvw

Not applicable
Author

Merci

jonathan_dau
Contributor III
Contributor III

Bonjour,

On peut même aller un peu plus loin

- en mettant en variable le chemin de l'application Qlikview

- en précisant le mode d'erreur que l'on veut (sans plantage, avec, etc...)

SET QV_HOME="C:\program files\qlikview"

%QV_HOME%\qv.exe /r /vErrorMode=2 C:\MyReport\QVW\Chargement\QV_MyReport_Chargement_Activite.qvw

Bonne fin de journée

Jonathan

cje
Employee
Employee

Bonjour,

Tout ceci est expliqué par le menu dans le QlikView 11 Reference Manual à la page 40, que vous pouvez télécharger à partir de notre site Web opu qui est installé automatiquement lors de l’installation de QlikView. Je joins ici un extrait de cette documentation :

7.1 Command Line Syntax

The QlikView command line invocation can be described by the following syntax (for a description of the

syntax notation used, see Backus-Naur Formalism (page 919)):

Qv.exe[ documentfile ]

The path is the path to the file, either absolute, or relative to the current directory.

documentfile::= documentfilename

documentfilename is the name of the document file.

switch is used to mark different options:

/r

Reload switch. The document will be opened and the script reloaded. Thereafter the document will be saved,

and QlikView will close itself.

/rp

The same as above, but with a partial reload.

/l

Load new data. The document will be opened and the script reloaded. The document will not be saved and

QlikView will remain open.

/lp

The same as above, but with a partial reload.

/v

If this switch is immediately followed by a variable name and an assignment, the variable will obtain the

assigned value before the script execution starts.

/nodata

Opens the document without variables, table and field data. This feature is also available for previously

opened documents on The Start Page (page 41).

/NoSecurity

Overrides QlikView security measures against hostile macros and scripts embedded in QlikView documents.

No warning dialogs prompting the user to accept potentially harmful code will be shown. Use this switch

with caution and only with well-known documents.

Example:

qv.exe /r/vMyvar=123 abc.qvw

Note!

In order to avoid error messages to appear when executing scripts in batch mode, always set the script variable

errormode to 0 in the script (see Error Variables (page 278))

40 QlikView

Pour le mode d’erreur, extrait de la page 278 :

ErrorMode

This variable determines what action is to be taken by QlikView when an error is encountered during script

execution. By default (ErrorMode=1) the script execution will halt and the user will be prompted for action

(non-batch mode). By setting ErrorMode =0 QlikView will simply ignore the failure and continue script

execution at the next script statement. By setting ErrorMode =2 QlikView will trigger an "Execution of

script failed..." error message immediately on failure, without prompting the user for action beforehand.

Example:

set ErrorMode=0;

Cdt

Christophe Jouve

Pre-sales solutions consultant

Direct: +33 1 55 62 65 54

Mobile: +33 6 76 24 22 47

Email: Christophe.Jouve@qlik.com

QlikTech France

93 avenue Charles de Gaulle

92200 Neuilly sur Seine

qlik.com<http://www.qlik.com/>

18 octobre 2012 | De la Business Intelligence à la Business Discovery...

http://www.qlikview.fr/BDWT-Paris

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

martin59
Specialist II
Specialist II

Bonjour,

Le problème est-il toujours d'actualité ou il a été résolu ?

Martin Favier