1. Attilio iLaga
  2. Valentina Reports ADK
  3. Dienstag, Februar 14 2017, 01:44 PM
  4.  Abonnieren via E-Mail
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?
Kommentar
There are no comments made yet.
Ruslan Zasukhin Akzeptierte Antwort
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.
Kommentar
There are no comments made yet.
Attilio iLaga Akzeptierte Antwort
Hi Ruslan,
Thank you for the reply.
I wait for the release of the new version and if you can the documentation update.
Kommentar
There are no comments made yet.
Attilio iLaga Akzeptierte Antwort
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.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
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?
Kommentar
There are no comments made yet.
Attilio iLaga Akzeptierte Antwort
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.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hi Attilio,

1) Setting a locale is not done yet

2) I have to check it, could you please tell what OS is used?
Kommentar
There are no comments made yet.
Attilio iLaga Akzeptierte Antwort
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.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hi Attilio,
Windows build was broken, new build is available for download.
I'm checking the build for Linux.
Kommentar
There are no comments made yet.
Attilio iLaga Akzeptierte Antwort
Hi segey,

thank you for your availability and timely intervention.
I look forward to the changes in order to format the currencies.
Good job
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
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.
Anhänge
Kommentar
There are no comments made yet.
Attilio iLaga Akzeptierte Antwort
Hi Sergey,

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

good job
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hi Attilio,

Version 7.0.3 is now available for download
Kommentar
There are no comments made yet.
Attilio iLaga Akzeptierte Antwort
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.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hi Attilio,

Does it crash on VProject.MakeNewReport call?
Kommentar
There are no comments made yet.
Attilio iLaga Akzeptierte Antwort
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.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
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.
Kommentar
There are no comments made yet.
Attilio iLaga Akzeptierte Antwort
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.
Anhänge
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hi Attilio,

Could you please show how the nameReport, ds_str , sql values are constructed?
Kommentar
There are no comments made yet.
Attilio iLaga Akzeptierte Antwort
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
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
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?
Anhänge
Kommentar
There are no comments made yet.
  • Seite :
  • 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