1

Trying to make a customized checkbox to stay true for all newly created documents. Attributes: [PXDBBool()] [PXDefault(TRUE)] [PXUIField(DisplayName = "Update Projects")]

ASPX: <px:PXCheckBox CommitChanges="True" ID="edUpdateProject" runat="server" DataField="UpdateProject" ></px:PXCheckBox>

  • Please provide full DAC class so that we can better understand the problem. Also, if this is an extension, make sure to follow standard Acumatica naming convention for field names. – Joseph Caruana Jun 28 '20 at 04:38

2 Answers2

0

Can you try this [PXDefault(true)]. make true as small letters.

mounica
  • 11
  • 1
0

The below code is working for one of my customizations. This code may help you.

  #region Status
    [PXDBBool()]
    [PXDefault(true,PersistingCheck =PXPersistingCheck.Nothing)]
    [PXUIField(DisplayName = "Active")]
    public virtual bool? Status { get; set; }
    public abstract class status : PX.Data.BQL.BqlBool.Field<status> { }
    #endregion
Naveen B
  • 55
  • 4