This document describes the PX1012 diagnostic.
Code | Short Description | Type | Code Fix |
---|---|---|---|
PX1012 | PXAction is declared on a non-primary view. |
Warning (ISV Level 2: Production Quality) | Available |
Only the actions that are declared on the primary DAC of the primary view are available on the toolbar. You have to change the type parameter of PXAction
to the primary DAC if you want the action to be displayed on the toolbar.
The code fix changes the type parameter of PXAction
to the primary DAC of the primary view.
public class SomeEntry : PXGraph<SomeEntry, Primary>
{
public PXSelect<Primary> Documents;
public PXSelect<Detail> DocumentDetails;
public PXAction<Detail> Release; // The PX1012 warning is displayed for this line.
}
public class SomeEntry : PXGraph<SomeEntry, Primary>
{
public PXSelect<Primary> Documents;
public PXSelect<Detail> DocumentDetails;
public PXAction<Primary> Release;
}