Hi all - has anyone worked through a saved search ...
# general
a
Hi all - has anyone worked through a saved search formula that LPADs a number based on the first character being a decimal? e.g. if result of saved search is .25 --> 0.25.
m
TO_CHAR({field}, 'FM999999999999990.00')
a
Is there any way that you know of to get rid of the common? e.g. 1,000 without having to use Formula(Text) because FM turns 1,000 --> 1000.
1,000 and 1000. are both invalid JSON
m
Did you test this? I'm using it in a script that generates JSON payloads and pretty sure it handles all the scenarios I've thrown at it.
a
Yeah, I have to use some handlebar templating (e.g. toFixed numberField 2).
This is specifically when I have to send the JSON as an int field to the destination app.
.0 is invalid json but ".0" is valid
But I got it to work, and am using fill mode in saved search now. Thanks!