Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number and date format #24

Open
allgood opened this issue Mar 3, 2020 · 5 comments
Open

Number and date format #24

allgood opened this issue Mar 3, 2020 · 5 comments

Comments

@allgood
Copy link
Contributor

allgood commented Mar 3, 2020

What is the best way (is supported any) to format monetary numbers and dates on the report?

@Rctnet
Copy link
Member

Rctnet commented Mar 3, 2020

for example
date fields use this dd/MM/yyyy
numbers fields use #.##0,00
set this in pattern field of textfield properties

I will create a page with all supported formats and post in jasperphp.com

@Rctnet
Copy link
Member

Rctnet commented Mar 3, 2020

you can check all suported formats in

public static function formatText($txt, $pattern) {

@Rctnet
Copy link
Member

Rctnet commented Mar 5, 2020

@gamadoleo
Copy link
Contributor

A doubt, I know there is the numeric format of latin formatting, but this does not maintain compatibility with jasper studio, but I know that when putting the latin format in jasperphp it works which is a beauty, but I've always been pressing on compatibility, so a question wouldn't a way to define the thousands and decimal separators be more coherent? or even set based on a language?

@gamadoleo
Copy link
Contributor

the studio has the unique pattern formatting but it identifies the language and makes the adjustment automatically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants