Default Currency in Livecycle

319 views
Skip to first unread message

Andrew Paterson

unread,
Jan 16, 2013, 7:54:34 AM1/16/13
to live...@googlegroups.com
Hi, not sure if anyone can help me here, but I have a form that has fields for "Fees", "Salary" etc. but as the form is to be used in several countries, I would like to add a drop down box to select the applicable currency i.e. USD, GBP, EUR etc. and for this to then alter the display "pattern" in all fields that currency is entered to show the currency selected. 

From what I can glean, the final Pdf shows the currency Not by the users locale default, but the default that applied to the LC programmer - please correct me if I am wrong.

Hope someone can help. Thanks in anticipation.

      

Angie Okamoto

unread,
Jan 16, 2013, 9:21:25 AM1/16/13
to live...@googlegroups.com
Andrew, 
There is a locale setting per form (form properties), and per field (object palette, field tab) in the form.
By default - yes it is set to the locale of the form designer.  You can script the locale setting of the currency field based on your drop down list. 
Depending on how many options you want to provide, a case or switch statement may be best.
An example:  DecimalField1.locale = "en_US";
Cheers,
Angie



      

--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/livecycle/-/QoBq8t9oyzEJ.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.



--
Angie Okamoto

Andrew Paterson

unread,
Jan 17, 2013, 6:29:06 AM1/17/13
to live...@googlegroups.com

Hi Angie - works a treat thanks!!

Just a couple of other questions - is there a script that I can use to change the locale properties "per form" rather than per field?

Also, where can I obtain a list of the various currencies available such as "en_US"?

Kind regards


Andy

Angie Okamoto

unread,
Jan 17, 2013, 12:13:44 PM1/17/13
to live...@googlegroups.com
Hi Andy, 
I don't believe you can script the entire form locale property at run time - you have to process the fields or the subform containers.


I use the XML source tab to find many items (like locale settings) by changing a value on the form, then looking at the XML source for the new value.
Assured Dynamics has a great sample form showing this already built on their website.  Hope this helps:
Cheers, 
Angie


--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/livecycle/-/SiKZ_u7C-gsJ.

To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.



--
Angie Okamoto

Andrew Paterson

unread,
Jan 17, 2013, 2:02:18 PM1/17/13
to live...@googlegroups.com
Well Angie, that just about wraps that up!!

Thank you again.

Andy
Reply all
Reply to author
Forward
0 new messages