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
Solved
Show attribute value in grid
Best answer by tareshpatil51
Hii
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
CSAnswerstoCSAttributeDetailusingAttributeIDandValueID. - Display
CSAttributeDetail.Descriptionwhen it contains a value. - Fall back to
CSAttributeDetail.ValueIDwhen 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.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.