Skip to main content
Answer

PXSelector configuration

  • November 11, 2022
  • 3 replies
  • 846 views

param2022
Jr Varsity II
Forum|alt.badge.img

I want to save ID in the database and retrive description in PXSelector can anyone please help me here.

So I want to store costModifierId in the DB and Show costModifierName in the UI.

 

 

Best answer by Naveen Boga

Hi @param2022  To Save ID value and display the Description Name, you need to use the Substitute Key like below

Example:

[PXSelector(typeof(Search<INSite.siteID>), new Type[] { typeof(INSite.siteID) }, SubstituteKey = typeof(INSite.siteCD))]

3 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • November 11, 2022

Hi @param2022  To Save ID value and display the Description Name, you need to use the Substitute Key like below

Example:

[PXSelector(typeof(Search<INSite.siteID>), new Type[] { typeof(INSite.siteID) }, SubstituteKey = typeof(INSite.siteCD))]


param2022
Jr Varsity II
Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • November 11, 2022

@Naveen Boga Thank you soo much.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • November 11, 2022

Most welcome @param2022