Reputation: 139
I would like to make the activities tab not visible in the screen CR306000.
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">
Upvotes: 0
Views: 239
Reputation: 7706
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.
Upvotes: 1