Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Shubham_Deshmukh
Specialist
Specialist

Loading of Scripts

In Scripts, I am having 4 tabs for 4 differect scripts. Now, suppose I am working on table having script no. 4. When I reload the scripts,all scripts are getting reloaded. So is there any option like in MySQL or SQL Server that we can only run that selected script which we need to run at that time.

8 Replies
prma7799
Master III
Master III

tresesco
MVP
MVP

You can comment out the section of script and sometimes use Exit Script command to leave out the rest of the script, like:

/* ....opening comment section

<some script you want to skip>

*/.... closing comment section

<Script you want to execute>

Exit Script;

...any script beyond this would be skipped

So, you have to use commenting and/or the exit script command.

Shubham_Deshmukh
Specialist
Specialist
Author

Ya, I always do so,but I was thinking that there might be another way.

No issue.

Thanks Tresesco.

its_anandrjs

May you can try with Partial load as well as Commenting the script.

Commenting scripts are

// Line Commenting

/*

Multiple line of code

Commenting

*/

You can try with some of this for the script cpmments

Check some of this

What is meant by partial reload? What is its use? Please explain!

Partial Reload ‒ QlikView

marcus_sommer

Beside the already mentioned commenting of script-parts and using partial loadings you could also use if-conditions like:

if '$(vScriptTab1)' = 'run' then

     script from tab 1

end if

and maintain then just the variables (by a numeric variable it might be enough to have a single variable by querying the condition with <= operators).

Another way could just be to move the script-tab appropriate and to add an exit script; on the end.

- Marcus

Peter_Cammaert
Partner - Champion III
Partner - Champion III

There is another way (just not a single standard switch that you can flick somewhere in a script options dialog).

Loading of Scripts thread277099.jpg

See attachment.

As far as I'm concerned, it's just too much work and not worth the effort. Use IF THEN ELSE temporary conditional script activation or use Exit Script;

Shubham_Deshmukh
Specialist
Specialist
Author

Thanks fr Reply. I will Try.

Shubham_Deshmukh
Specialist
Specialist
Author

Thanks fr Reply. I will Try.