Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
zagzebski
Contributor

Script to avoid specific tabs

Is there a way to automated within a script to skip a tab. I have script that doesn't have to be run each time and want to put in something so when the script is run it can skip over a tab(s)?

Tags (2)
7 Replies
jolivares
Valued Contributor

Re: Script to avoid specific tabs

the best way i found is to declare every tab as a subroutine, in this case I control the call for each one.

Sub Tab1

...

EndSub

Call Tab1

Not applicable

Re: Script to avoid specific tabs

Hi,

I use the 'If..then..elseif..else..end if'statement.

Example form the reference manual:

Examples:

if a=1 then

load * from abc.csv;

sql select e, f, g from tab1;

end if

if a=1 then; drop table xyz; end if;

Regards,

Gerrit

zagzebski
Contributor

Re: Script to avoid specific tabs

So just wrap all the script around the if statement (on the tabs I may want to skip).  Set A = 0 or 1? Then if A =1 it skips and if 0 if runs the script?

Not applicable

Re: Script to avoid specific tabs

Yep.

jolivares
Valued Contributor

Re: Script to avoid specific tabs

ok... mark a answered...please

Re: Script to avoid specific tabs

You can move the tabs(that need to skipped) to the end and use Exit Script; before the scripts to be skipped.

Not applicable

Re: Script to avoid specific tabs

ok... mark a answered...please

That's up to you. Only you may do that.

Community Browser