1. Roger
  2. Report Editor
  3. 月, 7月 20 2020, 06:36 AM
  4.  メールで購読
Hello

I make a very simple report in Studio Pro and I use 'report.generationDate'. Now I try to format and I had tried many versions, like the Valentina description, but whart ever I do every time the format is like 07/20/2020 (today unformated)

In the properties form this field I use datePattern and as pattern what ever I do, it is the same format....

What can be my problem?

Regards Roger
コメント
There are no comments made yet.
Roger 承諾済みの回答
Your JavaScript expression works fine, but if I use $(Date) as TextWithMacros it works now too. :(

Many thanks Sergey for your help, have a nice day.
Roger
コメント
There are no comments made yet.
Roger 承諾済みの回答
Your JavaScript expression works fine, but if I use $(Date) as TextWithMacros it works now too. :(

Many thanks Sergey for your help, have a nice day.
Roger
コメント
There are no comments made yet.
Roger 承諾済みの回答
Your JavaScript expression works fine, but if I use $(Date) as TextWithMacros it works no too. :(

Many thanks Sergey for your help, have a nice day.
Roger
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
When you tried $(date), you switched the "Language" to "Text With Macros", right?
添付ファイル
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
JavaScript expression:

report.generationDay.toString().padStart( 2, '0' ) + '.' +
report.generationMonth.toString().padStart( 2, '0' ) + '.' +
report.generationYear
添付ファイル
コメント
There are no comments made yet.
Roger 承諾済みの回答
Thanks Sergey

With $(Date) the properties dont works too. I had tried with $(Day, $Month...) without luck, the best I have i an unformatted date... Can I extend $(Day) with a format string like dd.MM.yyyy?
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Hello Roger,

Yes, there is some problem, we'll check JavaScript expressions formatting.
As a replacement, it is possible to use Text With Macros expression, with macro $(date)
添付ファイル
コメント
There are no comments made yet.
  • ページ :
  • 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. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories