Skip to main content
Solved

Show attribute value in grid

  • June 17, 2026
  • 1 reply
  • 27 views

Forum|alt.badge.img+2

Hi all. I have multiselector attribute. I need show attribute value in my other view like this show in Attribute tab. 

For example: When valueID and description is fill  i need show description, when description is null i need show valueID

Best answer by tareshpatil51

Hii ​@bihalivan15,

If you're working with an attribute value stored through a selector/multi-selector and want the grid to behave the same way as the Attributes tab, you'll need to retrieve both the ValueID and the corresponding Description from CSAttributeDetail.

The standard approach is:

  • Join CSAnswers to CSAttributeDetail using AttributeID and ValueID.
  • Display CSAttributeDetail.Description when it contains a value.
  • Fall back to CSAttributeDetail.ValueID when the description is null or empty.

Conceptually, the logic is:

 
string displayValue =
string.IsNullOrEmpty(attributeDetail?.Description)
? attributeDetail?.ValueID
: attributeDetail.Description;

This mirrors the behavior of the Attributes tab in Acumatica:

  • Description exists → show Description
  • Description is blank → show ValueID

For a grid column, the cleanest implementation is usually to expose an unbound DAC field and populate it in a FieldSelecting event (or a projection/query field), so users see the friendly text while the underlying attribute value remains unchanged.

1 reply

Forum|alt.badge.img
  • Freshman II
  • Answer
  • June 18, 2026

Hii ​@bihalivan15,

If you're working with an attribute value stored through a selector/multi-selector and want the grid to behave the same way as the Attributes tab, you'll need to retrieve both the ValueID and the corresponding Description from CSAttributeDetail.

The standard approach is:

  • Join CSAnswers to CSAttributeDetail using AttributeID and ValueID.
  • Display CSAttributeDetail.Description when it contains a value.
  • Fall back to CSAttributeDetail.ValueID when the description is null or empty.

Conceptually, the logic is:

 
string displayValue =
string.IsNullOrEmpty(attributeDetail?.Description)
? attributeDetail?.ValueID
: attributeDetail.Description;

This mirrors the behavior of the Attributes tab in Acumatica:

  • Description exists → show Description
  • Description is blank → show ValueID

For a grid column, the cleanest implementation is usually to expose an unbound DAC field and populate it in a FieldSelecting event (or a projection/query field), so users see the friendly text while the underlying attribute value remains unchanged.