Page 1 of 1
getDataValue with numerics
Posted: Thu Jul 05, 2018 1:03 pm
by pjshuey
Is there a way to keep leading zeroes when using getDataValue to retrieve the value of a numeric field from a grid?
Re: getDataValue with numerics
Posted: Thu Jul 05, 2018 1:49 pm
by Scott Klement
getDataValue just returns the value, it does not reformat it. If you're getting the value without leading zeroes, then there's nothing you can do with getDataValue() to change that.
You could, however, pass the output to pui.editCode or pui.editWord to reformat the number.
http://www.profoundlogic.com/docs/pages ... d=36044939
http://www.profoundlogic.com/docs/pages ... d=36044987
Re: getDataValue with numerics
Posted: Thu Jul 05, 2018 2:18 pm
by pjshuey
Thanks Scott! That should work for me!