壹佰网|ERP100 - 企业信息化知识门户

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1911|回复: 1

[OAF] 关于OAF中实现timer的功能(转载于 深山老僧)

[复制链接]
发表于 2008/1/3 22:46:11 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622  。

您需要 登录 才可以下载或查看,没有帐号?注册

x
需求:

Hi All,
I have a requirement which goes like this:

User logs in to the application navigates to one particular page and suppose if the user is idle with out posting any requests, after some time if user tries to click on some thing and say if the session times out, then the page saying session timed out gets displayed.

Now, i want to popup a window which would notify user saying that the application would time out in next x minutes where x + idle time = session time out value.Is this fessible?
If yes, how can i acheive this....ie say i am on Page A where i dont click anything causing idle time...where should i start writing my logic....and to do this i think i should start some parallel thread which would start the timer to keep track of the elapsed and idle times to throw popup.

Thanks,
Sushma.  


注意以上是时间到后,自动弹出窗口,自动执行

Hi,
Here are my responses:
Now, i want to popup a window which would notify user saying that the application would time out in next x minutes where x + idle time = session time out value.Is this fessible?
>>There is a profile option "ICX:Session Timeout",which is nothing but Maximum idle time for the Oracle Applications user session
(specified in minutes). You can put a js function in onload api of oabody bean, which will take value from the profile option, say value is x1 minutes, and suppose x minutes before of timeout , u need to throw an js alert,then ur pseudo code should be

String s="function update(){alert('The session will be timed out in"+<String variable comtaining value of(x)>+" ');}";
pageContext.putJavaScriptFunction("update","
//put value of (x1-x)*1000 in the second argument of api
String javaS = "javascript:setTimeout(\"update();\",<(x1-x)*1000>);";
bodyBean.setOnLoad(javaS);
Note, i haven't tested , but this should work fine, also check syntaxes.
--Mukul  

建议是采用javascript来实现

暂时记录,有待于验证
发表于 2012/4/17 07:57:52 | 显示全部楼层
暂时记录,有待于验证
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/30 02:36 , Processed in 0.015979 second(s), 14 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表