Passing parameters between portlets with in the same page

Hello,
I have created a Form and a report. The form allows a user to make some selection values, and then upon submit it passes the selected values to the report to query the database. The results from the query are displayed in a new - seperate - window from the form. Is there anyway to disaply the report results on the same page as the form that called the report? I guess I am trying to have a page with 2 portlets (a form, and a report). I want the user to be able to make a selection from the form portlet and pass that selection to the report portlet within the same page.
Thanks,
McKell

Hi I received this info from an OSS named Mahantesh. I thought it was very helpful information for passing portlet parameters between a form and a report within the same page.
Please check these steps to pass parameter from form to report:
This article is based on demo tables EMP and DEPT.
1. Create a report RPT_DEPT using the query 'Select * from dept where deptno= :deptno'
2. Create a form FRM_EMP based on EMP table.
3. Edit the form FRM_EMP => 'Formatting and Validation Options' section => click on DEPTNO field
=> Give the value for the 'Link' (under 'Display options') as 'javascript:runrep()' where runrep is the name<br>
of javascript function that we are going to create later.
4. In 'Form text' section, in the 'Footer Text' add the code for the runrep function as follows.
<script>
function runrep()
var formObj = document.forms[0];
var deptno;
for (var i=0; i < formObj.length ; i++){
if (formObj.elements.name == 'FORM_EMP.DEFAULT.DEPTNO.01'){
//FORM_EMP is the form name
deptno = formObj.elements[i].value;
break;
var url="/portal/page?_pageid=38,1,38_31678:38_31787&_dad=portal&_schema=<br>
PORTAL&deptno=" + deptno;
//modify the url according to your environment.<br>
window.location=url;
}<br>
</script>
5. Modify the URL in the above code with your page url on which form and report portlets have been placed.
6. Goto Page properties => Parameters tab (Parameters and Events option should have been enabled at Pagegroup level).
7. Create a page parameter and map it with report portlet parameter.
8. Now run the page, enter deptno or query the form to get the deptno and click on the link next to deptno field. You should get report with corresponding deptno on the page.

Similar Messages

  • Passing parameters between portlets (PL/SQL PDK)

    I'm new to the PDK, so forgive me if this is a dumb question. I need to develop a portal page containing a single search portlet, and then many other associated portlets which bring back various bits of data based on the result of the search.
    Is it possible to drive the content of other portlets on the same page by passing values from one to another and refreshing the whole page?
    null

    Neil,
    You can definitely pass parameters from one portlet to another in PL/SQL and we actually have a sample that you can take a look at. In the PDK, download the Parameter passing and CSS Example Provider sample. http://technet.oracle.com/products/iportal/files/pdkjan/index.html
    Click on PL/SQL
    One of the portlets demonstrates how to pass parameters to one portlet or all portlets on a page.
    Hope this helps,
    Sue

  • Passing parameters between portletized ADF Faces applications, possible?

    Hello,
    In the developer guide, section 4.5.3 (http://download-east.oracle.com/docs/cd/B32110_01/webcenter.1013/b31074/jpsdg_pages.htm#CHDGGCGE) it says that you can synchronize portlets using an ADF Faces component value. However, that example do not use a value coming from a real portlet, the parameter come from a selectOneChoice define in the container page.
    Is there a way to achieve the same thing but with the selectOneChoice being placed in the WSRP 2.0 portlet? Basically the communication scheme is WSRP 2.0 to WSRP 2.0 which is something possible using URL parameters. However, the problem with JSF components is that they pass their values through a JavaScript launched POST submit so the values are never added to the URL and even worst, you cannot be sure of the generated parameter name as it depends on the context in which the component exists (mainly the presence of a parent NamingContainer) and the only way to know that parameter name for sure is to have a way to call component.getClientId(facesContext) which is impossible for the portlet container and therefore for the other portlets.
    To put it shortly, is there a way to send a navigation parameter from a portletized ADF Faces application to its container page beside using goButton and goLink (we need to keep the action/actionListener functionality)?
    Regards,
    Simon Lessard

    Can someone explain how to assign a value to a parameter in JSF like in the ParameterFormPortlet source code? Something in replacement of this :
        if (viewMode)
          // Set the new parameter values. These will be intepreted by the
          // container as navigational parameters as the names match the names of
          // the declared parameters.
          actionResponse.setRenderParameter(PARAMETER1, param1);
          actionResponse.setRenderParameter(PARAMETER2, param2);
          actionResponse.setRenderParameter(PARAMETER3, param3);
        }I mean, how to replace setRenderParameter to achieve the same thing inside a JSF binding bean for example. Is it possible via the PortletContext?
    Thanks in advance for any hint.
    Jean-Philippe

  • Passing parameters between portlets

    Hi , I have a page with two portlets : one , done with the wizard , is a form , the other one is another form , but is done with a JSP.
    My trouble is that with the second form , the one done with a JSP , I must insert into the database two values , one retrieved by the jsp itself , and the other one is a value of one field of the other form.
    My question is how can I get , from my jsp , that value coming from the other portlet ???
    Thanks
    max

    Hi,
    You can redirect to another page and pass parameters to it. For this, you need to know the pageid to which you have to redirect. Assign form action to
    http://machine:port/servlet/page
    PageServlet requires few other parameters (form fields) to redirect the control to the required page.
    You can get them by making a call to
    HttpPortletRendererUtil.htmlFormHiddenFields(pr,PortletRendererUtil.PAGE_LINK)
    This returns a string similar to the following.
    <INPUT TYPE="hidden" name="_pageid" value="54" />
    <INPUT TYPE="hidden" name="_dad" value="portal30" />
    <INPUT TYPE="hidden" name="_schema" value="PORTAL30" />
    Parse it for _pageid and change the value to the page you want to redirect. Print these contents inside your form. Once you submit the form, it'll redirect the control to the page you want with the parameters.
    --Sriram

  • Passing parameters between SWF with  loadMovieNum()

    When calling one swf from another using
    loadMovieNum("name.swf",0) is it
    possible to pass parameters to the second SWF like it is done
    in
    HTML/JavaScript or using any other method?

    I think it's not possible if you load into _level0, because
    that replaces everything in the player. If you load into a higher
    _level, it should be possible, but I guess you have to wait until
    the movie is loaded before you can set variables. Use preloader
    code or the MovieClipLoader class, and set the variables when
    loading finished, e.g. _levelX.myVar = 42.
    cheers,
    blemmo

  • Passing Parameters between Portlets or pages

    Hi,
    How can we pass the data from a Portlet in one page to another Portlet in a different Page??
    Requirement: I want a portlet which should take some parameters(basically a form),On submit should process the parameters and should forward the result to a Portlet in another page.
    Regards
    Yash

    Yash,
    You could use session variables to save information that can be used during the browser session. Example would be the form asks a user for their nickname. The user types in his nickname and hits the submit button. The form will then save the info in a session variable. Then any other portlet can open that session variable and get the info and use that info. Now if the browser is closed, the info in the session variable is lost. Check out this link:
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/PLSQL/DOC/PLDOC_9026/wwsto_api_session.html

  • Reports on the same page as FORM

    Hi,
    We have a SEARCH Form and when user inputs search criteria, then we want to call a report on the same page, just below the search button. We tried many things but the report does not show up on the same page, it navigates to next page.
    Please help..
    Thanks
    Kumar.
    null

    Right now passing parameters between portlets is not supported. It will be done in a future release.
    Regards,
    Sunil.
    null

  • Passing multiple parameters between two report portlets on the same page

    Hi,
    I want to pass multiple parameters between two report portlets on the same page.
    I have been succussful passing a single parameter between two portlets. The
    following are the steps :
    (1) Created first report based on the query
    SELECT htf.anchor('http://192.168.0.84:7778/servlet/page?&_pageid=97&_dad=portal30&_schema=portal30&_mode=3&dept_code='||DEPTNO,DEPTNO) Department, ename FROM EMP;
    (2) Created 2nd report
    select * from EMP where DEPTNO = :dept_code
    (3) Added pl/sql code before display page on the 2nd report
    portal30.wwv_name_value.replace_value(
    l_arg_names, l_arg_values,
    p_reference_path||'.dept_code',portal30.wwv_standard_util.string_to_table2(nvl(g
    et_value('dept_code'),10)));
    (4) Created a page and added these reports as portlets.
    Sofar it works fine for one parameter (deptno) . Now I want to add one more
    parameter say empno to my first report query and would like to pass both the
    parameters deptno and empno to the 2nd report. Please tell me how to pass multiple parameters ?
    Thanks
    Asim

    Hi,
    You will have to do the same thing
    The select will be like this
    SELECT htf.anchor('http://toolsweb.us.oracle.com:2000/servlet/page?_pageid=97&_dad=mb&_schema=mybugs&_mode=3&dept_code='||DEPTNO||'&empno='||empno,DEPTNO) Department,ename
    FROM EMP
    In the additional plsql code do the same for empno like this
    mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.dept_code',mybugs.wwv_standard_util.string_to_table2(nvl(get_value('dept_code'),10)));
    mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.empno',mybugs.wwv_standard_util.string_to_table2(get_value('empno')));
    Thanks,
    Sharmila

  • Distinguishing between two instances of the same portlet

    Hi Experts,
    Is there a way to distinguish between two instance of the same portlet in different browser windows?
    I'm looking for something like URL parameter passing, but just for portlets.
    The problem is, I want a way to pass a parameter between views in a portlet, but in such a way that if another browser window is opened and navigated to that portlet page, the parameter won't be the same. Perhaps I can explain better with this example:
    Page A has a portlet on it which has a textbox and 2 buttons - the first button stores the value in the textbox in the PortletRequest (or PortletURL) and if you click the second button the portlet navigates to a different view which displays the value. If I navigate with a second browser window to Page A, however, and only click the navigate button, that value which was stored by the first instance of the portlet will still be shown. I want them to be independent, I don't want changes in the one's PortletRequest to reflect in the other one's PortletRequest.
    Any ideas?
    Thanks,
    JP

    Why not use two instances of the same portlet, i.e. create two channels of the same portlet.
    The behave the same, have the same application logic, so all you need is to transfer informations between the two portlets.If you want this within user space use the portlet session, otherwise access the http session context /application context and store the data there.
    The behavior would be controlled by the portlet preferences, so channel a (instance 1) would be configured to run as controller and channel b (instance 2) would be configured as receiver.

  • Passing Parameters between 2 Portlets on 1 Page

    Hi,
    I'm new to this portlet stuff and I might miss something important, but:
    I "just" want to send parameters from one form on one Page to a portlet on the same page...
    PassAllParameters is already set to true...
    I also have read the "Primer" and the "Adding Parameters and Events to Portlets", after giving up to do this my own, I just copied and pasted the Name/Age Form JSP (nearly... I've made Java out of it...) as my DataProvider Portlet and copied and pasted the "Generic Public Parameter Receiving Portlet" as my DataReceiver Portlet... the Event and Parameter Tags are NOT missing in the provider.xml... but even after pressing submit there are no parameters at all avaible for the "receiving Portlet"!!!
    PLEASE can someone tell me what I am doing wrong?!?!?!?

    Hi friends,
    I worked with the application which is in
    http://server:port/jpdk/providers/event. is working fine with passing parameters to another page.
    Also I create my own application which is working fine if i have the 2 portlets in the same page.
    But it is not working with portlets in different page. On clicking the link it is not going to the another page. Hereby i give the required codes.
    portletpass.jsp:
    PortletRenderRequest prr = (PortletRenderRequest) request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    String eventSubmit = EventUtils.eventName("submit");
    String eventParamsno = EventUtils.eventParameter("sno");
    String strsno="50" ;
    NameValuePair[] linkParams = new NameValuePair[2];
    linkParams[0] = new NameValuePair(HttpPortletRendererUtil.portletParameter(request, eventSubmit), "");
    linkParams[1] = new NameValuePair(HttpPortletRendererUtil.portletParameter(request, eventParamsno),strsno);
    <a href="<%=PortletRendererUtil.constructLink(prr,
      prr.getRenderContext().getEventURL(), linkParams, true, true)%>"><%= strtitle %>
    </a>
    provider.xml of portletpass.jsp:
    <event class="oracle.portal.provider.v2.DefaultEventDefinition">
    <name>submit</name>
    <parameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
    <name>sno</name>
    <displayName>sno</displayName>
    </parameter>
    </event>
    portletreceive.jsp:
    PortletRenderRequest prr = (PortletRenderRequest) request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    //      String snosp = "sno", snorec="" ;
    //     String values = prr.getParameter("sno") -------returns null
         String values = prr.getParameter("_page_url");
         String snorec = values.substring(values.lastIndexOf("sno=")+4) ;
         out.println(snorec); // here i get the required value
    provider.xml of portletreceive.jsp:
    <inputParameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
    <name>sno</name>
    <displayName>Input Parameter #1</displayName>
    </inputParameter>
    Also i did the necessary changes in parameters and events tab as well.
    I cant sorted out what is the mistake i did.
    The scenario i need is on clicking the link it should display the details in a new page.
    Can anybody please help me.
    Thanks in advance
    Durai

  • How to pass parameters between main and sub vi during parallel execution using the VI server technique?

    Hello All,
    I am working with the following example (from previous postings on this
    board) that demonstrates how to run a sub vi in parallel with the main
    vi.  I'd like to pass parameters between the main and sub such as
    the control (delay) and indicator (value) parameters of my subvi
    example.  Does any one know how to do this?  Parallel
    execution is important for me, I cannot just paste the subvi icon into
    my main diagram (two nested while loops...)
    Many thanks,
    Luis
    Message Edited by cascao on 08-16-2005 08:42 PM
    Message Edited by cascao on 08-16-2005 08:42 PM
    Attachments:
    VI_Server_technique.vi ‏32 KB
    SubVI_1.vi ‏19 KB

    cascao wrote:
    Hello All,
    I am working with the following example (from previous postings on this
    board) that demonstrates how to run a sub vi in parallel with the main
    vi.  I'd like to pass parameters between the main and sub such as
    the control (delay) and indicator (value) parameters of my subvi
    example.  Does any one know how to do this?  Parallel
    execution is important for me, I cannot just paste the subvi icon into
    my main diagram (two nested while loops...)
    Many thanks,
    Luis
    Luis, you can use the VI Server methods 'Set Control Value' and 'Get Control Value', as demonstrated in the attached examples.
    -Franz
    Attachments:
    VI Server.zip ‏26 KB

  • Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Thank you Joe - I tried this but it's only showing a teensy amount of music - the stuff on the second users account as opposed to the giagntic library on the 'main' account. I actually went to a Genius Bar and they said that apple doesn't really want you to share music between accounts - parents don't want to hear their kids music etc. Which seemed strange, but it might be the case sadly   Thanks anyway!

  • I am debating between the 13in 2.9ghz mac book pro or the 13in 2.5 ghz mac book pro with all the same specs bbut for me i am trying to see which one for the money is better becuase the 2.5 will run me 100-200 dollars less than the other

    I am debating between the 13in 2.9ghz mac book pro or the 13in 2.5 ghz mac book pro with all the same specs bbut for me i am trying to see which one for the money is better becuase the 2.5 will run me 100-200 dollars less than the other

    Only you can make that determination. All things being equal the 2.5 GHz model is slower.

  • Links between portlets on the same page

    Hi,
    I want to search for an employee in a poplist. When I choose one from the poplist I want a report to start that will show all the projects he is working in.
    The above happens but when I put my form as a portlet on a page I want the report to start in another portlet on the same page. Now it opens in a new window and that's not good.
    This is how the link works.
    On the link in the form I have a call 'javascript:runrep()'
    On the form, in the 'Form text' section, in the 'Footer Text' I added the
    code for the runrep function (given below).
    <script>
    function runrep()
    var formObj = document.forms[0];
    var pers_id;
    for (var i=0; i < formObj.length ; i++){
    if (formObj.elements.name == "PERSONAL_SOK.DEFAULT.ID.01"){
    //PERSONAL_SOK is the form name
    pers_id = formObj.elements[i].value;
    break;
    var url="http://linux.ekn.se:7778/pls/portal/ppe_utv.ppe_visa_projektforslag.show?
    //PPE_UTV is the schema_name and PPE_VISA_PROJEKTFORSLAG is the report
    p_arg_names=pers_id&p_arg_values=" + pers_id;
    window.location=url
    </script>
    I guess the url has to have another adress to open on the same page, but what?
    /Jennie

    The post below shows you how to link two reports on the same page. You can probably modify it's solution to achieve what you're trying to do.
    Providing Oracle's default color pallete
    Regards
    Hsiu

  • Passing parameters from portlet reports to portlet forms

    Hi,
    I'm tring to pass parameters between a Report displayed as a portlet in a page ( page 1) and a form displayed in other page ( page 2).
    The problem is i can't do this.
    I only can pass parameters from a report ( running as normal or in a portlet displayed in a page) to a form running "normal" by using application links. Can i do this between a report that show's me every employees of scott.emp table. Then when i click on each employee, it open's me another page with the portlet form of the specified employee.
    I'm not sure i made myself clear. Please send me some feedback.
    Pedro

    I have the same problem. Please let me know if this could be done.
    In particular my form is a type of "Form on Table/View."
    Thanks
    Henry

Maybe you are looking for

  • Is there a way to adjust the frame length when using a FFT

    Is there a way to adjust the frame length when using a FFT? Thanks, David

  • Problem in structure start with charecter type

    i am doing a upgrade of an abap program which is written in 4.6 to  ecc 6.0 i am facing a unicode error problem in the old program there is  a sap standrad structure called arc_buffer  so in this program they have used the structure  as below code   

  • FI/CO or SD

    Hi, I am looking to learn SAP. Can any body please tell me which is better FI/CO or SD(Functional Consultant) in the current market. Thanks in advance Ram

  • Finding association rule (creating problem)

    sir i m working on xquery for finding assocation rule using xquery i complete the conding for how i write xquery for that. but now i found a problem that they give me error that _"Unexpected token "declare function" beyond end of query_" i send me co

  • Conditional Action using hot/cold state to open/close toc

    I'm trying to create a button that will open/close the toc and when clicked will toggle the state of the icon/button from hot/cold.  Basically using an icon with a transparent smart shape as a button.  when the button is clicked the toc will open and