Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Values are varying while printing in smartforms.

ajeet_kumar1992
Explorer
0 Kudos

In back side printing of quality parameter the value of properties : SPGR is not coming as per maintained in quality inspection pan.

Actual data in table is 0.96 but while printing that data in smartforms , it changes to 0.95999 .

I want exact data.

5 REPLIES 5

former_member289261
Active Contributor
0 Kudos

Hi,

Smartforms just print what you ask it to.

The problem is with the variable data type which is used to print it on the smartform. Probably, you need a 2 decimal variable but you are using a 5 decimal variable to store the value.

Use a variable with 2 decimal length and the issue will be resolved.

0 Kudos

Thanks Ashish

former_member809980
Participant
0 Kudos

Hi,

If  you want to display 2 decimal places in smartforms then use

&fieldname(.2)&

thanks!!

Former Member
0 Kudos

Hi,

If this is a quantity you need to associate it with a field containing the unit of measure in the smartform.  Check the tab 'Currency/Quant. Fields' in the form Global definitions.

Regards,

Nick

Former Member
0 Kudos

Hi

Declare a variable as

Data val1 type p decimals 2.

and then move your data to val1 variable and display in Smartforms.

Regards

Suganya