Hi i have this use case
im creating a pdf with documint
im showing "status":{{ table1.selectedRow.data.status }} but that have a value = ordered, theres any option to show the tag label instead? the label is 'generada'
thank you
Hi i have this use case
im creating a pdf with documint
im showing "status":{{ table1.selectedRow.data.status }} but that have a value = ordered, theres any option to show the tag label instead? the label is 'generada'
thank you
Hey @agaitan026!
Typically this would show up in the table's .columnMappers
property but it doesn't look like it is for tag columns I've filed a bug report and will let you know here when there's a fix!
In the meantime, I think you'll need to do the conversion in the transformer you're passing to your query... How many different labels do you have? If it's just the two from the second screenshot then a ternary like {{ table1.selectedRow.data.status === 'ordered' ? 'Generada' : 'Completada' }}
. Otherwise, you could make a separate table1SelectedStatusLabel
transformer that does something like:
const statusLabels = {
ordered: 'Generada',
completed: 'Completada',
// ... more labels
}
return statusLabels[{{ table1.selectedRow.data.status }}];
And then pass {{table1SelectedStatusLabel.value}}
to your query instead.
Doe either of those options work?