Skip to main content
Answer

EntityIDSelector Not Working

  • July 17, 2025
  • 4 replies
  • 86 views

I want to use a selector in my grid that provides me with only  with Customers , Vendors , Business Accounts , Contacts similar to Relations Tab in Business Account the problem is the EntityIDSelector which takes type of DAC like PX.objects.CR.BAccount , PX.objects.CR.Contact, PX.objects , PX.Objects.AR.Customer , PX.Objects.AP.Vendor 

i have noticed that when i start by selecting Business Account in the first place the selector works without changing the table fileds name in the selector view but if i start with a different type ex:Customer,vendor i get this Error “undefined: Cannot read properties of undefined (reading 'getAttribute')”

Note: i have commit changes for the feilds

Best answer by ToufikSam89

@Tony Lanzer unfortunately i had to move on i am not using EntityIDSelector Anymore i found another way that worked for me. Thanks

4 replies

Tony Lanzer
Pro III
Forum|alt.badge.img+2
  • Pro III
  • July 21, 2025

@ToufikSam89 Can you post your callstack from the error Trace?


Forum|alt.badge.img+1
  • Semi-Pro III
  • July 22, 2025

@ToufikSam89 In the screen shot I noticed that the BqlString have declared and [PXDBGuid]

A mismatch like BqlString vs Guid? can lead to selector errors, failures.

 


  • Author
  • Freshman II
  • July 24, 2025

@Saikrishna V  i changed that but still got the same error message


  • Author
  • Freshman II
  • Answer
  • July 24, 2025

@Tony Lanzer unfortunately i had to move on i am not using EntityIDSelector Anymore i found another way that worked for me. Thanks