getDataValue with numerics

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
pjshuey
Experienced User
Posts: 119
Joined: Wed May 25, 2016 11:58 am
First Name: Patti
Last Name: Shuey
Company Name: Conestoga Wood Specialties
Phone: 7174452886
Address 1: 645 Reading Road
City: East Earl
State / Province: Pennsylvania
Zip / Postal Code: 17519
Country: United States
Contact:

getDataValue with numerics

Post by pjshuey »

Is there a way to keep leading zeroes when using getDataValue to retrieve the value of a numeric field from a grid?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: getDataValue with numerics

Post 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
pjshuey
Experienced User
Posts: 119
Joined: Wed May 25, 2016 11:58 am
First Name: Patti
Last Name: Shuey
Company Name: Conestoga Wood Specialties
Phone: 7174452886
Address 1: 645 Reading Road
City: East Earl
State / Province: Pennsylvania
Zip / Postal Code: 17519
Country: United States
Contact:

Re: getDataValue with numerics

Post by pjshuey »

Thanks Scott! That should work for me!
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests