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?
Answer
Converting to Modern UI - DescriptionField not respected
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;
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.