Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key fields in setup and filter DACs #432

Open
SENya1990 opened this issue Apr 18, 2022 · 0 comments
Open

Key fields in setup and filter DACs #432

SENya1990 opened this issue Apr 18, 2022 · 0 comments
Labels
enhancement New feature or request static analysis Items related to static code analysis

Comments

@SENya1990
Copy link
Contributor

SENya1990 commented Apr 18, 2022

Internal number ATR-205

A DAC that used by a data view of the PXFilter type or the PXSetup/PXSetupOptional type cannot have any key fields defined.

For example, CFINItemCategoryBuffer must have no key fields because in CFItemSearchImplementationMaint it's used by the Buffer data view which is of the PXFilter type:

[System.SerializableAttribute()]
[PXCacheName(CFConstants.TableName.CFINITEMCATEGORYBUFFER)]
public class CFINItemCategoryBuffer : PX.Data.IBqlTable
{
    #region InventoryID
    public abstract class inventoryID : PX.Data.IBqlField
    {
    }
    [PXInt(IsKey = true)]
    [PXDefault()]
    public virtual int? InventoryID { get; set; }
    #endregion
}
public class CFItemSearchImplementationMaint : PXGraph<CFItemSearchImplementationMaint>
{
    ...
    public PXFilter<CFINItemCategoryBuffer> Buffer;
    ...
}
@SENya1990 SENya1990 added enhancement New feature or request static analysis Items related to static code analysis labels Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request static analysis Items related to static code analysis
Projects
None yet
Development

No branches or pull requests

1 participant