Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Initilize a variable only on full reload not on partial

Hi,

Is there a way by which I can set the value of a variable only when there is a full reload, not partial reload. In my report I am doing some calculation based on a variable, which value I am setting to 0 when there is a reload. But I need to do a partial reload while user clicks on a list box, there I have added the action to set the variable to 1. But as I have used the LET statement ot initilize the variable to 0 it again becoming 0. Is there any way I can avoid changing the value.

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try using IsPartialReload( ) logic function.

IF NOT IsPartialReload() THEN

     SET varName = 1;

ENDIF

    

Regards,

Jagan.

View solution in original post

2 Replies
jvitantonio
Specialist III
Specialist III

Hi, if you are using this in the script, then:

//If this is a partial reload, then set the variable value to 0, else 1.

IF IsPartialReload() THEN

            SET varName = 0;

          ELSE

          SET varName = 1;

ENDIF

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try using IsPartialReload( ) logic function.

IF NOT IsPartialReload() THEN

     SET varName = 1;

ENDIF

    

Regards,

Jagan.