01-17-2021 07:11 AM
I want to display a tooltip of a certain decimal fields value as an integer (without any trailing decimal point and additional decimal number), without changing the underlying data type.
How can I change the number display format using HTML\CSS\JS?
From what I've managed to understand so far from a simple web search, is that this cannot be done using solely HTML or HTML and CSS combination- JavaScript must be used.
Solved! Go to Solution.
01-19-2021 05:29 AM
Hi erangr,
Yes you are correct. The CSS can be formatted directly in the tenant database MAPP_VECTOR table for the desired tooltip.
However, CSS will not format the attribute value and for that JS is needed.
AFAIK there is not a reasonable way to accomplish this in Desktop.
You may include a custom script with the JS formatting function to a workflow and have this task be a user initiated action, but we are now having to consider the amount of effort.
It could be easier to format another attribute at the database level that drops the decimal places and use that as the Tooltip attribute.
The JS is more easily applied in Analyzer View tooltips by way of functional attributes.
HTH
sclow