Hello all,
I am trying to add a Selector attribute on a new field in order to store a vendor in a case screen customization using the Customization Project Editor. After I publish the customization, I receive the error: “Cannot create ctl00_phG_tab_t2_CstPXSelector122 control. The PXSelector attribute is missing for the UsrInst_InstallVendor field. Make sure the names of the data views specified for controls in the ASpX file match the names of the data views defined in the corresponding graph.”
I have added the following attributes in the UsrInst_InstallVendor field:
[PXDBInt]
[PXSelector(typeof(Search<PX.Objects.CR.BAccountR.bAccountID, Where<PX.Objects.CR.BAccountR.type, Equal<PX.Objects.CR.BAccountType.vendorType>>>))]
[PXUIField(DisplayName="Install Vendor")]
Then, I create the control on the tab I have added in the Cases screen customization. After publishing, the screen shows the selector, but when clicked, I receive the error message above.
Am I missing a step in my customization? Any help would be appreciated! I can also supply any further details as needed. Thank you!