cancel
Showing results for 
Search instead for 
Did you mean: 

replace space in decimal field in adobe form

Former Member
0 Kudos

Hi,

i am designing on adobe which contains some decimal fields. I am getting the data to be displayed from a webdynpro program. If the variable doesn't contains any value then it is displaying as 0.00 . please suggest me any solution by which i can remove these 0.00 and the space left blank.

Thanks

Sudha

Accepted Solutions (1)

Accepted Solutions (1)

vaibhav_tiwari
Contributor
0 Kudos

Hi Sudha,

Put the below FormCalc script at initialize event of the field:

if($.rawValue eq 0.00)

then

$.rawValue = ""

endif

Regards,

Vaibhav

Former Member
0 Kudos

Hi Marc and Vaibhav,

Thanks for the response. My issue is solved now and it is working fine.

Answers (1)

Answers (1)

koolspy_ultimate
Active Contributor
0 Kudos

replace all occurrences of '0.00' with ' '.

Former Member
0 Kudos

Hi

Thanks fo rthe response. I want to know is there any property in adobe form to set the value as space (if the value is 0.00)

Former Member
0 Kudos

Hi,

You are displaying amount field in your adobe forms. Thats why its diplaying 0.00.If you intend to display blank, change teh field in your internal table as character.And pass space instead of 0.00.

should solve your problem.

koolspy_ultimate
Active Contributor
0 Kudos

try to use the field as


data: field type i. "field refers to your required field

by doing this you can show empty space for empty values.

0 Kudos

Insert this scripting:

if (this.rawValue == '0.00') {

this.parent.presence = 'hidden';

}