这个问题可能由于缓存或 session state 的问题导致,可以尝试以下几种方法来解决:
禁用应用程序级别的缓存: 在应用程序的 Shared Components > Edit Application Properties 页面,将“Enable Session State”和“Enable Application-Level Authorization”设置为“NO”。
禁用应用程序级别的会话状态保存: 在应用程序的 Shared Components > Edit Security Attributes 页面,将“Session State Protection”设置为“None”。
在页面级别禁用缓存: 在需要刷新的页面的“Page Processing”区域中添加以下代码:
apex_util.set_session_state('REFRESH', dbms_random.value);
这会在 session state 中设置一个随机值,使页面在每次访问时都会强制刷新。
window.location.reload(true);
这会在提交数据前强制刷新页面,确保页面使用最新的数据库数据。
apex_util.redirect('f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.', 'REFRESH=YES:APP_PAGE_ID:', 'REPLACE');
这个代码会重定向回当前页面,并使用“REFRESH=YES”参数强制刷新页面,确保显示最新的数据。
上一篇:Apex身份验证套件