Skip to main content
Answer

Add selector in the grid

  • November 12, 2022
  • 1 reply
  • 115 views

param2022
Jr Varsity II
Forum|alt.badge.img

I want to add a selector for Cost Modifier in this grid just like the InventoryID. The data is from my custom DAC but I am not able to do so can anyone please help me here.

 

 

Best answer by Naveen Boga

Hi @param2022  Add your DAC field like below

 

  #region CostModifier

[PXDBInt()]

[PXUIField(DisplayName = "Cost Modifier")]
[PXSelector(typeof(Search<CustomeDAC.IDField>), typeof(CustomeDAC.DescriptionField), DescriptionField = typeof(CustomeDAC.DescriptionField), CacheGlobal = true)]
public virtual int? CostModifier { get; set; }
public abstract class costModifier : BqlInt.Field<costModifier> { }
#endregion

 

1 reply

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

Hi @param2022  Add your DAC field like below

 

  #region CostModifier

[PXDBInt()]

[PXUIField(DisplayName = "Cost Modifier")]
[PXSelector(typeof(Search<CustomeDAC.IDField>), typeof(CustomeDAC.DescriptionField), DescriptionField = typeof(CustomeDAC.DescriptionField), CacheGlobal = true)]
public virtual int? CostModifier { get; set; }
public abstract class costModifier : BqlInt.Field<costModifier> { }
#endregion