'Make a tab invisible

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">


Solution 1:[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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Samvel Petrosov