Conditional visibility based on environment

0
As the title states: conditional visibility (of buttons eg) based on the environment the user is in (eg production, test or demo), is it possible? Background: I am creating a button that prepares a demo environment, along with dummy data. It starts with clearing out all old data. I do NOT want this button to be visible/available in the production environment. Any thoughts?
asked
4 answers
4

Define a constant and set it in Console.

We use it to put a HUGE Acceptance Environment banner in, because Users seems to have a problem reading the URL ;-)

answered
3

We use the communit commons GetApplicationUrl for that. After we retrieve the URL we detect if we are working in localhost, test, accp or production environment. Depending on that we do all kinds of things like you want to do. After the detection set a boolean to an environment attribute with the boolean values localhost, test ettc. Then you can use this boolean to set the visible condition.

Regards,

Ronald

answered
1

Maybe you could use a DTAP Module of the App Store? In the related constant, you define your environment and you can use then this constant to define where you are. You propable can build a logic to make it usesable on your visibility.

answered
0

Thanks for the help, problem solved!

answered