From Subtituting runtime values into texts we learn that we can substitute the value of a variable into a text using the && notation. Unfortunately the substitution seems to use the raw value than the formatted value (I am using a currency in a Dutch page so would expect 10 cents to show as 0,10 instead I get 0.1).
Is there a neat method to get the formatted value rather than the raw value ( for example &&fieldName.displayString() )?
Formatting substituted runtime values in texts
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 94
- Joined: Fri Sep 14, 2007 12:18 pm
- Location: The Netherlands
- Contact:
Formatting substituted runtime values in texts
Last edited by AJDulk on Thu Sep 08, 2016 4:49 pm, edited 1 time in total.
0 x
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
The displayValue property of a field is what you want but you can only use this via a script e.g.
Which is not as neat as &&variable substitution but it works.
Code: Select all
controls.TXT1.text.text = "Field value is " + fields.xxxxx.displayValue;
0 x
-
- Ebase User
- Posts: 94
- Joined: Fri Sep 14, 2007 12:18 pm
- Location: The Netherlands
- Contact:
Re: Formatting substituted runtime values in texts
Thanks for the info Jon, that is how I have solved it but I was hoping that there would be an easier way. Maybe this could be an enhancement for a future release?
0 x
Who is online
Users browsing this forum: No registered users and 20 guests