Date in RTC

Troubles_In_Paradise
Member Posts: 588
Hi guys!
In a custom page I created an action that launches a Classic report.
But it gives me this error.
Since this error appears before showing the request form I think that the RTC doesn't like function I call in the trigger OnOpenForm().
could anyone give me a suggestion?
Thx in advance!
In a custom page I created an action that launches a Classic report.
But it gives me this error.
Since this error appears before showing the request form I think that the RTC doesn't like function I call in the trigger OnOpenForm().
IF VarBoolean THEN BEGIN VarDate := 0D; RequestOptionsForm.TextBoxValidityDate.ENABLED := FALSE; END ELSE RequestOptionsForm.TextBoxValidityDate.ENABLED := TRUE;I'm wondering if it's different the value of 0D in RTC :-k
could anyone give me a suggestion?
Thx in advance!
~Rik~
It works as expected... More or Less...
It works as expected... More or Less...
0
Answers
-
Are you sure that you are getting error at vardate := 0D;?
why because, in the error it is showing different date.. :-k
BTW, did you try with Format(Date)?0 -
mohana_cse06 wrote:Are you sure that you are getting error at vardate := 0D;?
why because, in the error it is showing different date.. :-k
BTW, did you try with Format(Date)?~Rik~
It works as expected... More or Less...0 -
Identify the place where exactly is coming and you can use Format(Date)0
-
mohana_cse06 wrote:Identify the place where exactly is coming and you can use Format(Date)
Thx for help!~Rik~
It works as expected... More or Less...0 -
In order to find the error I placed a simple message in the trigger OnInit() of Request form.
The message isn't showed because error comes before...
](*,) the date showed in the error is my working date. I changed it many times but nothing changed...~Rik~
It works as expected... More or Less...0 -
In the begining of the OnOpen form, try by adding Format(Workdate)0
-
is the request form enabled for the report?-Mihail- [MCTS]0
-
mohana_cse06 wrote:In the begining of the OnOpen form, try by adding Format(Workdate)~Rik~
It works as expected... More or Less...0 -
mihail_kolev wrote:is the request form enabled for the report?~Rik~
It works as expected... More or Less...0 -
then put debug messages in the request PAGE-Mihail- [MCTS]0
-
mihail_kolev wrote:then put debug messages in the request PAGE~Rik~
It works as expected... More or Less...0 -
Am I missing something... You use the report in RTC with or without layout? If you have layout, then the request form will never show, you should create request page.
EDIT Ooops, sorry, i missed that. You launch classic report in rtc...-Mihail- [MCTS]0 -
You can assign it to a new varialbe or VarDate
From where you are getting VARBoolean and VarDate?0 -
mihail_kolev wrote:Am I missing something... You use the report in RTC with or without layout? If you have layout, then the request form will never show, you should create request page.~Rik~
It works as expected... More or Less...0 -
Troubles In Paradise wrote:mihail_kolev wrote:Am I missing something... You use the report in RTC with or without layout? If you have layout, then the request form will never show, you should create request page.
Yes, you are 100% right..0 -
Troubles In Paradise wrote:mihail_kolev wrote:Am I missing something... You use the report in RTC with or without layout? If you have layout, then the request form will never show, you should create request page.-Mihail- [MCTS]0
-
mihail_kolev wrote:Troubles In Paradise wrote:mihail_kolev wrote:Am I missing something... You use the report in RTC with or without layout? If you have layout, then the request form will never show, you should create request page.
no problem Mihail
Thank you Mihail and thank you Mohana for help you're giving me.~Rik~
It works as expected... More or Less...0 -
From where you are getting VARBoolean and VarDate?
Is something else executed before this code0 -
mohana_cse06 wrote:From where you are getting VARBoolean and VarDate?
Is something else executed before this code
edit: no there's nothing before this code.~Rik~
It works as expected... More or Less...0 -
And are you sure you are connecting to the correct database - you say that the report works from classic client, but the error on the screenshot is from classic client instance. So I guess you might connect to the wrong database...-Mihail- [MCTS]0
-
mihail_kolev wrote:And are you sure you are connecting to the correct database - you say that the report works from classic client, but the error on the screenshot is from classic client instance. So I guess you might connect to the wrong database...~Rik~
It works as expected... More or Less...0 -
Troubles In Paradise wrote:mohana_cse06 wrote:From where you are getting VARBoolean and VarDate?
Is something else executed before this code
edit: no there's nothing before this code.
Then you should have added your code in OnPre Report trigger
Otherwise everytime your else part code will be executed..0 -
Troubles In Paradise wrote:In order to find the error I placed a simple message in the trigger OnInit() of Request form.
The message isn't showed because error comes before...
](*,) the date showed in the error is my working date. I changed it many times but nothing changed...
how u r calling u r report. Either by Code Or Proporty..
Try to keep a message on Report - OnInitReport()..
and run the report again.. Once..0 -
st0328 wrote:Troubles In Paradise wrote:In order to find the error I placed a simple message in the trigger OnInit() of Request form.
The message isn't showed because error comes before...
](*,) the date showed in the error is my working date. I changed it many times but nothing changed...
how u r calling u r report. Either by Code Or Proporty..
Try to keep a message on Report - OnInitReport()..
and run the report again.. Once..
already done! the error comes before~Rik~
It works as expected... More or Less...0 -
mohana_cse06 wrote:Troubles In Paradise wrote:mohana_cse06 wrote:From where you are getting VARBoolean and VarDate?
Is something else executed before this code
edit: no there's nothing before this code.
Then you should have added your code in OnPre Report trigger
Otherwise everytime your else part code will be executed..
you're right! I miss an information! before executing this code I put the variable to true and then I execute that code.
that code is called again on the trigger OnValidate() of that VarBoolean.~Rik~
It works as expected... More or Less...0 -
something about the Windows Regional settings - the date format-Mihail- [MCTS]0
-
If you can, export the report in text format and paste here0
-
Hi guys,
we (me, my colleague Troubles in Paradise and another colleague of mine) have solved the problem:
The installed CLIENT version was 32275, but the SERVER version was 32012.
If i remember well, some hotfix between these versions have fixed something about the date/time zones or something similar, and i guess that this could have generated the problem because of the different date/time management.
Thanks everyone for your effort, it is really appreciated :thumbsup:0 -
Thx again for help!
I can put "Solved" on this topic
~Rik~
It works as expected... More or Less...0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions