Combining Addon fields values to display in datagrid

I am looking to display the combination of two fields from an Addon (Xano) in a datagrid column.

For example, I would like to display first_name +" " + last_name from the _person object within my collection. I have no issues displaying one or the other by using _person.first_name or _person.last_name in the Key value for the column.

Hi,

you can choose a custom type inside datagrid column option and then place any element inside (div, text, etc). By that you can create any UI you want.

1 Like

You can use the custom display value, see on the screenshot

1 Like

Thanks for the reply. This did the trick! While your response did help, it took a couple looks to see what the answer was. I will elaborate here to help others.

To reference the fields in the object within the collection, you need to refer to the object name in the “Key” text box. Once you do that you can access the fields within the object in the Display value formula. These will appear under the mapping.Item per antoine_caron’s post.

So in my case I set the Key for the column to the object name of “_person” and then the formula for Display value is set to
Mapping.first_name +" " + Mapping.last_name.

1 Like