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().
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!
Answers
why because, in the error it is showing different date.. :-k
BTW, did you try with Format(Date)?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
It works as expected... More or Less...
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Thx for help!
It works as expected... More or Less...
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...
It works as expected... More or Less...
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
It works as expected... More or Less...
It works as expected... More or Less...
It works as expected... More or Less...
EDIT Ooops, sorry, i missed that. You launch classic report in rtc...
From where you are getting VARBoolean and VarDate?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
It works as expected... More or Less...
Yes, you are 100% right..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
no problem Mihail
Thank you Mihail and thank you Mohana for help you're giving me.
It works as expected... More or Less...
Is something else executed before this code
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
edit: no there's nothing before this code.
It works as expected... More or Less...
It works as expected... More or Less...
Then you should have added your code in OnPre Report trigger
Otherwise everytime your else part code will be executed..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
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
It works as expected... More or Less...
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.
It works as expected... More or Less...
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
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:
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
I can put "Solved" on this topic
It works as expected... More or Less...