PORTAL.WWCTX_API.get_user

I'm using Oracle AP 10g
I know the PORTAL.WWCTX_API.get_user will give you the user id , but anyone knows which one do i need to use to come out with the group name .
P.S : the group name contains a list of certain employees
also where can i get a list of all the API's that i can use
Thank you
Nedal Seyam
Edited by: Nedal Seyam on May 14, 2009 8:26 AM

Sory, but you're in the wrong forum ;-)

Similar Messages

  • PORTAL.WWCTX_API.get_user  how can i get the group?

    I'm using Oracle AP 10g
    I know the PORTAL.WWCTX_API.get_user will give you the user id , but anyone knows which one do i need to use to come out with the group name .
    P.S : the group name contains a list of certain employees
    also where can i get a list of all the API's that i can use
    Thank you
    Nedal Seyam

    Nedal Seyam wrote:
    I'm using Oracle AP 10g
    I know the PORTAL.WWCTX_API.get_user will give you the user id , but anyone knows which one do i need to use to come out with the group name .
    P.S : the group name contains a list of certain employees
    also where can i get a list of all the API's that i can useI dont know what is Oracle AP 10g.
    However, you are probably looking for the default group name for a given user. Please see wwsec_api.get_defaultgroup.
    look into wwsec_api.get_list_members for a list of members in a group.
    The links to APIs that Opportalist presented should lead you to the descriptions of both functions.
    hope that helps!
    AMN

  • How do you use PORTAL .WWCTX_API.GET_USER

    Hi. I'm a newbie at Portal and Oracle and am having a problem extracting the userID for the logged user. I have
    a form that needs to be populated with the login ID for that session. What exactly do I need so that the field will
    auto-populate with the user's ID. Do I enter the api in the "Default Value" box of the form for that field? What do I need
    to select from the "Default Value Type" dropdown?
    Also, because I'm populating the form with data from the database (it's an update record form), I'd like to "blank" the
    comment field rather than populate it with the info from the DB record. Is that possible?
    Finally, is there any recommendations on manuals or other books to purchase that would answer these types of
    questions. I feel that this is a pretty basic task and should be in a manual somewhere.
    Thanks,
    Ron

    Hi,
    In the default value column specify <portalschema>.wwctx_api.get_user. In the default return type make it "function returns varchar".
    This should help.
    Thanks,
    Sharmila

  • Help: Portal calendar error when using wwctx_api.get_user

    Hi,
    I am trying to create a calendar based on some table data and results should be specific to portal user logged in. So I have created following query but it does not filter the data based on the user logged in. I have checked and there are no issues on data side.
    select
    a.EVENT_START_DT the_date,
    a.EVENT_NAME the_name,
    ( ) the_name_link,
    null the_date_link,
    null the_target,
    null the_intermedia
    from TBL_EVENTS a
    where a.Event_Status = 0
    and a.event_personal = 1
    and a.event_recorded_by = (select entryid FROM ods.CT_UID where upper(ATTRVALUE) = upper(wwctx_api.get_user))
    order by a.event_id desc
    Failing above I also tried other way using bind variable and then passing the page paramater (selecting system variables USER_NAME) to the bind variable
    Select a.EVENT_START_DT the_date,
    a.EVENT_NAME the_name,
    ( ) the_name_link,
    null the_date_link,
    null the_target,
    null the_intermedia
    from TBL_EVENTS a
    where a.Event_Status = 0
    and a.event_personal = 1
    and a.event_recorded_by = (select entryid FROM ods.CT_UID where upper(ATTRVALUE) = upper(:username))
    order by a.event_id desc
    However it still dont work.
    Can anyone please give me any suggestion or way to resolve this.
    Any help much appriciated.
    Thanks
    Ganesh

    Hi,
    I am storing OID user id but I am comparing as follows
    select
    a.EVENT_START_DT the_date,
    a.EVENT_NAME the_name,
    ('' ) the_name_link,
    null the_date_link,
    null the_target,
    null the_intermedia
    from TBL_EVENTS a
    where a.Event_Status = 0
    and a.event_personal = 1
    and a.event_recorded_by = (select entryid FROM ods.CT_UID where upper(ATTRVALUE) = upper(portal.wwctx_api.get_user)
    order by a.event_id desc
    but this comes with following error
    Unable to describe SQL statement. Please correct it (WWV-13010)
    Took exception (WWV-13005)
    ORA-01001: invalid cursor (WWV-11230)
    ORA-00921: unexpected end of SQL command (WWV-11230)
    Failed to parse as CCMPORTAL - select a.EVENT_START_DT the_date, a.EVENT_NAME the_name, ('http://portal.ccm.ac.uk/portal/page/portal/TMC/STAFFPORTAL/COLLEGE_SERVICES/COLLEGE_CALENDAR/Event%20Manager/Tab_Update?meventid=##A.EVENT_NAME##' ) the_name_link, null the_date_link, null the_target, null the_intermedia from TBL_EVENTS a where a.Event_Status = 0 and a.event_personal = 1 and a.event_recorded_by = (select entryid FROM ods.CT_UID where upper(ATTRVALUE) = upper(portal.wwctx_api.get_user) order by a.event_id desc
    I then tried creating bind variable as follows
    select
    a.EVENT_START_DT the_date,
    a.EVENT_NAME the_name,
    ('' ) the_name_link,
    null the_date_link,
    null the_target,
    null the_intermedia
    from TBL_EVENTS a
    where a.Event_Status = 0
    and a.event_personal = 1
    and a.event_recorded_by = (select entryid FROM ods.CT_UID where upper(ATTRVALUE) = upper(:musername)
    order by a.event_id desc
    and then passing system variable USER_NAME to musername in page parameter settings to the portlet.
    Please advise help
    Thanks
    Ganesh

  • HELP!!! wwctx_api.get_user

    I created a PL/SQL Server Page just to show the login information from a login portlet.
    The code follows:
    <%@ page language="PL/SQL" %>
    <%@ plsql procedure="logininfo" %>
    <HTML>
    <HEAD><TITLE>This is a PSP Page!</TITLE></HEAD>
    <BODY>
    <%
    declare
    myname varchar2(50) := portal30.wwctx_api.get_user;
    begin
    htp.print(myname);
    end;
    %>
    </BODY>
    </HTML>
    My Login portlet on success "P_request_url" calls for the above procedure.
    My problem was no matter what user I logged on with, it always dispays "PUBLIC" as the login user. What I need is to get oracle portal user who is curently using the session. WHY? Please Help!
    Thanks!

    there is a diffence between portal.wwctx_api.get_user and portal_sso.wwctx_api.get_user. Check and make sure you are using the api from the right context. You're probably getting the sso user and not the portal user.

  • Wwctx_api.get_user in Dynamic Page?

    Can API calls be made from select statements within the <ORACLE></ORACLE> tags in Dynamic Pages? The following query should list courses that someone has signed up for but the query cannot be saved within the Dynamic Page:
    <ORACLE>
    select course_name
    from course
    where user_id = wwctx_api.get_user
    </ORACLE>
    Regards,
    Jay
    Jay Mason
    Director, Oracle Web Applications Development
    Effective Shareholder Solutions, Inc.

    Jay,
    Just prefix the function with "PORTAL30" (or the name of the schema where Portal is installed, if not PORTAL30).
    <ORACLE>
    select course_name
    from course
    where user_id = PORTAL30.wwctx_api.get_user
    </ORACLE>
    null

  • WWCTX_API.GET_USER

    I created a custom folder and typed following sql in that:
    SELECT WWCTX_API.GET_USER from dual
    there was no problem in creating this folder.
    When i create a worksheet in plus and while running a query, its giving following errors
    ORA-14551: cannot perform a DML operation inside a query.
    ORA-06512: at "PORTAL.WWCTX_SSO",line 2954
    ORA-06512: at "PORTAL.WWCTX_SSO",line 3483
    ORA-06512: at "PORTAL.WWCTX_SSO",line 1735
    ORA-06512: at "PORTAL.WWCTX_SSO",line 2954
    ORA-06510: at PL/SQL: unhandeled user-defined exception
    ORA-06512: at
    Actually one of my query is based on SSO user id.
    When i use this "SELECT WWCTX_API.GET_USER from dual;" on SQL prompt. Its doesn't give any error.
    I need to use this WWCTX_API.GET_USER in my query. Any idea why its giving error in discoverer plus?
    Thanks

    Questions similar to yours have been answered earlier in the forum in these threads:
    http://forums.oracle.com/forums/message.jsp?id=456180
    http://forums.oracle.com/forums/message.jsp?id=628583
    You can search the forums by entering your search criteria in the text field in the upper right corner of the OTN Discussion Forum Page.

  • Using wwctx_api.get_user in dbms_rls policy

    We have not been able to succesfully use a call to wwctx_api.get_user in the function we use as a policy for row level security. The package compiles fine. The policy adds fine. When we try to select from the table where the policy is on from portal (LOV, REPORT, DYNAMIC PAGE) we get Ora-28112.
    Help?

    The error code maps to the following message:
    ORA-28112 failed to execute policy function
    Cause: The policy function has one or more error during execution.
    Action: Check the trace file and correct the errors.
    Could you try returning a static value from the security policy and do your select and see if that works.

  • Lack of performance using portal30.wwctx_api.get_user to limitrecords in portlets

    Hi,
    I have a portal page using 5 reports as portlets each of them use
    "where personid = portal30.wwctx_api.get_user"
    to limit the amout of data retrieve for each user.
    I have 250 users registred in login server whose can use this page.
    The 5 portlets fall in timeout every time, except if I replace "portal30.wwctx_api.get_user" by a constant,
    which is not very useful but works.
    Any idea to avoid usage of this API.
    Thanks in advance
    Didier Dubois
    mail : [email protected]
    mobile : +33 (0)6 74 68 54 78

    Hi,
    Instead of using the api in the query, use a bind variable and then customize the report to pick up the value from the api. Here is an example
    1) Create a sql report
    select * from usertab
    where user_id = :userid
    2) Publish this report on a page
    3) Now edit the page and go to the edit defaults of the report.
    4) You will have a textbox against userid. Here you enter #<portalschema>.wwctx_api.get_user
    Please replace the portalschema with the name of your portal schema.
    Thanks,
    Sharmila

  • Lov populated with wwctx_api.get_user

    Hi Friends ,
    I am trying to pull the records in to LOV based on the user login .."select dist from sometable where sname ='wwctx_api.get_user' ,,,But it is not returning any records ..Any help ..thanks in advance ..
    Vi

    Hi,
    I think the single quotes is the problem. It is trying to find a record with the sname = 'wwctx_api.get_user'. It should be
    select dist from sometable where sname = wwctx_api.get_user
    Thanks,
    Sharmila

  • Wwctx_api.get_user only returns PUBLIC

    I am trying to determine the user who has logged onto Portal, but this package only returns PUBLIC. I've seen in previous postings that this is the package to use - what am I doing wrong?

    Well, I'm almost stumped. As far as I know, you are in a different context when executing a PL/SQL routine directly through the DAD. The username & password are stored with the Portal DAD (similar to old OAS functionality), so the engine doesn't know who you are. You can try using a different DAD w/o username and password stored, but then you'd have to create database schemas for all of your users. In this case, you would probably have to use an OWA package to find out who they are, because they are not logged in to Portal.
    A better solution might be to create Forms based on Stored Procedure components for all of your procedures, which would enable you to keep the users in the Portal context. You would just have to create at least one (dummy) parameter for each, because forms based on stored procedures need a parameter.
    --Kelly                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Partner application access to portal login info

    How can an SSO partner application (Java) tell whether or not a user has logged in to Portal?
    I need to log activity in a public application servlet, so I'd like to log the user as PUBLIC if not logged in or as their actual userid.
    I don't seem to have access to this info until the user has visited a secure part of the app.
    Any pointers would be appreciated.
    Thanks
    Rob

    DIY answer ...
    The cludge I used to get round this was ...
    Make a PL/SQL item which displays a Login or Logout link as appropriate, based on the current userid from portal.wwctx_api.get_user.
    The login link goes to a secure portal page called FORCE_LOGIN, passing a URL parameter called nextPageURL which contains the URL of the next page to show after the login is complete. You can use portal.wwpro_api_parameters.get_value( '_pageid', 'a'); to help build the current page URL if you want to retun to the current page.
    The FOIRCE_LOGIN page contains a PL/SQL item which builds an IFRAME whos src is a URL to my app servlet ForceLoginServlet, passing on the nextPageURL parameter. Use portal.wwpro_api_parameters.get_value( 'nextPageURL', 'a'); to help with that.
    The ForceLoginServlet is a secure servlet (set up in web.xml) so that forces a silent authentication to my app. All the servlet does is display HTML to redirect back to the URL in nextPageURL.
    Horrible! But it does the job.
    Anyone who know a better way of doing this, please tell me.
    Rob

  • Retrieve Novell Username when not logged into Portal

    Hi,
    Is there a way I can store the users Novell username into a variable? This would be done in a report, displayed on the Portal homepage. I require this functionality before the user logs into the portal, so I can't use PORTAL.wwctx_api.get_user.
    Thanks

    Hi,
    IE is sharing the cookies between sessions.
    If you open IE and open another window by clicking <CTRL>+N or menu File >> New Window you have the cookies shared.
    If you open another IE by clicking on the IE icon you will have two seperate IEs which do not share cookies.
    Either you teach your users to use the "logoff" link in the portal header or code a new portal application that automatically destroys the portal cookie when the users leave the portal page...
    Hth,
    Michael

  • 9.0.2.6 Portal Repository Upgrade Patch problems.

    We got some problem with Portal when tryed to apply
    9.0.2.6 Upgrade. Could anybody give advice on this issue:
    Initial configuration:
    Solaris8, Portal 9.0.2.2.14, Oracle 9iAS R2 v.9.0.2.0, RDBMS 9.0.1.3. The infrastructure and midtier work on different SPARC-servers.
    Accordingly upgrade procedure we succesfully applied:
    a) Infrastructure: 9.0.1.4 Patchset for Oracle RDBMS server, 9.0.2.2 Patchset for OID, Oracle 9iAS SSO-server
    migration to 9.0.2.5, 9.0.2.2 Patchset for 9iAS Core.
    b) 9.0.1.4 Patchset for Oracle RDBMS server, 9.0.2.2 Patchset for OID, Oracle 9iAS SSO-server migration to 9.0.2.5, 9.0.2.2 Patchset for 9iAS Core, Portal 9.0.2.6
    patch.
    After this we needed to make just one last step:
    Portal 9.0.2.6 Repository Upgrade Patch (2981297) for
    changing Portal's repository schemes. It worked but
    like a result we got the next errors after patch upgrade
    was done:
    a) "The following invalid non-Portal objects exist in the Portal Schema: INDEX ABC (the name of portal object), PACKAGE BODY WWMON_REP_REPOSITORY, PACKAGE BODY WWMON_REP_REPOSIT_DTL, PLS-00103: Encountered the symbol "," when expecting one of the following: (-+case mod not null <an identifier>,...) The symbol "null" was substituted for "," to continue.)" See upgtmp/nonportal.log
    b) "ERROR: 1 invalid objects remain; ERROR: Failed while updating the new portlet IDS..."
    c) "ERROR: ORA-01407: cannot update ("PORTAL"."WWSBR_URL$"."URL") to NULL.
    d) Two package body of packages at PORTAL scheme became invalid: WWMON_REP_REPOSITORY, WWMON_REP_REPOSIT_DTL. About 20 package body of packages at PORTAL_DEMO became invalid (It seems like initial portlet ID's disappeared
    and except of pportlet_id there is nothing:
    Example:
    inital statement at body:
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    PORTAL.wwpro_api_invalidation.invalidate_cache(
    p_provider_id => p_provider_id,
    p_portletid => 1065753336,
    p_instance_id => p_reference_path,
    p_subscriber_id => PORTAL.wwctx_api.get_subscriber_id ,
    p_user => PORTAL.wwctx_api.get_user);
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    after upgrade repository patch:
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    PORTAL.wwpro_api_invalidation.invalidate_cache(
    p_provider_id => p_provider_id,
    p_portletid => ,
    p_instance_id => p_reference_path,
    p_subscriber_id => PORTAL.wwctx_api.get_subscriber_id ,
    p_user => PORTAL.wwctx_api.get_user);
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Like a result after 9.0.2.6 Portal Repository Upgrade Patch application we lost the possibility to edit user's
    profiles at Portal and other nesessary features. It seems
    like some portlet ID's just dissapeared from Portal scheme. Could anybody had the same problem with Portal Upgrade 9.0.2.6? Quite possible that we missed some important element at during upgrade but ,really, we didn't wait so unlucky result. Advice something, please...
    Regards. Igor.

    Igor,
    Since you've encountered undocumented errors, your repository upgrade has failed. You'll want to leave the repository as is for troublshooting, if at all possible, and log a TAR with support if you haven't already. They'll ask you to upload your upgrade log file and your upgrade tmp directory.
    Regards

  • Portal Logoff

    Hi,
    I have portal 10.1.4
    I am using dynamic page. I have header and footer portlets and in between I have created a dynamic page with the contents as follows
    <iframe name = "myframe"
    src="http://128.222.112.36:8882/Login-ViewController-context-root/faces/listUsers.jsp?_id7=<ORACLE>begin htp.p(portal.WWCTX_API.get_user); end;</ORACLE>"
    width="980"
    height="500"
    scrolling = "yes"
    frameborder="0">
    </iframe>
    as you see, I am using a IFRAME. With-in IFRAME src link runs the application. In short my app runs between Header and Footer portlets.
    PROBLEM: I created a Logout html link on one of my Jsp page. It logsout the user to Single Sign On page. But, since I am using IFRAME, that single sign on login page shows up between Header and Footer portlets. Thats not good. Bcoz, if user logs-in again, then on success, it shows 2 Headers on top and 2 footers at the bottom.
    How can I force the link to Log-of entirely from portal, so that it does not show the SSO page within Header and Footer ?? any idea
    thanks,
    pp

    have you tried to redirect users after logout to another page (with no headers / footers) ?

Maybe you are looking for

  • BI Admin Cockpit - RSIM_CHECK_REP_DATA  does not exist

    Hi All, we recently upgraded to BW731 SP06 and had quite some issues with the BI Admin Cockpit. Most of them have been solved in the meantime, however process chain 0TCTHC_CHECK_REP_DATA calls a program (RSIM_CHECK_REP_DATA) which does not exist. It

  • Can't Import Directly from Card Reader or Camera anymore

    I am using aperture 2.x and all of a sudden I can't import directly from my G9, 30D or San Disk card reader anymore. I have to copy files locally first to make this work. This is what happens: I can see and select the thumbnails off the card just fin

  • No Business Partner name in the general note of a DSWP-issue

    End user has been created within a CUA-sytem and distributed to the SSM-system. Subsequently the Business Partner BP has been generated in the SSM-system succesfully with the tcode bp_gen. The BP has been attached in the organization model succesfull

  • Purchase order release startegy

    Dear Experts, We have got release startegy for five release codes i.e L1,L2,L3,L4 and L5 for purchase orders Release startegy is based on Pur order category,doctype, Net order value and Pur group. For L1-L5 authorisation(all authorisations) is given

  • Where is the action script?

    I'm new to Flash. I've an animated movie clip that I wanna duplicate. The movieclip is clickable and when it is clicked, the Movie goes to a specific frame. I wanna duplicate it but change the frame number to a new one. The problem is I can't find th