How do I pass a parameter to a portlet on the URL?

I have a portlet on one tab that searches for parts. (This portlet is written and maintained by someone else.) When a user clicks on a part number in the result set on this portlet they need to be taken to another tab (different portlet on the same page) with that part number as a parameter. The second portlet then dynamically writes an
<iframe src="http://someurl?partnumber=xyz" />
to call an external application passing the part number as a URL parameter to the external application.
Writing the <iframe /> dynamically is no problem. The problem is passing the part number from one portlet to another. We planned to do this by using hrefs in the part search portal using URLs like
http://hostname:port/pls/portal/url/page/test1/portlet2?partnumber=xyz
for each part number. The problem is that the URL parameter doesn't get passed to the second portlet. Here is the code in the second portlet:
<%
PortletRenderRequest portletRenderRequest =
(PortletRenderRequest)request.getAttribute("oracle.portal.PortletRenderRequest");
String partnumber = portletRenderRequest.getQualifiedParameter("partnumber");
%>
It always sees null for the partnumber parameter.
I also have <passAllUrlParams>true</passAllUrlParams> in provider.xml.
I've tried checking this by calling the URL of the second portlet directly from a browser. The portlet sees the partnumber parameter as null, but the URL window in the browser returns the modified URL from the portal with the partnumber parameter set properly. Portal is seeing the parameter but not passing it to the portlet.
I haven't tried actually setting the in the first portlet and seeing if it all works when called from inside the portal, but I don't see why it shouldn't work by calling the second portlet URL directly with a parameter.
Am I missing some step in order to pass a parameter from one portlet to another? The parameters I have to pass are dynamic, based on the result set returned by a search in the first portlet.

My second to last paragraph should have been:
"I haven't tried actually setting the hrefs in the first portlet and seeing if it all works when called from inside the portal, but I don't see why it shouldn't work by calling the second portlet URL directly with a parameter."

Similar Messages

  • Passing Search Parameter to SRM-MDM Through the URL

    Greeting all,
    I would like to know how I can pass a search parameter to SRM-MDM using the URL in the web browser. This is needed to display the result directly instead of listing the whole catalog contents.
    I am trying to pass a search parameter (Text string) to the catalog through an R/3 SAP system. As a result, it should give only the material that I am looking for.
    I tried the "Background Search" as described in the OCI-specification paper but still couldn't get it!
    By using the parameters mentioned in chapter 3.2.4 of OCI-specification paper, I did the recommended configuration and use the following URL but still failed to pass the parameter:  http://....&FUNCTION=BACKGROUND_SEARCH&SEARCHSTRING=searchterm
    Can anyone help me on that?!
    Regards,
    Yousif

    Hi Yousif,
    Why dont u save the search as a named search in MDM and then pass it onto the SRM MDM.
    Save the records  as Named search in MDM Data Manager
    For eg:
    Named Search name -->> search1
    Now while passing the parameters to the SRM MDM Catalog specify the Named Search in its url.
    http://J2EESERVER:PORTNO/SRM-MDM/SRM_MDM?sap-locale=EN&HOOK_URL=&mask=&namedSearch=search1&username=Admin&password=PASSWORD&catalog=REPOSITORYNAME&server=MDMSERVERIPADDRESS&datalanguage=EN
    After passing the named search in the hook url the you will be able to see only the search which was saved in Data Manager.
    Hope dis helps u
    Regards Tejas.........

  • Passing session parameter to a portlet from webcenter spaces page

    How do you pass a parameter to a portlet on a WebCenter Spaces page? For example, I have the user's company ID in the session, I need to pass that company ID to the portlet defined to accept a company ID parameter so that the returned data can be filtered.

    You can for example add the companyID to the url of the page and then pass that parameter to the parameter of your portlet.
    Have you created your portlet to enable inter portlet communication? You should first do that and create a navigation-parameter in the oracle.xml. If you don't know what i'm talking about, i'll explain a bit more.
    Their is another way, which is easier i think, is to set the value of your portlet parameter to an expression language refering to a session variabel.
    In you portlet parameter set the companyId (if you have created a navigation-parameter companyID) to following value:
    #{sessionScope.company}You will have to set the value of that session variable from within your webcenter spaces.
    How are you doing that? Are you planning on setting that variable using another portlet, taskflow,... This can be very important on how webcenter reactt on parameters and it can also give you additional ways on passing the parameters.

  • How can i pass a parameter to the query to filter the result of this lookup

    Hello,
    i'm developping a web application with JDeveloper 10.1.2 and JHeadStart.
    i realy need to know how can i filter the lookup (LOV) query result.
    in other word, when i click on the lookup, it show all the row that exist in may data base table.
    what i want is how can i pass a parameter to the query to filter the result of this lookup ?
    Thank you

    Hi,
    have a look if this helps
    http://oracle.com/technology/products/jdev/tips/fnimphius/restrictlovlist/restrictlov.html
    Frank

  • Omniportler HTML Layout - How do I pass a parameter to another page?

    How do I pass a parameter to another page from an HTML Layout like I can with the Tabular layout?

    If I have a parameter I can pass it from one page to another, i.e. if I have a list of customers and I want data for that particular customer alone, I can create a page parameter form or an omniportlet where I would then pass the value of that portlet to the page. I would use a string like the following: https://test.test.com/test/page?_pageid=536,7483646&_dad=portal&_schema=test&customer=##CUSTOMER_NAME##

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

  • How can I pass multiple condition in where clause with the join table?

    Hi:
    I need to collect several inputs at run time, and query the record according to the input.
    How can I pass multiple conditions in where clause with the join table?
    Thanks in advance for any help.
    Regards,
    TD

    If you are using SQL-Plus or Reports you can use lexical parameters like:
    SELECT * FROM emp &condition;
    When you run the query it will ask for value of condition and you can enter what every you want. Here is a really fun query:
    SELECT &columns FROM &tables &condition;
    But if you are using Forms. Then you have to change the condition by SET_BLOCK_PROPERTY.
    Best of luck!

  • How do I keep Firefox from graying out sections of the URL?

    How do I prevent FireFox from graying out sections of the URL as it appears in the location bar? I hope I can keep the mechanism to get all the information information I can about the sites I'm using.
    Please let me know whether, if necessary, I could go back to another version of FireFox to avoid the graying out feature.
    Thank you for your help with this.

    Urlbar highlighting<br>
    <br>
    This is a feature in Firefox to highlight the domain in the URL bar. Other parts will become grey. You can change a preference to make the entire URL dark. Users can revert to the old behavior by setting '''browser.urlbar.formatting.enabled''' to '''false''' in '''about:config'''.<br>
    <br>
    To change this preference:<br>
    <br>
    type about:config in the Location/URL bar and press Enter.<br>
    if you see a warning, accept (promise to be careful)<br>
    Filter: browser.urlbar.formatting.enabled<br>
    in lower panel, double-click that item to toggle value to false<br>

  • How can i Pass a parameter to JNLP ?

    How to pass a prarmeter from HTML or JSP or PHP to JNLP ?
    (Not JNLP to application <--- that's i knew)

    Actually, i want to pass a parameter tfrom HTML to JNLP <parameter> field and execute JNLP from HTML

  • How can i pass a parameter into paintComponent()?

    public void paintComponent(Graphics g)
    Graphics2D g2 = (Graphics2D) g;
              for(int i = 150;i<=250;i+=20)
                   for(int a = 50;a<=200;a+=50)
              Rectangle box = new Rectangle(i, a, 15, 15);
    g2.draw(box);
    this is my paintComponent method. as far as i'm concerned, all our codings for drawing must be inside this method rite? My assignment is to create something like a cinema ticket system where we will display all the seats then user enters a position then we mark it. when i prompt the user for the position..how do i pass it into this method? pls help me. obviously the coding to prompt is in another .java file.

    //this is my main
    public class AirAsia extends JComponent {
              static JLabel input, input2;
         private static void test(){
              JFrame frame = new JFrame("Aeroplane Seating");
              frame.setSize(500,500);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setVisible(true);
              String prompt = JOptionPane.showInputDialog("Enter x");
         input = new JLabel("You have entered " +prompt);     
    String prompt 2= JOptionPane.showInputDialog("Enter x");
         input 2= new JLabel("You have entered " +prompt2);     
              RectangleComponent component = new RectangleComponent();
    frame.add(component);
              frame.setVisible(true);
    private static void createAndShowGUI()
         JFrame.setDefaultLookAndFeelDecorated(true);
              test();
    public static void main(String[] args)
    createAndShowGUI();
    //now this is my paint component in another file
    public class RectangleComponent extends JComponent
    public void paintComponent(Graphics g)
    Graphics2D g2 = (Graphics2D) g;
              for(int i = 150;i<=250;i+=20)
                   for(int a = 50;a<=200;a+=50)
              Rectangle box = new Rectangle(i, a, 15, 15);
    g2.draw(box);}
              for(int i = 60;i<=160;i+=20)
                   for(int a = 240;a<=820;a+=15)
              Rectangle box = new Rectangle(i, a, 15, 15);
    g2.draw(box);
    first of all, i ask the user to enter 2 inputs which are x and y. so now how do i pass in the x and y into paint component method so i can mark/draw the box?

  • How do I Pass a parameter to a SQL Component Task where the source SQL statement is also a variable

    Hi,
    I have been tasked with making a complex package more generic.
    To achieve this I need to pass a parameter to a SQL Component Task where the source SQL statement is also a variable.
    So to help articulate my question further I have create a package and database as follows; -
    USE [KWPlay]
    GO
    /****** Object: Table [dbo].[tblTest] Script Date: 05/14/2014 17:08:02 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[tblTest](
    [ID] [bigint] IDENTITY(1,1) NOT NULL,
    [Description] [nvarchar](50) NULL,
    CONSTRAINT [PK_tblTest] PRIMARY KEY CLUSTERED
    [ID] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    I populated this table with a single record.
    I unit tested the SQL within SSMS as follows;
    SELECT * FROM dbo.tblTest
    Result; -
    ID           
    Description
    1             
    Happy
    DECLARE @myParam NVARCHAR(100)
    SET @myParam = 'Sad'
    UPDATE dbo.tblTest SET [Description] = @myParam FROM dbo.tblTest WHERE ID = 1
    SELECT * FROM dbo.tblTest
    Result; -
    ID   
    Description
    1    
    Sad
    Within the package I created two variables as follows; -
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = @myParam FROM dbo.tblTest WHERE ID = 1
    Name: strStatus
    Scope: Package
    Data Type: String
    Value: Happy
    I then created a single ‘Execute SQL Task’ component within the control flow as follows; -
    However when I run the above package I get the following error; -
    SSIS package "Package.dtsx" starting.
    Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "UPDATE dbo.tblTest SET [Description] = @myParam FR..." failed with the following error:
    "Parameter name is unrecognized.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Task failed: Execute SQL Task
    Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. 
    The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the
    errors.
    SSIS package "Package.dtsx" finished: Failure.
    I also tried; - 
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = ? FROM dbo.tblTest WHERE ID = 1
    However I received the error; - 
    SSIS package "Package.dtsx" starting.
    Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "UPDATE dbo.tblTest SET [Description] = ? FROM dbo...." failed with the following error: "Parameter name is unrecognized.". Possible failure reasons: Problems with
    the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Task failed: Execute SQL Task
    Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches
    the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
    SSIS package "Package.dtsx" finished: Failure.
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Tried; - 
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = ? FROM dbo.tblTest WHERE ID = 1
    and; - 
    Result; - 
    SSIS package "Package.dtsx" starting.
    SSIS package "Package.dtsx" finished: Success.
    Therefore the answer was to put the parameter number rather than the parameter name under the parameter mapping tab-> parameter name column. 
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

  • Netbeans 5.5 WebService Client - How do I pass a parameter to the service?

    I'm using Netbeans 5.5 and have generated a webservice client (JAX-WS 2.0) off of the existing WSDL. The webservice requires me to pass it some information. Per the generated code, it is expecting an EncryptedData object. The problem is, I have no idea what the content of this data object should be as it pertains to an anonymous complex type. The code generated for this class is listed below. Any ideas? By the way, I know what SOAP should be generated... I just don't know how to stick the soap information into this EncryptedData object. Thanks!
    * <p>Java class for anonymous complex type.
    * <p>The following schema fragment specifies the expected content contained within this class.
    * <pre>
    * <complexType>
    * <complexContent>
    * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    * <sequence>
    * <any/>
    * </sequence>
    * </restriction>
    * </complexContent>
    * </complexType>
    * </pre>
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
    "content"
    public static class EncryptedData {
    @XmlMixed
    @XmlAnyElement(lax = true)
    protected List<Object> content;
    * Gets the value of the content property.
    * <p>
    * This accessor method returns a reference to the live list,
    * not a snapshot. Therefore any modification you make to the
    * returned list will be present inside the JAXB object.
    * This is why there is not a <CODE>set</CODE> method for the content property.
    * <p>
    * For example, to add a new item, do as follows:
    * <pre>
    * getContent().add(newItem);
    * </pre>
    * <p>
    * Objects of the following type(s) are allowed in the list
    * {@link Object }
    * {@link String }
    public List<Object> getContent() {
    if (content == null) {
    content = new ArrayList<Object>();
    return this.content;
    Message was edited by:
    Tosa_Developer

    hello,
    I have done exactly as you have mentioned but I am facing prob passing String or XML data in the newItem variable:
    If I run the below code in jsp --->
    EncryptedData eD=new EncryptedData ();
    String newItem="test";
    eD.getContent().add(newItem);
    port.webMethod(eD);
    I encouter the following error at runtime:
    javax.xml.bind.MarshalException - with linked exception: [com.sun.istack.SAXException2: unable to marshal type "java.lang.String" as an element because it is missing an @XmlRootElement annotation]
    Pls help me pass either XML or String value to the webservice inside this encrpteddata.
    Thanx 4 ton 4 ur time and help.

  • How I can pass from an iView SAP BW 3x the personnel number to a report BI

    Good Afternoon.
    I need pass as parameter the personnel number of the user that entry in the portal to a report BI.
    I did the following steps for created the iview in the portal:
    [Steps for create the iview|http://www.freeimagehosting.net/uploads/cc5306da6f.jpg]
    In the properties of the iview of have the following url:
    BEx Web Application Query String = http://10.4.33.133:8000/SAP/BW/BEX?&VARID=&VAR_ID_2=ZVEMPLEADO++++++++++++++++++++0004&VAR_VALUE_LOW_EXT_2=00000058&INFOCUBE=ZPA_C01&QUERY=ZPA_C01_Q006
    In this moment i have the value for the personnel number fixed with 00000058, But i want know What is name of the variable that i must use for not put a value fixed and this can work for any employee.
    How can pass this parameter?
    I test with <PERNR>
    BEx Web Application Query String = http://10.4.33.133:8000/SAP/BW/BEX?&VARID=&VAR_ID_2=ZVEMPLEADO++++++++++++++++++++0004&VAR_VALUE_LOW_EXT_2=<PERNR>&INFOCUBE=ZPA_C01&QUERY=ZPA_C01_Q006
    But this not work .
    Thanks in advance for your help
    Best Regards

    Good Night.
    Anyone can help me with this issue , please
    Thank in advance for your help-
    Regards

  • Pass parameter to apex page via the URL

    Hi, I need to pass a parameter into a page that will be used in a query inside a report region,
    e.g report region query is
    select link_id, page_id, menu_parent_id, link_text, link_url
    from portal_pages
    where page_id = :page_id
    So the page will display different links depending on what value is passed to the page in the variable.
    I know with normal URL syntax it would be something like
    http://www.domain.com/page.html&page_id=1 (where page_id is a hidden variable in apex)
    but how do I do this with an apex page like :-
    http://host:port/pls/apex/f?p=123:9 <what goes here ? and what goes in the page for it to work>
    Any help appreciated - noob to Apex
    Thanks
    Phil.

    If your item to be used in the url is P1_Page_Id, the
    url should be something like:<br>
    http://host:port/pls/apex/f?p=123:9:page_id:&P1_Page_I
    d.
    Thanks for comments, understand the syntax of the apex URLs now, got the item sorted in the page now, all working.

  • How to make a common parameter for two subreports in the main report.

    Hi,
    I have a crystal report which has 2 subreports in it. Both the subreports have the same code and I need to create a parameter for Project Cost in both the subreports for filtering the data.
    When i create the same parameter in both the subreports, i see two parameters with same name on my prompt page while refreshing the report. however I just want 1 parameter on my prompt page and data should get filtered in both the reports.
    Can anyone please suggest something, How can I do that? is there a way for sharing same parameter between two subreports?
    Thanks!
    Neha.

    hi Neha,
    here's how to do this:
    1) create a new parameter with the same name on the main report
    2) right click on your first subreport and choose Change Subreport Links
    3) in the Field to Link To list drag over your new main report parameter
    4) open the Subreport Parameter Field to Use select menu and choose your subreport parameter
    5) repeat steps for the 2nd subreport
    now you'll only get prompted once.
    cheers,
    jamie

Maybe you are looking for