1. Dale
  2. Valentina Studio
  3. Freitag, Februar 01 2019, 02:32 PM
  4.  Abonnieren via E-Mail
Hi! I would like to apply a currency symbol aside from dollars ($) in Valentina Studio Pro Report Editor. Is there a format setting that can display, say, Peso?

Thank you.
Kommentar
There are no comments made yet.
Dale Akzeptierte Antwort
Sergey, your guidance solves my problem. Thank you very much!

Cheers!
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hi Dale,

pre_build script of the report is better for this task - it is executed just once.

For example, currency symbol may be passed as the parameter:
report.controls.field1.pattern = report.parameterValue( "currencySumbol" ) + ",##0.##";
Anhänge
Kommentar
There are no comments made yet.
Dale Akzeptierte Antwort
Thank you for the response, Sergey. However, I am dealing with international transactions where the currency is changed as per transaction. The currency symbol is stored in the database. Can I generate the format at run-time? Something like, ThisObject.Format = Table.FieldCurrency + "###,###,##0.00"? There's a Pre-Place script but I don't know how to make use of it.
Anhänge
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hello Dale,

1) If you need to have different currencies in one project you can define own pattern for the field or summary control.

Just select Number value for property Kind and input a format, like here:
₱#,##0.##

It will produce values like
2,222.99

The format can be quite complex, it is implemented by the ICU library.

Here is the documentation for formatting in reports.

2) Or if you just want to print one currency instead of another in entire project - it is controlled by Locale setting on the project tab.
Kommentar
There are no comments made yet.
  • Seite :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 0 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories
Omegabundle
  1. 0 subcategories