Unable to update checkbox with true value

148 views Asked by At

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>

2

There are 2 answers

0
mounica On

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

0
Naveen B On

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