0

I would like to make the activities tab not visible in the screen CR306000.

enter image description here

I used the following code, but the result is KO, while it works on other tabs

    Base.Activities.AllowInsert = false;
    Base.Activities.AllowUpdate = false;
    Base.Activities.AllowDelete = false;
    Base.Activities.AllowSelect = false;


<px:PXTabItem RepaintOnDemand="False" Text="Activities" LoadOnDemand="False">

1 Answers1

1

Instead of setting the AllowSelect = false on the DataView itself set it on the DataView's Cache. That should do the trick

Base.Activities.**Cache**.AllowSelect = false;

Alternatively, you can either configure the Visibility Expression or just set the Visible to false from the aspx.

Samvel Petrosov
  • 7,580
  • 2
  • 22
  • 46