Pass Username into a Page Parameter

Hi, I've got a discoverer portlet on my portal page that is pointed to a worksheet that accepts a parameter. I've created a page parameter on my portal page and I attempt to set its default value to wwctx_api.get_user...however, I can't get it to work. Help please.

Hi Kranthi.
1. Assuming you are with Plus you can make the parameters optional in the parameters screen (tools -> parameters)
so that if they get NULL as value they will return all data.
2. the second way is if you like to keep it mandatory is to define a default value for the parameter and then take care of the situation in the condition.
for example you'll define the 1-Jan-1900 as your default date for the from_date.
Then in the condition change if you'll define it just as from_date > :P_from_date then you got what you wanted.
BTW In similar situations when you are dealing with varchar you can do a manipulation such as:
from_date > :P_from_date
Or
:P_from_date = '1-Jan-1900'
Tamir

Similar Messages

  • Pass Username to HTML Page Viewer

    Is there a way to get the current username passed to an HTML page viewer in SharePoint? Or is there a better way to do that? I have an aspx page I need to pass the username to.

    Hi,
    According to your post, my understanding is that you want to send the username from SharePoint to the webpage.
    We can use JavaScript Client Object Model to get the current username and through the URL to send the value.
    The following thread for you to take a look at:
    http://social.technet.microsoft.com/Forums/en-US/a425f091-85df-4e99-9f8b-ee474c21ac2e/pass-username-in-url?forum=sharepointgeneralprevious
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How do I properly pass values into an input parameter form and app module?

    Using JDeveloper 11.1.1.4
    I created an application module that calls a PL/SQL procedure that uses input parameters. I exposed this to the data control and dropped the object on a jsff as a input parameter form. I need to set some of the input parameters on this form from values gathered and stored in a pageFlowScope bean. What is the proper way so that the values will: 1. show on the form, and 2. get to the java code in the application module that calls my procedure? An example field from my form is:
            <af:inputText value="#{bindings.pPayerId.inputValue}" label="Payer ID"
                          required="#{bindings.pPayerId.hints.mandatory}"
                          columns="#{bindings.pPayerId.hints.displayWidth}"
                          maximumLength="#{bindings.pPayerId.hints.precision}"
                          shortDesc="#{bindings.pPayerId.hints.tooltip}" id="it8">
              <f:validator binding="#{bindings.pPayerId.validator}"/>
              <af:convertNumber groupingUsed="false" pattern="#{bindings.pPayerId.format}"/>
            </af:inputText>Thanks,
    Troy

    Thanks Shay for pointing me in that direction.
    I didn't find the NDValue in the bindings, so I went to the pagedef xml and found it there. Changing the NDValue successfully delivered the value to the app module when the method was executed, but didn't show the value on the form. I had to add the same #{pageFlowScope.paramsBean.fileFormatParam} to the value of the input field and it now is working as needed.

  • How To Make A Public Page Parameter (similar to session)

    Hi, I'm new to Oracle Portal
    I wonder how to make a public parameter that can be accessed from any page (similar to session).
    So the portlets can use the public parameter.
    Case:
    when user logged in, I pass the employee_ID to the session.
    Portal pages, which contains employee portlet, and some other portlet depends on employee_ID.
    So I think, may be there's a way to set the parameter for once, but the value is accessible until the user log off.
    Any suggestion or help?
    Thx before,
    Chris

    Let me explain the problem once again:
    Page 1 Portlet 1 contains employee table
    ID, Name, Address
    When I click the employee ID (using event), it will be pass the value to page parameter EMPID
    And i want this EMPID can be accessed by
    Portlet 2 - Showing sales report
    Portlet 3 - Showing report
    Portlet 4 - Showing chart
    Portlet 5
    and so on
    Portlet 2, 3 4, 5, and so on is using EMPID as the parameter too,
    but these portlets are located in different page
    Portlet 2 is in page 2
    Portlet 3 is in page 3
    Portlet 4 is in page 4
    Portlet 5 is in page 5
    and so on
    First I think about using Package wwpro_api_parameters
    but after read further, this package can get and retrieve only
    I wonder can this (public page parameter) be done by using default Oracle Portal Tools / API, or I should do some java coding, or something else?
    Please help me...
    Thanx before,
    Chris

  • HOW to pass page parameter into table function in  HTMLDB

    I created this object and table function in database.
    create or replace TYPE date_flow_type
    AS OBJECT (
    time           date,
    max_time      number,
    avg_total           NUMBER,
    sum_total      NUMBER,
    max_total      NUMBER,
    change_rate      number
    create or replace TYPE date_flow_table_type AS TABLE OF date_flow_type;
    create or replace function ret_date(p_date date default sysdate) return date_flow_table_type is
    v_tbl1 date_flow_table_type :=date_flow_table_type();
    begin
    v_tbl1.extend;
    v_tbl1(v_tbl1.last):=date_flow_type (p_date,1,1,1,1,1);
    return v_tbl1;
    end;
    and it is correct in htmldb when using in these ways
    SELECT TIME da,
         max_time max_time,
         sum_total total,
         max_total max_total,
    change_rate
    FROM TABLE ( ret_icp_date_flow ) a;
    SELECT TIME da,
         max_time max_time,
         sum_total total,
         max_total max_total,
    change_rate
    FROM TABLE ( ret_icp_date_flow( sysdate-1 )) a;
    but return error
    ORA-00904: "RET_ICP_DATE_FLOW": &#26080;&#25928;&#30340;&#26631;&#35782;&#31526;
    when pasing page parameter into the table function
    SELECT TIME da,
    max_time max_time,
    sum_total total,
    max_total max_total,
    change_rate
    FROM TABLE ( ret_icp_date_flow( to_date(:p1_date,'yyyy-mm-dd') )) a
    and this sql is correct while running in sqlplus .

    Hi!
    Thanks for your reply!
    I have tried this solution but it doesn't work!
    When I do getInitParameter in the init function, the servlet take the default values...
    Maybe I have wrote something wrong?
    Excuse me for my english,
    Thanks

  • Unable To Pass Input Page Parameter Using PageDef File.

    Dear All,
    I am currently exploring task flows as I dont have that much knowledge in it.
    Here's my use case
    1. I setup a taskflow which has a Method Call and a View Activity in it.
    2. The method call is a default activity which just calls a web service.
    3. After execution, I just wanted to display the result of the method.
    I used input page parameters to pass data between the method call and the view activity.
         (I passed the data by accessing the pagedef file directly. I know I can do it using pageflowscope..but this is
         my self exercise so that I could understand ADF fully );)
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="ManageEmployeeTaskflow">
        <view id="viewEmployee">
          <page>/viewEmployee.jsff</page>
          <input-page-parameter>
            <from-value>#{data.com_test_ManageEmpFlow_methodPageDef.empInfoIterator.currentRow.dataProvider.name}</from-value>
            <to-value>#{data.com_test_viewEmployeePageDef.name.inputValue}</to-value>
          </input-page-parameter>
        </view>
        <method-call id="EmployeeSetup">
          <method>#{bindings.EmployeeSetup.execute}</method>
          <outcome id="__12">
            <fixed-outcome>viewEmployee</fixed-outcome>
          </outcome>
        </method-call>
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>Problem is, when I display the data. Nothing is being displayed.
    <af:inputText value="#{bindings.name.inputValue}"
                      label="#{'Name'}"/>          I debug the taskflow and the <from-value> really has a value, but I am not sure why it cant be passed to next pagedef.
    Any idea please?
    Edited by: Marky on May 15, 2011 11:25 PM

    Hi,
    I've been thinking... Is this way of passing parameters not possible?
          <input-page-parameter>
            <from-value>#{data.com_test_ManageEmpFlow_methodPageDef.empInfoIterator.currentRow.dataProvider.name}</from-value>
            <to-value>#{data.com_test_viewEmployeePageDef.name.inputValue}</to-value>
          </input-page-parameter>Thanks.

  • How can I pass a value into a page fragment?

    How can I pass a value into a page fragment?
    I am implementing four search screens. And the only thing different about them will be their backing bean.
    So I’d like to do something like have four pages, each which retrieves its appropriate backing bean, sets that bean to a variable, and then includes a page fragment which contains the generic search page code (which will make use of that variable).
    The code in the four pages would be something like this:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <c:set var="searchPageBackingBean"
    value="#{pageFlowScope.employeeSearchPageBean}"
    scope="page"/>
    <jsp:include page="./SearchPageBody.jsff"/>
    </jsp:root>
    At this point, what I’m seeing is that the fragment page, SearchPageBody.jsff, has no visibility of the searchPageBackingBean variable, either referencing it as #{pageFlowScope.searchPageBackingBean} or just #{searchPageBackingBean}

    The following will work, assuming you are needing to access a managed bean:
    Put this in the parent page:
    <c:set var="nameOfSearchPageBackingBean"
    value="employeeSearchPageBean"
    scope="request"/>
    Put this in the child, SearchPageBody.jsff:
    <c:set var="searchPageBean"
    value="#{pageFlowScope[nameOfSearchPageBackingBean]}"
    scope="page"/>

  • Help - Passing parameter to report using page parameter

    I have a SQL Report on a page
    The report query is
    select * from scott.emp where deptno = :department
    The URL for the page containing the report is:
    http://developer03.fis:7777/portal/page?_pageid=95,36455&_dad=portal&_schema=PORTAL
    I have added a page parameter = departnment
    and associated the page parameter to the report bind variable in the Portlet Parameter Values as follows:
    department = Page Parameter, department
    I displayed the page by going to the above URL
    and then added &department=10 to the end of the URL in the browser address.
    I expected the report to display records for deptno = 10, but the query didn't return any records.
    Anyone know what's wrong??
    Thanks Larry

    Yes, except you need to add &department=10 to the end of the page URL, not what I had.
    Look at
    How to pass values from a Page to portlet in Portal.
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=FOR&p_id=335031.996
    for a complete description on how to setup page parameters and associate them with bind variables.

  • Pass Page Parameter to next page

    Dear all,
    How do I pass a Page Parameter from one page to the next page?
    I have an omniportlet - SQL portlet defined, where one of the items is a link. I want one of the columns to be a hyperlink to a detail page. So I have to figure out 2 things:
    - how do I dynamically create the hyperlink
    - how do I catch the parameter value on the detail page?
    Regards

    Hi Linkit:
    Two things you may want to look at --
    1) The URL you indicate below while accurate is not considered a "durable" URL and could change. In fact it does change in the 10.1.4 portal version and will also be different across environments (dev, test, production ...) . If you look at your on-line portal help, do a search under "direct access URL", it has a decent write-up on how to do exactly that. In general on pre 10.1.4, it is http://<hostname>:<portnumber>/pls/<dad>/url/page/<pagegroupname>/<objectname> such as http://portal.mycompany.com/pls/portal/url/page/mypagegroup/mypage/mysubpage. This changes slightly in 10.1.4.
    2) For the receiving page to receive the parameter, it also needs to have a page parameter setup on it. If you set it up under the same name it should work. Also, in your example below, the ? in front of the parameter name ##DBCOLUM## should be a &. (? is used for the 1st parameter on a page _pageid in this case, and & is used for all other paramters)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to pass page parameter to report portlet ?

    Portal: 9.0.4
    RDBMS: 9.0.1.5.0
    OS: Windows
    REF: How to pass page parameter to report portlet ?
    Hi,
    I create a Oracle Report as a Portlet in Portal (create Report Definition File Access and check on the option "Publish As Portlet" in the on the last step). My report has an "Additional User Parameter" and I has let it "Visible to user".
    When I put this portlet in my Portal page, I can see this parameter in the property/parameters of this page. However I cannot transfer my page parameter to this portlet parameter. Other portlets in this page (non-Oracle-Report portlets) are working fine with my page parameter.
    Please advice.

    I want to make sure we are talking about the same thing:
    After you add the portlet to the page, you go to the page properties, then the parameters tab, then there is a section at the bottom called "Portlet Parameter Values" where you can click and expand your portlet to see your portlet parameters.
    Is it here where your parameters just don't show up?
    If it is, try the following:
    - Add the portlet to another page and see if it still behaves the same.
    - Mark the parameters in the portlet as being non-public, re-generate portlet (on manage tab), then mark them as being public, re-generate and then try the above again (add to another page).

  • Passing page parameter to form object in Porlet

    How can I pass a page parameter to a Portlet that contains a form? I wish to set the default value of a dropdown item in the form based upon a page parameter. Thanks.

    I have found that when you set a value for a bound variable in the customise screen you cannot clear it. For some reason it seems to be stored as a null value somewhere and it always over-rides any page parameter setting.
    Try renaming the parameter in your report. Make it public as before and then link it to the page parameter (you probably don't need to rename this, but it might be a good idea to make it more than just the letter p). Watch out - parameters in the url are case sensitive.
    Good luck.
    Patrick.

  • Discoverer - passing value into Parameter Field.

    I would like to pass sysdate into a parameter I have created called "Start Date" and sysdate+30 into another one called "End Date" but have been unsuccessful.
    Any ideas folks?
    I have tried by putting in different combinations in the defaul value - including SQL etc but to no avail.
    I am relatively new to Discoverer so apologies if its a stupid question and the functionality isnt there.
    Thanks!
    Sam

    Hi,
    The functionality isn't really there to do this, but there are a number of workarounds. The most frequently used workarounds are:
    1. Create a list of values containing CURRENT_DATE as a text value using for example a custom folder containing:
    SELECT 'CURRENT_DATE' date_field FROM DUAL
    UNION ALL
    SELECT TO_CHAR(other_dates) FROM another_table
    Then in a condition decode CURRENT_DATE back to sysdate, e.g.
    select_date = DECODE(:date_param, 'CURRENT_DATE', TRUNC(sysdate), TO_DATE(:date_param))
    2. Use a NULL parameter to mean current date. The user will be prompted to enter NULL for the current date then you can decode this out in the condition:
    select_date = DECODE(:date_param, NULL, TRUNC(sysdate), :date_param)
    3. Use a date offset as the parameter, so that 0 is the current date, -1 is yesterday etc. You then use a condition like:
    select_date = TRUNC(SYSDATE) + :date_param
    Hope that helps,
    Rod West

  • Session state is not being passed properly to another page

    Hello Gurus,
    I have a multi-page application which authenticates using a simple authentication page 101. Right now I have a generic authentication scheme which always returns true (Session Verify Function= return true; I will integrate LDAP later.) It works fine. The app remembers the username from one page to the next (popup pages mainly).
    My issue is that, after exporting the application and re-importing into a new workspace, the user/session state is no longer being preserved from page to page. It prompts for a login every new page that is opened (the popups). This ruins the flow and functionality of the app.
    I've checked every setting (I think) and cannot find any differences between the two workspaces or apps. Any ideas why this would work in one workspace and not the other?
    TIA!
    Jonathan
    I should also indicate that the issue seems to be specifically in calling "callmypopup" function. For some reason it isn't passing the session id properly to the popup page, where it did fine in the other workspace. function text:
    function callMyPopup (sourceItem, popuppagenum, targetItem, appid, appsession) {
    //opens popup pg and passes value in sourceItem to targetItem
    //sourceitem=calling text box, targetItem=text box in popup page
    var minlength = 3;
    if (CheckLength(sourceItem, minlength))
    var formVal1 = document.getElementById(sourceItem).value.toUpperCase();
    var url;
    url = 'f?p=' + appid + ':' + popuppagenum + ':' + appsession + '::::' + targetItem + ':' + formVal1;
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    else {alert('Please enter at least ' + minlength + ' characters in your search.');}
    Edited by: austindurant on Sep 5, 2008 7:02 AM
    Edited by: austindurant on Sep 5, 2008 7:46 AM

    It looks like your session id is not correctly passed to your popup page. Try using:
    javascript:popUp2('f?p=&amp;APP_ID.:1:&amp;SESSION.:::::', 600, 700);
    instead, which does the same thing. Put your parameters for the page items there if required.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Displaying  page parameter value

    I have a LOV portlet that contains division names with no bind variables involved. In the same portlet region, I have a calendar component that show documents for a division.
    When the user select a division name from the Lov, the onChange event calls the same page passing the division name as a url parameter. The calendar has a bind variable mapped to the page parameter division_code.
    When the page redisplays, I want the default value of the LOV set equal to the page parameter value. How do I do this?
    Thanks,
    Ed

    Hi,
    Try using wwpro_api_parametes.retrieve.
    wwpro_api_parameters.retrieve
    This Retrieves a list of all the URL parameters (names and values) from every
    portlet instance that belongs to a provider.
    The names and values are returned, unchanged, into a table. If a parameter has more than one value, only the first is returned.
    Any user can use this procedure.
    Example:
    If a URL has these parameters:
    http://.......?empno=10&amp;deptno=10&amp;a.deptno=20a.deptno=25&amp;a.folderid=30
    Then this call:
    wwpro_api_parameters.retrieve(
    l_names,
    l_values
    Sets the following names and values:
    'empno', 'deptno', 'a.deptno', 'a.deptno', 'a.folderid' in l_names
    '10', '10', '20', '25', '30' in l_values
    Hope this helps.
    Thanks,
    Sharmila

  • How does page parameter work?

    Hello,
    I got a question about page parameter.
    I created a page parameter, e.g. userName
    and assingn it a value : smith, also allow customer change the default value.
    When I try to pass a new value to Username, I do something like:
    http://myportal/portal/page?_pageid=34,421&_dad=portal&_schema=PORTAL&userName=tom
    My question is how do I know the value has been pased to userName? how to retrieve the value of userName?
    Thank you so much for your attention,
    Emily

    Hi Christian-Can can Page parameters be used in Page Portlets?
    I have created an attribute and then assigned that attribute as a paramater to a page and set a default value for each page for instance for Page 1 have the value, Page2 I have value 2 and so on and so forth....
    i have published all these pages as portlets....
    and now I have added portlet of page one to my page....
    i have a bunch one links i have added to another region on the same page that go to Page1, Page2, and appended the parameters to the page.... as follows...
    http://myURL&myAttribute=2
    this should change the content of the Page Portlet to the Page2 or Page3 depending on the value of the myAttribute set right...
    but it does what is the reason?
    Rebecca

Maybe you are looking for

  • Underlining a digit in jFormatted Text Field

    Let me rephrase a question a I asked yesterday now that I've learned more.. I want to allow the user to click on a digit in a FormattedTextField and have that digit underlined. (buttons then inc or dec the digit value). I tried changing the default C

  • ABAP runtime errors    COMPUTE_BCD_OVERFLOW

    ABAP runtime errors    COMPUTE_BCD_OVERFLOW        Occurred on     12/08/2010 at 06:44:17 >> Short dump has not been completely stored. It is too big. Error analysis An overflow has been determined in the current arithmetical operation containing ope

  • MS OS Patching Images in WDS

    Hi All, Is there a way to apply MS OS patches to client OS images in WDS without deploying the image, applying the patches, and then uploading the image to the WDS server? We have a Windows Server 2008 R2 WDS server and we use WSUS for patch manageme

  • Intercompany Account

    Hi Experts, When I am posting Vendor Invoice, I am facing a problem. It is asking for 'Trading Partner' for Intercompany GL lines. How to find whether an Account is a Intercompany account or not? Thanks, Sreenivas Reddy

  • YouTube Account in Widget

    Hi, I can launch the YouTube widget and have the Media Manager installed (just put on the latest version today). When I login to the YouTube widget with my YouTube account (on the TV) I get presented with three options to play some videos. The one I