Display a Page Parameter

Hi Everyone,
Is there a way to simply display a page parameter in a portlet? I am able to use the 'Simple Parameter Portlet" and it works great... except there is a submit button on the bottom of it. I only want to show display a page parameter, not submit them.
I could write a java portlet to display it, but this seems like overkill. Any ideas would be greatly appreciated.
Thanks gurus!
Cory

Hi Cory,
Yes, you can display a Page Parameter in a Portlet. You just need to map the Page Parameter values to the Portlet Parameters.
You can get detailed information about the steps here :-
http://download-west.oracle.com/docs/cd/B14099_19/portal.1012/b10358/design.htm#sthref1392
I have tried the steps in Oracle Application Server Portal 10.1.2 & it works. I am not sure how to get rid of the 'Submit" button...:(
Regards,
Sandeep

Similar Messages

  • Display page parameter in a page

    hi,
    I have one page parameter and i want to display in another page using Dynamic Portlet. I used portal.wwpro_api_parameters.get_value('status_desc','a'); in <oracle>. But i wont display the value. Could please anyone help? Is there any other way to display it..?
    Thanks in advance

    But.....what do you want to display ?
    I you want the parameter name you can try to use:
    wwpro_api_parameters.get_names
    get_names
    function get_names(
    p_reference_path in varchar2
    ) return owa.vc_arr
    Returns a list of parameter names, given the portlet's reference path. If no names are found, an empty list is returned.
    Any user can use this function.
    Example:
    If a URL has these parameters:
    http://.......?empno=10&deptno=10&ref1.deptno=20&ref1.deptno=25&ref1.folderid=30
    where 'ref1' is the reference path of the portlet instance.
    Then this call:
    l_names owa.vc_arr;
    l_names := wwpro_api_parameters.get_names
    p_reference_path => p_portlet_runtime_record.reference_path
    Returns:
    deptno and folderid in l_names
    Parameters:
    p_reference_path - a unique identifier for a portlet instance on the current page. The reference_path is passed to the portlet's show procedure in the portlet_runtime_record.
    Returns:
    an ordered list of parameter names for a given reference path or and empty list if no parameters were found for that reference path
    Since:
    Oracle Portal 3.0.6.6.5

  • 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

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

  • 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

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

  • Problem with page Parameter

    Hi,
    My requirement is I am passing a url to page with one parameter which I am assigning it to a calndar which has one one parameter. I mapped page parameter to the calendar parameter.
    In the p/sql code before displaying footer section of the calendar I am using
    get_value('pageparamter') But i am getting null value........................
    How should I retrieve that value......... If Iam using bind variable(calendar parameter) in the display before footer section I am getting error........
    Pls tell me the solution as early as possible...........
    Regards,
    radha

    Hi Radha,
    Sorry, I couldn't reply to your email about the same problem you were asking. Here is the code to get the value of the page parameter:
    declare
    l_val varchar2(10);
    begin
    l_val := portal30.wwpro_api_parameters.get_value
    (p_name => 'v_dt_on_mon',
    p_reference_path => p_reference_path);
    end;
    where 'v_dt_on_mon' is the name of the parameter , so you can replace it with your parameter name.
    Thanks
    -Krishnamurthy

  • b Simple Parameter Form & Page Parameter /b

    Hello,
    <br>
    i have a problem with a simple Parameter Form:
    I have one page; on this page i have a simple Parameter Form and an OmniPortlet (the pageParameter is 'Field1' and is mapped to both portlets!)
    <br>
    now my problem: when i type my parameter in the simple param form it is displayed in the url (http://mypage<b>&Field1=10000</b>).<br> the omniportlet displays the right data. all right so far!
    <br>
    but now i type a new parameter in the simple parameter form and now the url looks like this: http://mypage&Field1=10000<b>&Field1=20000</b><br>The parameter shouldn't be added to the old url, but a new url should be created with <i>one</i> new parameter.
    <br>
    Where is the problem? i cant find any solution?
    <br>
    Thanks for your help!

    Hi,
    There is a step you are missing.
    Open the page properties for the page where the Simple Parameter form and the Omniportlet resides.
    Go to the Events Tab.
    Here you will see "Portlet Events". There will be a list of portlets that are added on this page. Click on the "Simple Parameter Form".
    Under this you will find a link called "Submit". When you click on this link, it opens options on the right hand side of the page.
    Here, under the heading "When this event is raised:" Click the Radio Button "Go to page:" and then click on the button for the LOV on the right side of the box, a pop-up opens, select this page itself. (For Example, if the name of the page is PAGE01 (where we have added this Simple Parameter Form and the OmniPortlet), under the Page Group PG01, then click on the link called Return Object for PAGE01 under PG01 from the pop-up).
    After doing the above step do this:
    Right Below this, you will find another heading called "Page Input" which will have the list of page parameters. From the first drop down list select "Event Output" and from the second drop down list select "Parameter 1" (If there is only one parameter. But if you have more than one parameter, select the "Event Output" & "Parameter 2" respectively, and so on). Make sure that you match the correct page parameter with the Parameter drop down otherwise your results will vastly vary or there might be no result.
    We are pretty much done.
    Now just click on the buttons "Apply" then "Ok"
    Test your page. It will not add &Field1=<value>&Field1=<value>...... any number of times you run this.
    I hope I was of some help to you.
    Regards,
    Saabir.

  • How to read value of page parameter from form?

    I have the following in 'before displaying the form. ' in the form based on procedure.
    declare
    l_names OWA.vc_arr;
    l_values OWA.vc_arr;
    p_portlet_record portal.wwpro_api_provider.portlet_runtime_record;
    BEGIN
    Portal.wwpro_api_parameters.retrieve(l_names, l_values);
    htp.p('Number of parameters are : '||l_names.count||'< br>');
    for i in 1..l_names.count
    loop
    htp.p(l_names(i)||' = '||l_values(i)||'< br>');
    end loop;
    htp.p('Agreement'||portal.Wwpro_Api_Parameters.get_value('agreement',p_portlet_r
    ecord.reference_path));
    end;
    Following is the output on the form:
    Number of parameters are : 1< br> sessionid = 14212< br> Agreement.
    Looks like the form is only getting the sessionid parameter and not getting
    the other parameter from the URL.
    Following is the URL for the page on which the form is places:
    http://<machine_name>/portal/page?_pageid=33,36124,33_36134:33_44551&_dad=portal
    &_schema=PORTAL&agreement=DG-2474/1
    Can anyone tell me how I can get the value of page parameter 'agreement' in the form?
    thanks,
    Hiren

    Hi,
    It depends how you are setting your parameter also as there are different types of parameters in portal. The best is to use the page level parameters..
    Please read the developers gide Section 8.3 for more details....
    The link is :-
    http://download-east.oracle.com/docs/cd/B14099_19/portal.1014/b14135/pdg_pdk_plsql.htm#CHDGAHCF
    Guneet

  • Set and read page parameter using a java portlet

    I created a portlet that takes a parameter. I wantt his parameter to be set by the admin in the page parameter section. The portlet that I crated has a parameter. In the providers it has the following:
    <inputParameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
    <name>param</name>
    <displayName>displayParam</displayName>
    </inputParameter>
    However, when I go to the page propertie/parameter, I can "bind" a parameter. How can I do that?
    Thanks,
    Marcelo

    Marcelo,
    This was what I've given you above...
    From 7.1.3 Passing Parameters and Submitting Events jump to Section 2.12, "Public Portlet Parameters Support".
    Public portlet parameters:
    You can use a public portlet parameter to pass a value to a portlet. Using portlet parameters, the information that is displayed in a portlet can be specific to a particular page or a user. Portlet parameters are created by the portlet developer and are exposed to the page designer, through the user interface. After adding a portlet to a page, page designers can assign values to the public portlet parameters to make the information displayed in the portlet specific to the page.
    Page designers can assign values to public portlet parameters by providing a specific value (constant), a system variable (for example, the portal user name), or a page parameter. At run time, the portlet receives the values from the sources specified. In this way, page designers have complete control over the source of the parameter, whereas you have complete control over how the data is used after it is transmitted to the portlet.
    ...and in 7.1.3 Passing Parameters and Submitting Events as assumption is "You have followed through and understood Section 6.3.2, "Building PDK-Java Portlets".
    This why I've said to read it carefully... I hope this helps you further...
    Cheers,
    Pedro.

  • XML Publisher report output in RTF format does not display full page

    Hi,
    We have one XML Publisher report, the output of report in RTF format is not getting displayed in Full Page in normal way (MS Word -->View menu --> Print layout) but we can see full page display when we do MS Word -->View menu --> Outline.
    Appreciate your valuable inputs on this.
    Is this a template issue or any profiles needs to be set.
    Thanks
    Vijay

    Do you have any header and footer on your template?
    If you have any header and footer then try to adjust it as of to display full page.
    Thanks
    Yasar

  • SharePoint Foundation 2010 - Display Site Pages on the Quick Launch

    how do you display site pages on the quick launch?
    sukai

    Try below:
    http://sharepoint.stackexchange.com/questions/28056/how-to-display-subsites-and-their-sitepages-via-the-quick-launch-navigation-menu
    http://office.microsoft.com/en-in/sharepoint-server-help/configure-the-quick-launch-for-site-navigation-HA102130960.aspx
    http://stackoverflow.com/questions/3636366/display-quicklaunch-on-webpartpage-in-sharepoint-2010

  • Can display Web pages from servlet but not applet?

    I have been able to display real-world Web pages from a simple servlet using JDeveloper 3.0, but can't figure out how to do the same from an applet. Any hints?

    My previous post had the detail...Probably a simple question from a relative novice. I'm having a problem just viewing web pages by calling them from a "list" of URLs in an applet. I built an applet with a split pane that has a JTree on one side and an "HTML viewing pane" on the other. I can click JTree nodes to display local html files, but I don't understand how to display web pages from the Internet. Do I need something like HyperlinkListener to make the jump to "hyper-world"???

Maybe you are looking for

  • Copy and Paste issues

    my copy function is not copying! It seems that the copy buffer does not get filled with the copied objects. When pasted, it always pastes a blank space) any ideas of where I can start troubleshooting?

  • Ideapad U430p, Swap function keys and my cat

    So I bought the U430p and after installing the complete system new, I am quite happy with it. Obviously my cat also. I disabled in the Bios the Hotkey that I don't have to press all the time Fn+one of the function keys to access these. However, I rea

  • Can The New OWB 9.0.4 Actually Populate A 9i OLAP Cube?

    Hi there, I guess this is one for Igor Machin or Jean-Pierre Dijcks. I've seen today on OTN that OWB 9.0.4 is now available, and had a look through the white paper written by Jean-Pierre, together with the accompanying OWB + 9i paper written by Shaun

  • Missing Font  issue - Delete styles in styles drawer?

    Every time I launch Pages (v. 2.0.2) I get a drop down type of message: The Following errors occurred while trying to open this document: Missing Font TimesNewRomanMS. I don't get it. Times New Roman shows up in the fonts in Pages. It is also in my F

  • Non clickable area on the screen.

    I have a mid 2007 20" iMac that untill now didn't give me any problems. But yesterday I I notice a wierd bug. It's basically a small area of the screen where if I click nothing happens. Here is a video with the bug. http://droplr.com/xK8v Any suggest