Application Studio - Set Layer to Use on Form Load - Help Needed

We have a situation where I have two separate layers for one module. One is a unified layer for all but one of our sites. The other has some specialized fields on it that we don’t want the other sites to use.

I was wondering if there was a way, on a pre form load event, to select which layer to launch from based on the company launching the form. Has anyone done this in the past?

I think two menu items is the way to go.

2 Likes

You can already apply different layers to menus in different companies.

Just clone the menu make it company specific and apply the layer

Unless I misunderstood something

4 Likes

@josecgomez @Hally,

Thanks for the replies!

In our use case, the unified layer will be rolled out to all companies sometime next year. However, the extra fields for the one company will need to remain and not be displayed to the others. I agree that two menu items with different layers would be the optimal way to go. However, if I have updates for the unified version, I don’t want to have to duplicate work if I don’t have to.

Instead of doing dynamic layers, could I set visibility for UI items based on the company that launched the form?

Sure visibility can be set based on Rules that’s pretty trivial.

2 Likes

Ended up following the conversation had here and just hid the elements on the non unified version:

That way, when we go to roll it to them, I just have to copy over an event and the handful of ui items.

Thanks all for taking a look at this.

1 Like