How to show something in the Acceptation Environment but not in the Production Environment

0
Hi all, I would like to have a clear visible difference between the acc. and prod. environments so users dont accidently forget in wich environment they are working. How do I create or change something only for the acceptation environment?   Thanks in advance! Kind regards, Joey Field
asked
2 answers
1

Hi Joey

 

From you question What I understood is you want to have some visibilty difference between two environment.

Method 1:This can be done by using visibilty condition. Get the application url in any of the NPE object in that page for example if my acceptance url is something like https://accp.com then check contains 'accp' if yes then show if not dont show.

 

Method 2: Create a constant in mendix studio pro named Environment constant deploy the application to cloud, Now in Acceptance enviroment to the server constants and set acceptance , same for production. Now in the application use the constant for your visibilty condition.

 

answered
1

Hi,

Thanks for the anser!

I tried using the constant but then I get the error: 'the constant is not exposed to the client'.

But i'll try the URL solution, that a good one.

answered