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.
Attilio iLaga Accepted Answer
No, no more crashes. Now it all works.
Thank you
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 1
Sergey Pashkov Accepted Answer
And with encoding defined for all 3 parameters - the same crash happens?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 2
Attilio iLaga Accepted Answer
If not specific encoding Debugging defines nil. Using DefineEncoding (ds_str, Encodings.UTF8) sect properly
Attachments (2)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 3
Ruslan Zasukhin Accepted Answer
Yes we made few changes (to get better speed) with Xojo strings.

We use now other funds of Xojo SDK for plugins.
But it seems, our code is not protected yet for all possible string encodings.

Right now code is ready to get UTF8, UTf16, ASCII strings.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 4
Ruslan Zasukhin Accepted Answer
Advice,

before call to our func which crashes,
in Xojo debugger -- you can see each string object and its encoding.

We guess that some string has odd encoding. Not Utf8, utf16 AscII

You can check this and if really true, then you can use str.SetEncoding = utf8 for it
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 5
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. # 6
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. # 7
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. # 8
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. # 9
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. # 10
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. # 11
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. # 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,

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. # 14
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. # 15
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. # 16
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. # 17
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. # 18
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. # 19
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. # 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. 0 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories
Omegabundle
  1. 0 subcategories