I'm building an app that links to a SharePoint list. When the app was built from the list I lost the formatting on a lot of my fields (percentage fields and currency fields). I unlocked the data cards and editted the text to keep inherting from parent but also include formatting using:
"£" & Text(Parent.Default, "0.00")
For every field this worked, but I have one field where it got the currency format but has way too many decimal places. In the SharePoint list it is validated to only have 2 decimal places and I specified in the text field to only hold 2 decimal places. Does anyone know what might be causing this? The only difference I can see between this field and the other fields is that this is a minus value (it has to be minus as it is net financial impact).
Screenshot below for reference to field and text code.
Thanks in advance
Solved! Go to Solution.
My thought is the field in Sharepoint is storing the value as Text already. Give this code a try, it will convert the field to a number and then re-convert to Text in the correct format.
"£" & Text(Value(Parent.Default), "0.00")
---
Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."
My thought is the field in Sharepoint is storing the value as Text already. Give this code a try, it will convert the field to a number and then re-convert to Text in the correct format.
"£" & Text(Value(Parent.Default), "0.00")
---
Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."
Solved! Thanks very much
No problem. Always happy to get someone unstuck so they can continue building!
User | Count |
---|---|
144 | |
142 | |
78 | |
77 | |
72 |
User | Count |
---|---|
227 | |
145 | |
78 | |
62 | |
59 |