Contents tagged with PXUIFieldAttribute

  • 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,

       … more