Skip to main content
Answer

Converting to Modern UI - DescriptionField not respected

  • July 18, 2025
  • 2 replies
  • 73 views

I am looking into converting some custom pages to modern UI.  The underlying DAC of these pages frequently uses DescriptionField derived from PXEnityAttribute to modify how an attribute is displayed in a grid.  For example:

        [CustomerActive(Visibility = PXUIVisibility.SelectorVisible,
            DescriptionField = typeof(Customer.acctName),
            Filterable = true,
            IsKey = false)]

The underlying attribute is an int for the customer ID, but rather than displaying that int it displays the string Customer.acctName to the end user.

This works fine in classic UI, but when pages are converted to .html files and .ts for modern UI, the conversion process doesn’t seem to respect the presence of description fields.  The selection process works fine, but the final thing displayed is the non-descriptive int.

How do I need to amend the html or ts to give it a hint regarding the presence of the DscriptionField on the DAC property?

Best answer by MattReynolds

OK, nm.

It’s always after you give up on it you find it.

@columnConfig({hideViewLink: true, width: 100, displayMode: GridColumnDisplayMode.Text})   CustomerID : PXFieldState;

 

2 replies

  • Author
  • Freshman II
  • Answer
  • July 18, 2025

OK, nm.

It’s always after you give up on it you find it.

@columnConfig({hideViewLink: true, width: 100, displayMode: GridColumnDisplayMode.Text})   CustomerID : PXFieldState;

 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • July 18, 2025

Thank you for sharing your solution with the community ​@MattReynolds!