New Syntax Of Setvisibility Method In Acumatica
Hello everybody,
today I want to write a few words about changes of PXUIFieldAttribute.SetVisibility method.
In the past, if you wanted to turn on some column, you could write in RowSelected event something like this:
PXUIFieldAttribute.SetVisibility<APRegister.finPeriodID>(Documents.Cache, null, true);
If you want to turn it off, then this:
PXUIFieldAttribute.SetVisibility<APRegister.finPeriodID>(Documents.Cache, null, false);
But for quite a long time ( even in 2017 version ), Acumatica team introduced PXUIVisibility enum. In code it looks like this:
[Flags] public enum PXUIVisibility { Undefined = 0, Invisible = 1, Visible = 3, SelectorVisible = 7, Dynamic = 9, Service = 19, HiddenByAccessRights = 33, }
For now I can comment on Visible and InVisible which correspond to false and true in the past implemtations. And in future posts I'll describe other selectors.
Need customizations for your Acumatica solution?
If you're working with Acumatica and need tailored functionality for your project, don't hesitate to reach out! Whether it's fine-tuning PXUIFieldAttribute visibility settings or building more complex custom features, we’ve got the expertise to make it happen. Leave a request for a customization today, and let's take your system to the next level!