Hi,
Is it possible to hide a screen from the workspaces where it is displayed if a given feature is not enabled ?
To describe my situation, I have a graph A and its extension B.
public class A: PXGraph<A>
{
public SelectFrom<EAPInvoice>.Where<True.IsEqual<False>>.View emptyView;
}
public class B: PXGraphExtension<B>
{
#region Properties
public static bool IsActive() => PXAccess.FeatureInstalled<FeaturesSetExt.myFeature>();
...
}
A screen has been created using graph A and has been added to the “Payable” workspace. It uses fields from a DAC that also depend on the feature.
public class MyDAC: IBqlTable
{
public static bool IsActive() => PXAccess.FeatureInstalled<FeaturesSetExt.myFeature>();
…
}
When “myFeature” is disabled from CS100000, none of fields from the DAC are displayed ; that’s OK. However, the screen is always available in the “Payable” workspace whereas I’d like it not being seen.