on 01-24-2006 9:07 AM
Valery,
Thanks for your help with IFrame. This message is in continution to the message
I opened seperate thread as the clarification required is different.
Now the clock is running okay. However, I need to capture the time that is displayed when a user clicks button. Any code in WD, is getting server time which most of the time varies from the client side desktop.
Is there any way I can code where I get the latest time from the client side desktop and pass this information back to the R/3.
I know the portal eventing to get the time from IFrame is limited. It does not really matter if I read the time from IFrame or not. I think if I can get the client side time within the action of button click is okay.
If you need more details, please do let me know.
Thanks and Regards,
Raju
Raju,
There is no way to pass any parameters to WD application except for portal eventing and start-up URL parameters.
So it is impossible "to capture the time that is displayed when a user clicks button"
But all you have to know is time shift in hours at application startup time. For this, create redirect HTML page that will get user time via JavaScript, append time as URL parameter to WD application URL and call
window.navigate(<wd-app-url-with-param>);
WD application may get this parameter and calculate time shift between user and server time. Calculate up to hours precision (time zones has only offset by hours). Store this shift value somewhere in component controller attributes.
Now when you receive IWDButton.onAction event just add / remove shift from server time and pass this value to backend.
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Raju,
You get my statements a bit wrong.
If client and server time differs in seconds this is only due client-server call time. If minutes are different then either server or client has clocks non-synchronized with world time. Most probably this is client clocks.
Adding / removing time shift in hours does not mean dropping minutes or seconds information -- it is preserved. Also in any solution "seconds" part of information will be inaccurate for client-server applications with noticeable latency (like [ J2EE ] Web applications).
Valery Silaev
EPAM System
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.