Uniface on GitHub
Fixes and Updates
Author: firstname.lastname@example.org (lalitpct)
$datim shows value of the client , is it possible to set it value from server.
$datim Return the system date and time or convert the argument to the Datetime data type.
SO if you want the info from a server, you have to execute on the server machine.
... what about execute a (self-contained) service remotely to get the $datim from a server.
But I think there are better ways to get date-time information from external machines..
Actually this we are lookign for existing application ..so we need to change everywhere where $datim is used to self contained service.
I thought there are some setup where we can do that ..problem is forms are called form server but $datim is taking value from indivisual machines
We have done this step-wise
For Step 2 and 5 of course you have to distintc between inheritance, empty or variations of Trigger.
The Include Proc starts a service, and get the sysdate either on the server or by reading it from the database (ORA: select...from dual).
in fact, you do not have to do that, it's just a mater of refactoring.
All you need is a procedure returning the datetime as $datim does; lt's call it my_datim
Now go through all your sourcecode replacing "$datim" with "my_datim()".
One option is to use a global export of your application as XML in a whatsoever editor.
And you have to make this procedure available to forms, services, etc.
That's all fffolks, Uli
P.S: I recommend Thomas Youngs suggestion using the database to return that date-time value.
You can use SQL to get the server datetime from the RDBMS server
for example, using Oracle as the default RDBMS, something like:
sql "SELECT TO_CHAR(SYSDATE, 'MM/DD/YYYY HH:MM:SS') FROM DUAL","$DEF"
will return the value in $result.
© 2021 Uniface Privacy & Cookies | Privacy Statement | Legal