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
View originalHi, 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
View originalHi
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
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.
Can you please confirm that that the fields, which you wanted to show are saved in the database, in other words, all are bound fields?
hi
Below are few links that would help you to understand on the PXSelector
PXXelector syntax
PXSelector and Dirty Read - Acumatica Developers Blog
PXSelector example
PXSelector for custom table | Community (acumatica.com)
PXSelector Quick search
Acumatica Filtering PXSelector witth quick search - Stack Overflow
Please let us know if your looking for something specific.
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.