Loading ...

Modifying fields of Default selector

Acumatica has an attribute that allows you to modify fields of default(created by Acumatica) selector. You could use this attribute when you are using an attribute that fits your needs but you have a lack of field on select, in my example we are gonna use INUnit that allows us to have a selector of Unit Of Measure.

If we are using default attribute for that we will have this result of selector


But I was requested to add additional information fields to that selector. To do this I used PXCustomizeSelectorColumns with next parameters
[PXCustomizeSelectorColumns(typeof(INUnit.fromUnit), typeof(INUnit.toUnit), typeof(INUnit.unitMultDiv))]
You could pass to this selector fields that you want to display

And now we can see fields that we need

Code of my field looks like this
#region UOM

[INUnit(DisplayName = "UOM")]

[PXCustomizeSelectorColumns(typeof(INUnit.fromUnit), typeof(INUnit.toUnit), typeof(INUnit.unitMultDiv))]

public string UOM { get; set; }

public abstract class uOM : PX.Data.BQL.BqlString.Field<uOM> { }

#endregion




 

Be the first to rate this post

  • Currently 0.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5