1. Attilio iLaga
  2. Valentina Reports ADK
  3. Tuesday, February 14 2017, 01:44 PM
  4.  Subscribe via email
hello,
I need help in order to format monetary values ​​in the report according to the Italian standard (eg: #. ###, ##). I read in the documentation link of use patterns.
The problem is that using xojo web the "locale" server is set as the American format, then format the data for use by the application xojo.Core.Locale ( "it-IT";). There is also a similar command on valentine report? Is there a way to specify the locale format of reports directly from the application?
Comment
There are no comments made yet.
Ruslan Zasukhin Accepted Answer
Hi,

I have update link in your post to wiki v7. It was to v5.

Guys say that we should add locale to report itself to resolve this.
We think this can be done in few days for 7.0.1
Please stand by, thank you for point.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 1
Attilio iLaga Accepted Answer
Hi Ruslan,
Thank you for the reply.
I wait for the release of the new version and if you can the documentation update.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 2
Attilio iLaga Accepted Answer
Hi Ruslan,

I saw that you have released version 7.0.1 contains the size_type field with option Relative To Region, but I have not figured out how to specificar and a different type of region. can you help me? Is there a way to Xojo when the report is generated to specify the type of format?

Also just installed a new version of the plugin is both the studio version, when I try to load the file .vsp from windows that Linux, the application crash.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 3
Sergey Pashkov Accepted Answer
Hi Attilio,

1) Relative To Region option of size_type property will change the height of control accordingly to the change of region height.

For example.
Let we have:
- vertical line from top to the bottom of the body region, option Relative To Region is selected for this line.
- field with can_grow property enabled, so the height of the region is not fixed.

Region will be resized to fit the text of the field, and the line will be resized as well.

2) Valentina Studio crashes on project loading? Or Xojo application?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 4
Attilio iLaga Accepted Answer
Hi Sergey,


1) I have I committed an error in reading the properties. I assumed to find the update required to format monetary values ​​of the properties. You know anything about this?

2) crash the Xojo application when it tries to load the file .vsp:


mProject = new VProject (f)
mProject.Open ()


Going back to the 6.6.8 version of the application works correctly.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 5
Sergey Pashkov Accepted Answer
Hi Attilio,

1) Setting a locale is not done yet

2) I have to check it, could you please tell what OS is used?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 6
Attilio iLaga Accepted Answer
Using Windows 10 in 64bit in debugging mode. On Ubuntu 14.04 64bit the compiled application does not crash suffered during the .vsp file load but when you try to generate the report.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 7
Sergey Pashkov Accepted Answer
Hi Attilio,
Windows build was broken, new build is available for download.
I'm checking the build for Linux.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 8
Attilio iLaga Accepted Answer
Hi segey,

thank you for your availability and timely intervention.
I look forward to the changes in order to format the currencies.
Good job
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 9
Sergey Pashkov Accepted Answer
Hi Attilio,

In the version 7.0.3 it will be possible to select the locale for project from the Valentina Studio.

Currently dialog is accessible from the following places:

  • Button on toolbar on the project tab
  • Item of the Project main menu item.


Current locale is shown on the button.
Attachments (2)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 10
Attilio iLaga Accepted Answer
Hi Sergey,

Thank you for your changes. It becomes available the download of the new version try the new feature.

good job
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 11
Sergey Pashkov Accepted Answer
Hi Attilio,

Version 7.0.3 is now available for download
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 12
Attilio iLaga Accepted Answer
Hi Sergey,


I downloaded and installed the new version, but when I try to generate the report xojo web application crash(windows 10 64bit - debug 32bit).
The desktop application works properly.

Edit:
The same problem is repeated on ubuntu 64 bit and xojo web application 64bit.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 13
Sergey Pashkov Accepted Answer
Hi Attilio,

Does it crash on VProject.MakeNewReport call?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 14
Attilio iLaga Accepted Answer
Hi Sergey,

exactly, just crash at that point. Among other things it does not generate any exception in the try catch.


try
mReport = mProject.MakeNewReport(nameReport, ds_str , sql )

catch e as VException
MsgBox "Errore creazione Report: "+e.Message

end



I also tested the new release of mac osx 10.12.3. I think that's an internal problem in the reporting.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 15
Sergey Pashkov Accepted Answer
And the same report is generated successfully from the Valentina Studio?
And desktop application?

Crashlogs on OS X are very helpful, do you have one of them? Easy to find through Console.app.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 16
Attilio iLaga Accepted Answer
yes, the same report is generated successfully from Valentina Studio and desktop application.


I am attaching the crash files hoping is the right one and that we can be of help.
Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 17
Sergey Pashkov Accepted Answer
Hi Attilio,

Could you please show how the nameReport, ds_str , sql values are constructed?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 18
Attilio iLaga Accepted Answer
Hi Sergey,


Reading the crash report I realized the error. We must define the encoding of the strings otherwise valentine crashes.


ds_str = DefineEncoding(ds_str, Encodings.UTF8)
nomeReport = DefineEncoding(nomeReport, Encodings.UTF8)
sql = DefineEncoding(sql, Encodings.UTF8)



You can see why it does not generate any exception? It would be very useful to understand and immediately solve the problem. Thank you
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 19
Sergey Pashkov Accepted Answer
Thank you.
According to the crashlog the crash happens in the string processing.
There were changes since 6.6.8 in this part.

But strings look as they must be ok.
Can you check their encoding in the debugger, please?
Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 20
  • Page :
  • 1
  • 2


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