Dymanic Page parameter

Hi,
i am trying to do a dymanic page with two parameters but did not work.
My code:
<ORACLE>
declare
dt_inicial date := :inicial;
dt_final date := :final;
cursor c1 is
select createdate, display_name title, name link, parent_id
from PORTAL.WWSBR_ALL_FOLDERS
where parent_id in (311411, 355458, 424539, 478702, 306726, 399236, 384259, 370057, 326232, 467393, 459982, 442742)
and createdate between to_date(dt_inicial, 'dd/mm/yyyy') and to_date(dt_final, 'dd/mm/yyyy') order by createdate desc;
begin
for x in c1 loop
end loop;
end;
</ORACLE>
When i replace the :inicial and :final for a static value, the page works.
Somebody can help me with this problem?
Thanks.

Hi Bruno,
I presume you are using the dynamic page portlet ? If so check that you ticked the 'Make Public' checkboxes for your bind variables in the button options section of the portlet definition.
You must also 'wire up' the bind variables to page parameters (page properties > parameters tab). In your example you will need to add two parameters, say inicial and final, navigate to the portlet parameter values section of the page for your portlet and for each bind variable, select 'Page Parameter' from the drop down and the associated parameter name you added above
You will then be able to enter these parameters at the end of your url e.g.
http://yoursite.com:port/portal/page/portal/<pagename>?inicial=<value>&final=<value>
Hope this is what you meant :)

Similar Messages

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

  • Unable to bind portlet parameter with page parameter in webcenter portal

    Hi All,
    I am trying to bind portlet parameter with the page parameter so that I can ahieve some business requirements.
    Here is what I did,
    In my Portlet producer application:
    1) Created standards based portlet (jsr 286) with view.jspx and edit.jspx with rest of the things being default.
    2) In my portlet.xml created two parameters and assigned these parameters to the portlet created above.
    3) In the view.jspx added couple of output label adf components in the page.
    4) deployed this to integrated weblogic server.
    In my WC portal application:
    Created a new page and added the portlet to this page( WSRP connection already exists).
    deployed portal application on integrated server.
    In the edit mode of the page I added one page parameter(Param1) and some default (constant) value added.
    What I want is this:
    when Param1 value is One display first output label and
    when Param1 value is Two display second output label.
    I am using jdev 11.1.1.5.0 with integrated weblogic server.

    There is no need to use page parameters for this.
    You also have two types of parameters depending on what you want...
    1) Preferences: these parameters can be used on a user based level. This means that users can personalize the portlets. When a user change the value of a preference, it is only applied for that specific user
    2) Public parameters: these parameters are used to customize the portlet. The value you set in these parameter apply for all users.
    I have made a simple example to show these two differences: http://www.yonaweb.be/PortletTest.zip
    The portlet has 4 inputText on it. The first two can be set by specifying One or Two into the preference.
    The other 2 inputText uses the value of the public parameter.
    You should only deploy the portlet and consume it in a webcenter application. In the webcenter application, you don't need to do anything special. All is done in the portlet.
    I am guessing you don't have written the code that will get the value of the parameter:
    in case of a preference you will get the value by following code:
       PortletRequest request = (PortletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
       PortletPreferences preferences = request.getPreferences();
       return preferences.getValue("outputparam", "One");In case of a public parameter (for customization instead of personalization) you use following code to retreive the value of a public parameter:
    PortletRequest req = (PortletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
      String param = (String)req.getParameter("PublicParam");
      if(param == null)
          return "Three";
      return param;This code can also be found in the sample portlet application.

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

  • Using page parameter causes "form" layout report to become "tabular"

    I did a diff on the HTML generated for the page and found this:
    Page Parameter Used:
    <TH ALIGN="Left" SCOPE="col"><FONT CLASS="PortletHeading1">Employer Auth Treatment</FONT></TH>
    Page Parameter Not Used:
    <TH SCOPE="col" ALIGN="LEFT" VALIGN="TOP"><FONT CLASS="PortletHeading1">Employer Auth Treatment</FONT></TH>
    Notice that the VALIGN="TOP" is missing in the first one. Does anyone know how to fix this?
    Thanks.

    CORRECTION (forgot the "<!-- down1 -->"...but this is just a comment, correct?)
    Page Parameter Not Used:
    <TH SCOPE="col" ALIGN="LEFT" VALIGN="TOP"><FONT CLASS="PortletHeading1">Employer Auth Treatment</FONT></TH>
    <!-- down1 -->

  • 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

  • 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

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

  • Know about page parameter

    Hi,
    I want is there any page parameter portlet if it is then where it is in oracle portal

    Hi,
    Can you tell us more details about the functionality you are trying to achieve ?
    Regards,
    Sandeep

  • How to make header scollable in top-of-page parameter in rs_tree_list_displ

    hi frnds,
    I have a requirement.
    I want to make the header section scrollable in the top-of-page parameter of the fm rs_tree_list_display, but i am not able to do it.
    please help me out.
    code snippet is as follows:
    CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
        EXPORTING
          CALLBACK_PROGRAM      = SY-REPID
          CALLBACK_USER_COMMAND = 'USER_COMMAND'
          CALLBACK_TOP_OF_PAGE  = 'TOP_OF_PAGE'
          CALLBACK_GUI_STATUS   = 'MY_STATUS'
          COLOR_OF_NODE         = '4'
          USE_CONTROL           = 'L'.
    FORM TOP_OF_PAGE.
      DATA: V_YEAR TYPE CHAR30.
      DATA: V_PRCTR TYPE CHAR40,
            V_PF_AC TYPE CHAR35.
      CONCATENATE 'Profit Center Group:' P_PRGRP INTO V_PRCTR.
      CONCATENATE 'Profit&Loss A/C Group:' P_PRGRP1 INTO V_PF_AC.
      CONCATENATE 'Fiscal Year:' P_RYEAR INTO V_YEAR.
      SHIFT P_FRPMAX LEFT DELETING LEADING '0'.
      SHIFT P_TRPMAX LEFT DELETING LEADING '0'.
      WRITE:/.
      WRITE:/30 P_TXT.
      WRITE:/.
      WRITE:  /2 V_PRCTR,
              /2 V_PF_AC,
              /2 V_YEAR,
              /2 TEXT-019,18(2) P_RVERS,
              /2 TEXT-020,18(2) P_FRPMAX,
              /2 TEXT-021,18(2) P_TRPMAX.
    endform.
    Thanks in advance for your help.
    Hariom

    Use OO method, instead of FM, using class cl_gui_alv_tree, where you can display a HTML header.....
    Check the wiki for demo program......
    http://wiki.sdn.sap.com/wiki/display/Snippets/ExampleaboutALV+Tree

  • Unable to read space page parameter value throug EL

    Hi All,
    I have been stuck in a big problem, I have to use dynamic page template in web center space means Different template for different pages.
    For this I added a new page parameter in page properties but I am not able to read any Page Parameter Properties through EL.
    Now my question is how can I get Page Parameter value through EL?
    I appreciate your quick response.
    Thanks :)

    you can check it out the below mentioned links-
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/taskflows_parameters.htm#CHDIAIJJ
    http://www.exampledepot.com/egs/javax.servlet.jsp.jstl.core/getparam.html
    http://blogs.oracle.com/shay/entry/passing_parameters_to_an_adf_p
    http://www.orastudy.com/oradoc/selfstu/fusion/web.1111/b31974/web_adv.htm#CACFGEBH

  • Current date as page parameter

    Hi,
    Anyone knows wether it is possible to pass the current date as a page parameter to a portlet (for example the omniportlet). System variables won't do it.
    Thanx
    Our portal: www.vcob.be

    we have a similiar issue and we use javascript for that purpose, we build an html portlet to acomplish that
    hope this help

  • How to set a page parameter using javascript ?

    Hi:
    i'd like to set page parameter with a value taken from a textbox when clicking a button using javascript code.
    i mean, i have a textbox and a button using javascript and i want to take the value from the textbox and when onClick event happens set that value to the page parameter. How can i do this????
    Thanks.
    Best regards. Urko.

    Hi,
    Can you please elaborate your requirement. May be some better ways can be suggested. Also please mention which component you are using.
    Thanks,
    Sharmila

  • Page Parameter Seeded ELs doesn't work

    hi Experts,
    I am using wcp11ps7, I need to use page template to retrieve value of page parameter, I used seeded EL in page template like this:
    page
    page attributes:
    ${pageDocBean.title}
    ${bindings.leftWidth}
    the page title has been retrieved properly, but for bindings.leftWidth,returned value is empty, I also tested with the following:
    ${bindings.centerWidth}
    ${bindings.showHeader}
    ${bindings.showFooter}
    but I got the same empty value, what's wrong with my test?
    Best regards

    OS X Mavericks: Reset your computer’s PRAM
    A small amount of your computer’s memory, called “parameter random-access memory” or PRAM, stores certain settings in a location that OS X can access quickly. The particular settings that are stored depend on your type of Mac and the types of devices connected to it. The settings include your designated startup disk, display resolution, speaker volume, and other information.
    Note: To print these instructions, open Help Viewer’s Action pop-up menu (looks like a gear), then choose Print. 
    Shut down your Mac.
    Locate the following keys on the keyboard: Option, Command (⌘), P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on your Mac.
    Immediately press and hold the Option-Command-P-R keys. You must press this key combination before the gray screen appears.Continue holding the keys down until your Mac restarts, and you hear the startup sound for the second time.
    Release the keys.
    Resetting PRAM may change some system settings and preferences. Use System Preferences to restore your settings.

Maybe you are looking for

  • Can I put a Quicksilver 867mhz processor in an older G4/466?

    I have a G4/466 (Digital Audio) with 1 gig of RAM. I make music in Protools, and I've added some plug-ins recently which are bogging me down. I checked out the activity monitor, and the processor is maxed out most of the time. I have a dead G4 Quicks

  • Embed src in Servlets

    Hello, I am confused on as to why I am only able to embed a source in my Servlet by referring to a remote file only. I have: out.println("<embed src=\"http://192.168.1.8:8081/alt1.svg\" width=\"1000\" height=\"1000\" type=\"image/svg+xml\">");and it

  • Is core audio overload error a ram issue or a processor issue?

    I have a macbook 2ghz with 2gb of ram, external 250 gig 7200 rpm lacie hard drive. I am running ivory pianos, superior drummer 2.0 and waves plugins. I get the core audio overload a lot. Its really annoying. I have disabled airport and shut down all

  • FM to check if SAP or e.g. customer system?

    Hello ABAP experts, is there a function module to check if the current system is an SAP or e.g. a customer system? Can FM INT_VCM_GET_SYSTEM_DATA be used for this? Thanks and best regards, Oliver

  • Can't play D2:LoD in fullscreen in WINE

    I can play it when I emulate a 800x600 desktop, but when I try full screen, this happens: (Note, D2videotest didn't say I had any proper video drivers as well) fixme:advapi:SetSecurityInfo stub fixme:d3d:IWineD3DImpl_FillGLCaps OpenGL implementation