Decimal convert


hello expert,

 

i realy need urgently. i'm developing sap adobe form. user requirement on decimal display have 3 type based on table on sap. 3 type of display below :

 

a)     1.234.567.89

b)     1,234,567,89

c)      1 234 567,89

 

 

i have hidden field in form stores decimal notation sap. problem cannot convert decimal> try tu use few way below :

 

if (formatvalue eq "a")

then

$.rawvalue = "num{zzzzzzz9.99

endif

 

and

 

if (formatvalue eq "a")

then

$.rawvalue = format("num{zzzzzzz9.99" &.rawvalue)

endif

 

 

but seems not working. can me out? i'm dying here..:(

    • 1. re: decimal convert
      jono moore level 4

      try following set picture format (pattern) field:

       

      $.format.picture = "num{(zzzzzz9.99)}"

       

      you can use prebuilt patterns like:

       

      $.format.picture = "num.currency{}"

      hi jono,

       

      thanks info. try use $.format.picture not work. code below:

       

      if ( data .mainpage.itinerary.itinerary.dataformatvalue.formatvalue2 eq "x"

      then

      $.format.picture = "num.currency{1.234.567,89}"

      $.ui.picture = "num.currency{1.234.567,89}"

      endif.

       

      also

       

      if ( data .mainpage.itinerary.itinerary.dataformatvalue.formatvalue2 eq "x"

      then

      $.format.picture = "num{zzzzzz9.99}"

      $.ui.picture = "num{zzzzzz9.99}"

      endif.

       

      my current filed decimal field try change numeric field stil still not working. ideas?



      More discussions in LiveCycle Designer


      adobe

      Comments

    Popular posts from this blog

    How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

    After Effect warning: A problem occurred when processing OpenGL commands

    Preconditions Failed. - Joomla! Forum - community, help and support