Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
amit_shetty78
Creator II
Creator II

Enable-Disable an object depending on server environment

Hi all,

I have a dashboard where I would like to have a Button/Text box with actions that will show as disabled when the qvw is published on a production server but when on a development server the button and its functionality should remain enabled.

Any ideas on how this can be done?

Thanks.

2 Replies
Anonymous
Not applicable

HI,

Could you use the ComputerName() function to identify which server the application is on? You could probably use it directly in the button visibility criteria, or set it as a variable in the load script for a different result, depending on where the app is reloaded.

Cheers,

Adam

amit_shetty78
Creator II
Creator II
Author

Hi Adam,

Yes I think that will work. Will try that out.

Thanks for the help.

Best,

Amit.