Is there anyway, where I can change Form Back Color in NAV?

One of our client asking they want to differentiate the UAT and LIVE DB by form color. Is there anyway we can change the Form Background Color?

Thanks for you response in Advance

Best Answer

Answers

  • sakameeransakameeran Member Posts: 52
    It is not in a single DB. We have to database one is TEST and another one is LIVE.
  • KishormKishorm Member Posts: 921
    You can set the background colour of a form by setting the BackColor property but that's not much good for what you want because you can't change it dynamically depending on which database you are in.

    What we have done previously is shown a prominent banner on key forms and shown these dynamically using the VISIBLE property. E.g. We create 2 banners one with a blue background and one with red then show the blue one in the LIVE database and the RED one in UAT. This does need to be done on each form, so usually we just do on some of the master card forms and maybe some key journal / worksheet forms.
  • sakameeransakameeran Member Posts: 52
    Thanks Kishor.
    Dynamically not possible? :neutral:
    So as per your idea, we can create two sets of objects, one is UAT and another one is for LIVE.
  • KishormKishorm Member Posts: 921
    Background of form is not dynamically possible, but my suggestion of using banners IS dynamically possible.

    1) Create a textbox, set background colour to BLUE
    2) Create another textbox, set background colour to RED
    3) In OnFormOpen set the VISIBLE property for the above 2 text boxes - show the BLUE one in LIVE company and RED one in UAT company. You can check COMPANYNAME (if the 2 have different company names) do decide which to show
Sign In or Register to comment.