Hi Team,
In my screen there is a PXSelector control, Once I fill the relevant information and press the Save button or after save Press the Add new record button, that PXSelector values are not refresh. It only changes after manually refresh the web page by browser refresh button.
Can someone help me out?
DAC Field
[PXUIField(DisplayName = "Vendor", Required = true)]
[PXDBInt]
[PXSelector(typeof(Search2<BAccount.bAccountID, LeftJoin<HMRCVendorRegisterDetail, On<BAccount.bAccountID,
Equal<HMRCVendorRegisterDetail.bAccountID>>>, Where<BAccount.type, Equal<BAccountType.vendorType>,And <HMRCVendorRegisterDetail.bAccountID, IsNull>>
>),
typeof(BAccount.acctCD),
typeof(BAccount.acctName),
SubstituteKey = typeof(BAccount.acctCD),
DescriptionField = typeof(BAccount.acctName))]
[PXCheckUnique(typeof(HMRCVendorRegisterDetail.bAccountID))]
[PXDBDefault(PersistingCheck =PXPersistingCheck.NullOrBlank)]
public virtual int? BAccountID { get; set; }
public abstract class bAccountID : PX.Data.BQL.BqlInt.Field<bAccountID> { }
Also tried this too in the graph
protected void _(Events.RowPersisted<HMRCVendorRegisterDetail> e)
{
VendorRegisterDetail.Cache.Clear();
VendorRegisterDetail.View.RequestFiltersReset();
}
Thanks