
Hi, I’m new with Acumatica, and I have a question about load data with a PXSelector. I need add the data in some fields of the Grid and other in a form, but I don’t know how to do that. Help, please.
Hi, I’m new with Acumatica, and I have a question about load data with a PXSelector. I need add the data in some fields of the Grid and other in a form, but I don’t know how to do that. Help, please.
Best answer by Naveen Boga
Hi
Below is the sample example for your reference and hope this helps!!
#region SelectorBranchID
[PXDBString(255, IsUnicode = true, InputMask = "")]
[PXUIField(DisplayName = "Branch", Enabled = false)]
[PXDefault(typeof(Search<Branch.branchCD, Where<Branch.branchID, Equal<Current<AccessInfo.branchID>>>>))]
[PXSelector(typeof(Search2<Branch.branchCD, InnerJoin<BAccount, On<BAccount.bAccountID, Equal<Branch.bAccountID>>>>),
typeof(Branch.branchCD), SubstituteKey = typeof(Branch.branchCD), DescriptionField = typeof(BAccount.acctName))]
public string SelectorBranchID { get; set; }
public abstract class selectorBranchID : BqlString.Field<selectorBranchID> { }
#endregion
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.