cancel
Showing results for 
Search instead for 
Did you mean: 

Decimal field in Adobe interactive form

Former Member
0 Kudos

I am making one report in which i am displaying decimal field , if that variable contains value then there is no problem but when the value is null then it is showing 0.00 so please suggest me any method by which i can remove these 0.00 and the space left blank.

Thanks. Ankesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

arafat i dont hve to change any thing means any field value or else.??

paste the code as it is..??

Former Member
0 Kudos

my id is in my business card, not able to write it in post.

Answers (5)

Answers (5)

Former Member
0 Kudos

check mail and plz reply there @ wipro

Former Member
0 Kudos

amit stilll it is showing can i hve ur mobile number or email id.???

Former Member
0 Kudos

i dont hve idea of code what to write

my variable name there is $record.GIT_CHAR.DATA[*].LSF

it is one field of internal table now what to write in java script area there..

if resolved wil definately reward 10 points..

Former Member
0 Kudos

Do one thing...

write the following code on "intialize" event of LSF field:

xfa.host.messageBox( $.rawValue );

if ( $.rawValue == 0.0 ) {

$.rawValue = "";

}

What is the message coming in messageBox in case of value is 0, write that value in if condition.

Edited by: Amit on Jun 6, 2008 7:07 AM

Former Member
0 Kudos

it is not showing any results , i hve pasted the same code in the ready event with scripts , wil i hve to change the decimal field with the variable field name or else it wil work lik this only

Former Member
0 Kudos

Yes, you have to change DecimalField with the variable name and check the hierarchy also.

Former Member
0 Kudos

Hi Ankesh,

Use the below Javascript code:

if (this.rawValue == null)

{

this.rawValue = ' ';

}

Hope this helps.

Regards,

Arafat

Former Member
0 Kudos

Hi Ankesh,

Try this script on the form ready event of the subform containing the decimal field:

if ( $.DecimalField == 0.0 ) then

$.DecimalField.rawValue = ""

endif

Hope this solves your problem.

Amit