Hi guys!
Yesterday we crashed into a strange error.
I'll explain to you with an example:
Create 2 simple table:
1.
Table Name: Header
Fields: Code [Code10], Date [Date]
PK: Code,Date
2.
Table Name: Lines
Fields: Code [Code10], Date [Date], Number [Integer], Data [Text30]
PK: Code,Date,Number
For 1 Header could be many Lines.
Now create 2 pages. 1 Document Page based on the table Header and one ListPart based on the Lines Table.
In the Document Page call the ListPart with the standard property SubFormLink:
Code=FIELD(Code),Date=FIELD(Date)
And that's it...
Check to have english format for dates and numbers (see attachment 1).
if you run the page no problem...
now change the format for dates and numbers to slovak
restart RTC and run again page
the page is executed with the error:
the system try to make a filter on the field Date of the lines table with the value '11. '.
going deeper I found that if you remove the space as in Czech format there's no problem.
Have you already found a problem like this?
Thank you in advance!
Comments
It works as expected... More or Less...
Thanks for suggestion.
It works as expected... More or Less...
Hi Mihail, we changed the Culture on the Nav Server but no change...
It works as expected... More or Less...
Manish
Could you suggest me please?
Thank you very much.
It works as expected... More or Less...
I was talking about the date format strings settings. For example, the bulgarian format always append " г." at the end of the date, sounds quite the same issue. And when the format strings are different this is what happens. Did you ensure that the format strings (in Advanced settings of Regional and Language settings) are the same?
Also check the System Locale setting - Regional and Language->Administrative
Also in tab Administrative there's Slovakia.
The Client Machine has the same settings...
Maybe we're missing somenthing in DB settings?
I really don't know...
thank you very much...
It works as expected... More or Less...
Switched all settings on my pc in Slovack:
*Formats Tab
*Location Tab
*Keybords
*Language for non unicode programs
So the only other thingh not in Slovack is the Dispaly Language.
I run RTC on my pc pointing to a DB installed on my pc with the RTC service installed on my pc and (so... all on the same machine).
Executing the same test... no luck
It works as expected... More or Less...
With SQL profiler we saw that query is correct and data are sent in the correct way to the NAV Server, in fact no errros in the Middle-tier.
The error I attached is on client machine.
It seems RTC interprets space like "end of field".
The different behaviour could be explained in this way... your format is d.M.yyyy r. the space is between year and r.
Assuming that RTC cuts the field as soon as he reaches a space, to filter it uses d.M.yyyy that anyway it's a correct date.
It works as expected... More or Less...
See the attachment... system filters using 10.04.12 instead of 10.04.12 r.
RTC cuts dates field as soon as it reaches a space...
It works as expected... More or Less...
Anyway it's only a workaround...
It works as expected... More or Less...