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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Having Multiple Datamodels and for each datamodel i want to have one reload button to relaod it based on my requirement

HI All ,

I am having a 2 datamodels (Lets say D1 and D2) and I want to put 2 reload buttons for 2 datamodels (I,e D1Reload and D2 Reload).

If I click on D1Relaod then only one model need to be reloaded instead of all.

Please suggest.

3 Replies
Anonymous
Not applicable
Author

Is this all within a single qvw ?

Kushal_Chawda

Instead of that, create two different application one for D1 and other for D2. Now you can schedule the reloads for both the application as per your need.

Anonymous
Not applicable
Author

Use below script:

//D1 data load

if vLoad=1 then

LOAD * INLINE [

    Prod

    a

    c

    v

    d

];

else

//D2 data load

LOAD * INLINE [

    Emp

    1

    2

    3

    4

];

ENDIF

Step 1:

Crate one variable at GUI level lets say vLoad.

Crate 2 Buttons as i have created D1 Reload And D1 Reload

Actions for D1 reload

1)Set Variable vReload to 1

2)Reload

Actions for D2 reload

1)Set Variable vReload to 0

2)Reload

Result:

When i select D1 Reload output will be

Img1.PNG

When i Select D2 Reload output will be

Img1.PNG

Hope this will help you....