Show text if attribute is empty in data grid

0
Hi all I have a data grid that shows people saved like this:   Company / Name/ Status   Company: Association to the company object saved Name: Name of the person Status: Enum (Confirmed / Open)   It is possible that a person does not have a company associated with them. In that case I want to show a text in the datagrid like e.g. “no company”. So if no connection to a company → show this text.   I have not found out how to do that or if this is even possible yet. Could someone help me with this?   Thanks.
asked
1 answers
0

It will be possible if you use the Data Grid 2 widget. In data grid 2, using the dynamic content option for the columns, you can specify your text along with attribute value. There using if then statement, you can configure it to display either company name or no company.
For details
https://docs.mendix.com/appstore/modules/data-grid-2#4-2-dynamic-text

answered