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

Similar Messages

  • 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

  • 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

  • Select lists empty or POPup LOV needed with redirect

    Hi all,
    I have a form where i need 6 select lists with redirect or 6 POPup LOV with redirects.
    These select lists are separated in three groups
    like this
    group 1
    departments select list with redirect
    employees popup lov (query based on the value of department)
    group2
    Order select list with redirect
    OrderItem popup lov but needs a redirect here for employees (query based on the value of countries)
    employees popup lov (query based on the value of department)
    group 3
    some status select list with redirect
    When I choose the first select list the popup LOV is populated with good values
    when i select a value from the second select list the value in the first list disappears, including the value of the first popup lov. etc.
    How is it possible to keep the values stored in the first selects list when selecting some value of the second list.
    How is is possible to make a popup lov with redirect so that the values are in session
    and can be used in another popup lov?
    Is someone there who have experiences with this issue?
    thanks in advance,
    Hugo

    Hi Hugo,
    I don't think that you need a redirect for that. Check out my AJAX cascading popup lov solution.
    http://inside-apex.blogspot.com/2006/11/generic-solution-for-depending-select.html
    Hope this helps
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com

  • LOV Bug with rendering result?

    Hey,
    I'm attempting to create a basic LOV using either the "ADF LOV Input" or "ADF LOV Choice List" components.
    When I try to use these components with a small set of data they behave as one would expect, however I run into some odd behavior when the list behind the LOV is large and the component is required to fetch additional rows of data as the user scrolls through the options.
    With the LOV Input, as I scroll through the data it is retrieved fine, however when I select a value from the bottom half of the list, the component on the page does not update with the selected value and the console in JDeveloper throws the following [truncated] stack trace:
    SEVERE: Server Exception during PPR, #1
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.model.binding.RowDataManager.getRowIndex(RowDataManager.java:171)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.getRowIndex(FacesCtrlHierBinding.java:417)
         at org.apache.myfaces.trinidad.component.UIXIterator._fixupFirst(UIXIterator.java:310)
         at org.apache.myfaces.trinidad.component.UIXIterator.__encodeBegin(UIXIterator.java:297)
         at org.apache.myfaces.trinidad.component.UIXCollection.encodeBegin(UIXCollection.java:517)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:271)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase$ListOfValuesDialogRenderer.encodeContent(SimpleInputListOfValuesRendererBase.java:598)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelWindowRenderer.encodeAll(PanelWindowRenderer.java:190)
         at oracle.adfinternal.view.faces.renderkit.rich.DialogRenderer.encodeAll(DialogRenderer.java:135)
         at oracle.adf.view.rich.render.RichRenderer.delegateRenderer(RichRenderer.java:846)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase$ListOfValuesPopupRenderer.encodeAllChildren(SimpleInputListOfValuesRendererBase.java:634)
         at oracle.adfinternal.view.faces.renderkit.rich.PopupRenderer.encodeAll(PopupRenderer.java:225)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
    It looks as though the View Object on the back-end is getting populated with the correct value selected from the list (I have a second, cascaded LOV built off the value selected which is populating with the correct data) however the front-end is not getting populated with the correct data.
    With the second LOV component (ADF LOV Choice List) I am completely unable to scroll through the list of values; the component hangs as soon as it attempts to fetch any more data and throws the following [truncated] stack trace in the JDeveloper console:
    SEVERE: Server Exception during PPR, #2
    java.lang.NullPointerException
         at oracle.jbo.uicli.binding.JUCtrlListBinding$JUCtrlListBindingItemRef.get(JUCtrlListBinding.java:3006)
         at javax.el.MapELResolver.getValue(MapELResolver.java:164)
         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
         at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
         at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
         at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
         at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:70)
         at oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.getValue(ValueRenderer.java:170)
         at oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.getConvertedString(ValueRenderer.java:129)
         at oracle.adfinternal.view.faces.renderkit.rich.OutputTextRenderer.encodeAll(OutputTextRenderer.java:105)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
    If this is indeed a bug with the ADF components themselves attempting to lazy-load the values in the list, is there a way to force the component to simply load the entire list up-front instead of as the user scrolls? This would be an acceptable workaround for my application.
    For the record, the View this page is based off runs flawlessly in the BC tester. Also, incase this helps any, the LOV is not based on any sort of Fk link / association. It is built upon accessor attributes (and bind variables and view criteria in the case of the mentioned cascading LOV).
    Thanks in advance for the help,
    Chris

    Chris,
    can you provide instructions how to reproduce this based on the HR schema (e.g. Departments/Employees table). If its easier for you to create a testcase, please send it to frank. /nimphius /@ oracle.com (please remove blanks and slashes) in a zip file, where you rename the "zip "extension to "unzip"
    Frank

  • 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.

  • 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.

  • 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

  • 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 ;-)

  • 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

  • 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

  • Customization/Filteration (User LOV,User Type)  LOV attached with the role

    Dear All
    I want to Filter both Lov's attached with the custom attribute having Role type in Oracle Workflow.For example I want to restrict only Oracle Application User's appear on user type LOV and on second column i want to display user_id in Lov
    Best Regards
    Edited by: Muhammad Danish Younus on Jun 13, 2011 5:28 AM

    if I use Validate From List property, the form is displaying the LOV everytime I query the block eventhough the correct value is populated
    There is something wrong with your LOV or with the way you populate your block. An LOV should not pop up when you query data into the block.

  • Trying to d/l Kindle ap to new iPad w/retina display.  User ID is pre-populated with incorrect email address. How can I change this to my Apple User ID?

    Trying to d/l Kindle and Amazon aps to new iPad w/Retina Display.  User ID is pre-populated with the incorrect email address for my Apple account.  How can I change this to my correct Apple User ID?

    You should setup as new.
    Settings>General>Reset>Erase all content and settings

  • How to show shuttle component pre-populated with  SelectedItems

    Well i am trying to get this thing working and literally failed many times.. once the user selects some items in a shuttle... i want to get the selected values and store it somewhere.. Next time when the user logs in for second time the Shuttle should be
    pre - populated with the previously selected items .Can anybody suggest me and guide me about how to get this thing working...
    Please if anyone from oracle Jdeveloper team can show some light on it ...

    Hi,
    assuming the code hasn't changed between 10.1.3 and 11, you can have a look at these examples
    http://thepeninsulasedge.com/frank_nimphius/2007/07/15/adf-faces-adf-faces-shuttle-with-pre-selected-values-from-a-selectoncechoice/
    Let me know in case the code has changed
    Frank

  • Set a default value for a radio button populated with a List of value

    Hi,
    I am using jdeveloper 11.1.1.3.0. I need to set a default value for a radio button populated with a List of value(Yes/No). Here's the selectonechoice code.
    <af:selectOneRadio value="#{bindings.Code.inputValue}"
    label="#{bindings.Code.label}"
    required="#{bindings.Code.hints.mandatory}"
    shortDesc="#{bindings.Code.hints.tooltip}"
    id="sor1" autoSubmit="true"
    valuePassThru="true" layout="horizontal">
    <f:selectItems value="#{bindings.Code.items}" id="si1"/>
    </af:selectOneRadio>
    I want to have the selectonechoice set to No by default. In the previous versions, I set the default value in the base attribute VO. But it is not working in the new version.
    Thanks

    Hi,
    this should work in JDeveloper 11.1.1.3 the same as in 11.1.1.2. If it doesn't then it is better to file a bug than to work around it
    Frank

Maybe you are looking for