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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Narges
Contributor III
Contributor III

Make Binary reload as conditional

Hi everyone,

I have a child app that has binary reload as binary [lib://Qlik_Apps/Parent App ID]; 
I would like to make this conditional and say if my environment is XXX then Parent app ID to be x if the environment is YYY then Parent app ID to be y.

is that possible?

if env='XXX' then binary [lib://Qlik_Apps/xxxxxxxxxxxx]; 

if env='YYY' then binary [lib://Qlik_Apps/yyyyyyyyyyyy];  

Labels (1)
2 Solutions

Accepted Solutions
Or
MVP
MVP

[Edit] - As pointed out below, this won't work because Binary must be the first statement. Oops.

Sounds like a standard IF situation.

If Env = 'XXX' THEN

Do something

else if Env = 'YYY' THEN

Do Something Else

End If

 

If you're asking how to tell which environment you're in, see e.g.

https://community.qlik.com/t5/App-Development/Is-there-anyway-to-find-out-Qlik-Sense-Environment-Whe...

https://community.qlik.com/t5/App-Development/Reading-Widows-Environment-Variable-in-Qlik-Sense-scri...

https://community.qlik.com/t5/App-Development/Qlik-Sense-Dynamically-change-the-environment-variable...

 

View solution in original post

marksouzacosta

I don't think that is possible. Binary must be the very first statement in your Load Script.

For more details: 
Binary | Qlik Cloud Help

Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com

View solution in original post

4 Replies
sureshkumar
Support
Support

Hello @Narges 

Kindly let us know which product you're referring

This Forum is for Qlik Enterprise Manager comes Data Integration.

 

Regards,

Suresh

Or
MVP
MVP

[Edit] - As pointed out below, this won't work because Binary must be the first statement. Oops.

Sounds like a standard IF situation.

If Env = 'XXX' THEN

Do something

else if Env = 'YYY' THEN

Do Something Else

End If

 

If you're asking how to tell which environment you're in, see e.g.

https://community.qlik.com/t5/App-Development/Is-there-anyway-to-find-out-Qlik-Sense-Environment-Whe...

https://community.qlik.com/t5/App-Development/Reading-Widows-Environment-Variable-in-Qlik-Sense-scri...

https://community.qlik.com/t5/App-Development/Qlik-Sense-Dynamically-change-the-environment-variable...

 

marksouzacosta

I don't think that is possible. Binary must be the very first statement in your Load Script.

For more details: 
Binary | Qlik Cloud Help

Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com

Dana_Baldwin
Support
Support

Hi @Narges 

Just for future reference, this forum is for Qlik Enterprise Manager, a Data Integration product. To reach the right audience, please post in the correct product forum for your question:

Dana_Baldwin_0-1721152159832.png