APEX:登录到带有参数的页面后重定向 [英] APEX: Redirect after login to a page with arguments

查看:118
本文介绍了APEX:登录到带有参数的页面后重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在常规登录过程页面中

wwv_flow_custom_auth_std.login( P_UNAME => :P101_USERNAME, P_PASSWORD => :P101_PASSWORD, P_SESSION_ID => v('APP_SESSION'), P_FLOW_PAGE => :APP_ID||':1' );

wwv_flow_custom_auth_std.login( P_UNAME => :P101_USERNAME, P_PASSWORD => :P101_PASSWORD, P_SESSION_ID => v('APP_SESSION'), P_FLOW_PAGE => :APP_ID||':1' );

重定向到页面1,我的问题是我想重定向到页面1,但我想像上面的示例一样传递一些值,例如CURRENT_NODE_ID,P1_ID宽度为零

that redirects to page 1, my problem is that i want to redirect to page 1 but i want to pass some values like CURRENT_NODE_ID,P1_ID width zero like the example above

f?p=104:1:708914681153727:::CIR:CURRENT_NODE_ID,P1_ID:0,0

在wwv_flow_custom_auth_std.login函数中可以这样做吗?还是有办法做到这一点?

is this possible to do in wwv_flow_custom_auth_std.login function? or is there a way to do this?

谢谢

推荐答案

您不需要通过URL传递值.您可以修改身份验证方案以在用户登录时设置这些值.例如:

You don't need to pass the values via the URL. You can modify the authentication scheme to set those values when a user logs in. For example:

在您选择的身份验证方案中,将身份验证后过程设置为:

In your chosen Authentication Scheme, set Post-Authentication Process to:

APEX_UTIL.SET_SESSION_STATE('CURRENT_NODE_ID', 0);
APEX_UTIL.SET_SESSION_STATE('P1_ID', 0);

我通常在数据库过程中执行此操作,然后在身份验证方案中进行调用-这就是为什么我使用APEX_UTIL.SET_SESSION_STATE的原因.我还没有尝试过,但这可能在该领域也可以:

I generally do this in a database procedure and place a call to it in the Authentication Scheme - which is why I'm using APEX_UTIL.SET_SESSION_STATE. I haven't tried it but this might also work in this field:

:CURRENT_NODE_ID := 0;
:P1_ID := 0;

编辑

要修改您的身份验证方案(这些说明适用于Apex 4,但对于较早的版本,它们应该大同小异):

To modify your Authentication Scheme (these instructions are for Apex 4, but they should be much the same for earlier versions):

  1. 转到应用程序生成器
  2. 打开您要修改的应用程序
  3. 转到共享的组件
  4. 选择身份验证方案
  5. 打开当前的身份验证方案
  6. 向下滚动到登录处理
  7. 将您的代码放入身份验证后的过程
  1. Go to the Application Builder
  2. Open the application you wish to modify
  3. Go to Shared Components
  4. Select Authentication Schemes
  5. Open the current Authentication Scheme
  6. Scroll down to Login Processing
  7. Place your code in the Post-Authentication Process

这篇关于APEX:登录到带有参数的页面后重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆