Closed GoogleCodeExporter closed 8 years ago
Original comment by thehunge...@gmail.com
on 31 Oct 2012 at 4:31
See this thread:
https://forums.oracle.com/forums/thread.jspa?threadID=2455828&tstart=0
Could you check if any of the new APIs mentioned there work? As a last resort,
I guess the "select workspace_id from apex_applications" method should always
work.
Original comment by thehunge...@gmail.com
on 3 Nov 2012 at 9:05
apex_custom_auth.get_security_group_id seems to compile without problem. I
don't have a test case to determine whether it is correct or not, I don't use
this procedure myself. I tried running it but it raises ORA-20000: Session not
valid; so it doesn't actually get to that line of code in my tests.
procedure setup_apex_session_context (p_application_id in number)
as
l_security_group_id number;
begin
/*
Purpose: setup Apex session context
Remarks: required before calling packages via the URL, outside the Apex framework
Who Date Description
------ ---------- --------------------------------
MBR 20.10.2009 Created
*/
apex_application.g_flow_id := p_application_id;
if wwv_flow_custom_auth_std.is_session_valid then
apex_custom_auth.set_session_id(apex_custom_auth.get_session_id_from_cookie);
apex_custom_auth.set_user(apex_custom_auth.get_username);
--l_security_group_id := apex_application.get_current_flow_sgid(apex_application.g_flow_id);
l_security_group_id := apex_custom_auth.get_security_group_id;
wwv_flow_api.set_security_group_id(l_security_group_id);
else
raise_application_error (-20000, 'Session not valid.');
end if;
end setup_apex_session_context;
Original comment by jeffrey....@jk64.com
on 3 Nov 2012 at 9:47
Rewritten using the latest APIs (which are also compatible with Apex 4.1).
Original comment by thehunge...@gmail.com
on 17 Feb 2013 at 9:21
Original issue reported on code.google.com by
jeffrey....@jk64.com
on 18 Oct 2012 at 12:16