Passing Parameters via HREF link

Hello All,
I would like to pass a parameter to
a portlet using an:
<a href="portlet ?id=somevalue"></a>
I have searched the support groups and
found no answer except the often repeated
"Look at the Parameter passing Guidelines".
I have read the guidelines, looked through
the sample code and it still makes no
sense.
Seems like this would be an easy method
in the JPDK but I cannot get anything to
work that I have tried.
Thanks in advance for any help!

Could you install the sample portlets?
Besides the Parameter Passing Guidilenes article there's another one that might help you: "Understanding the Parameter Passing JSP Sample".
In the Training Center on the Community Home tab on Portal Studio, you find several online eClasses. The Building Java Portlets covers among others the parameter passing services. You can also download the example portlet.
If you're more specific what your problem is, we could provide you more help.
Regards,
Peter

Similar Messages

  • Pass parameters from hbj link

    Hi,
        I want to pass parameters from hbj link to the component where the event method is going to be called. And also when I click the event how it is going to redirect other jsp.
    Regards,
    Suresh.B

    Hello Reinuka,
    It is possible to send parameter to Web Dynpro iview.
    In the iview application parameters add Param1 =.
    Place this code wherever  you want to call that iview.
    WDPortalNavigation.navigateAbsolute("ROLES:"+iview,WDPortalNavigationMode.SHOW_INPLACE,(String) null, (String) null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS,(String) null,(String) null,"Param1 = ");
    "ROLES:"+iview=Iview Path
    "Param=Paramvalue"=Parameter and its value
    Youcan receive the value as
    String parmvalue=WDWebContextAdapter.getWebContextAdapter().getRequestParameter("Param");
    Regards,
    Sridhar

  • Pass parameters via POST in WDPortalNavigation.navigateAbsolute method

    Hi,
    how can i pass parameters via POST method from WD Application using WDPortalNavigation.navigateAbsolute method
    Should i pass the parameters as part of the NavigationTarget URL or they should be passed via different parameter?
    Thanks,
    Yuly Roberman

    What is the procedure to pass parameters via POST using WebDynpro ?
    I am required to pass XML Data via POST.
    I have gone through the following :
    a) http://help.sap.com/saphelp_nw04/helpdata/en/9e/a073001903c9419592b14c2aa63669/content.htm
    b) Inter Navigation Application in Web Dynpro
    However, I could not find any reference to do the same via POST.
    Can anyone throw light on the same ?
    Best Regards,
    Subramanian V.

  • Passing Parameters via Post Method from Webdynpro Java to a web application

    Hello Experts,
    I want to pass few parameters from a web dynpro application to an external web application.
    In order to achieve this, I am referring to the below thread:
    HTTP Post
    As mentioned in the thread, I am trying to create an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map.
    But when I build my DC, I am getting the same error which most of the people in the thread have mentioned:
    Controller XXXCompInterfaceView [Suspend]: Outbound plug (of type 'Suspend') 'Suspend' may have at most two parameters: 'Url' of type 'string' and 'postParams' of type 'Map'.
    I am using SAP NetWeaver Developer Studio Version: 7.01.00
    Kindly suggest if this is the NWDS version issue or is it something else that I am missing out.
    Also, if it is the NWDS version issue please let me know the NWDS version that I can use to avoid this error.
    Any other suggestion/alternative approach to pass the parameters via POST method from webdynpro java to an external web application apart from the one which is mentioned in the above thread is most welcome.
    Thanks & Regards,
    Anurag

    Hi,
    This is purely a java approach, even you can try this for your requirement.
    There are two types of http calls synchronous call or Asynchronous call. So you have to choose the way to pass parameters in post method based on the http call.
    if it is synchronous means, collect all the values from users/parameters using UI element eg: form and pass all the values via form to the next page is nothing but your web application url.
    If it is Asynchronous  means, write a http client in java and integrate the same with your custom code and you can find an option for sending parameters in post method.
    here you go and find the way to implement Asynchronous  scenario,
    http://www.theserverside.com/news/1365153/HttpClient-and-FileUpload
    http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html
    http://digiassn.blogspot.com/2008/10/java-simple-httpurlconnection-example.html
    Thanks & Regards
    Rajesh A

  • Passing Parameters via OpenDocument URL to OLAP Analysis .amw

    Hello together,
    did anyone ever manage to successfully create an OpenDocument URL which passes parameters to an existing analysis workspace .amw?
    We already linked to other .crp and BEx reports, but maybe .amw needs some special syntax..
    I appreciate every hint
    Thanks
    CR Enterprise 4.0 SP2 in usage

    Hi,
    I can confirm: The situation for A-OLAP is the same as it was for Voyager.
    Analysis, like voyager, supports outbound opendoc params (ie pass context to WebI/CR) but not inbound params. The only exception is that you can specify which Voyager workspace to open.
    Voyager/analysis supports SAP connection parameters on opendoc, but this is a manual selection in prompts. You cannot programmatically set connection variables.
    Today we also support "Jumplinks"... a feature in both Voyager and A-OLAP that allows contextual information to be passed to a pre-defined Crystal Report.
    For BI4.1 (end 2012) SAP plans to make A-OLAP more open. This includes supporting SAP's Report-Report-Interface (RRI) and extending the OpenDocument parameters beyond just the workspace name that is supported today.
    Regards,
    H

  • Error when passing parameters in a link

    Hi:
    i have a report and a form. i've created a link that will point to the form from the report. So i've associated the link to a field of the report and edited it so that a key field in the form will be equal to a value passed from the report's key field. The fact is that passing static values works properly, but when passing parameters from a column it raises an error:
    Error: Unable to parse query (WWV-10200)
    ORA-06550: line 1, column 37:
    PLS-00201: identifier 'NO' must be declared
    ORA-06550: line 1, column 9:
    PL/SQL: Statement ignored (WWV-11230)
    Failed to parse as PORTAL - begin wwv_rptclip.g_row_object :=
    NO(wwv_rptclip.g_row_object) ; end; (WWV-08300)
    Does anybody know how to solve this problem? or why is the error raised?
    Thx.
    Regards. Urko.

    Also, is that a function NO you're trying to use? I'm not sure what that is, so it's possible when Portal tries to parse the sql string and execute it, it's not a recognizable function in the Oracle language or the appropriate grants on that function have not been made to the schema executing the report/form

  • Calling a function and passing parameters via Variables

    I've got an XML file that is loading in data and is calling functions.
    I've figured out how to call the methods from classes with variables set from the XML file:
    var functionToCall:String = xml.functions.func[0].to_fire.toString();
    myClass[functionToCall]();
    This calls the function perfectly.
    I was wondering if there is anyway to pass parameters into the function as well through variables.  Some functions may have no parameters, some functions could have 5... so the xml could be like this:
    <functions>
       <func>
        <to_fire>function1</to_fire>
        <param>
         <value>true</value>
         <type>Boolean</type> <!-- Must be set to Boolean, String or Number -->
        </param>
       </func>
       <func>
        <to_fire>function2</to_fire>
        <param/>
       </func>
       <func>
        <to_fire>function3</to_fire>
        <param>
         <value>false</value>
         <type>Boolean</type> <!-- Must be set to Boolean, String or Number -->
        </param>
        <param>
         <value>My String Value</value>
         <type>String</type> <!-- Must be set to Boolean, String or Number -->
        </param>
        <param>
         <value>10</value>
         <type>Number</type> <!-- Must be set to Boolean, String or Number -->
        </param>
       </func>
    </functions>
    whats the best way to set something like this up?

    how would I set something like that up?
    in the class:
    public function myFunction(_param1:String, _param2:Number):void {
    then to call it, would ParamTypes be cast as an array or object or something?
    var functionVariable:String = "myFunction";
    myClass[functionVariable](??);
    Or do I structure the XML file in some way to pass in the information?

  • Passing Parameters via a button to a form

    I have a form on a page based on a simple table with with the following fields
    Code, Name and Address
    I would like to put a button on this form which will then open a separate page which contains a form based on a different table which has the following fields
    Code, Notes
    When I click on the button I would like it to open the second form in edit mode if a record already exists.
    So I need to pass the value of the code field in form 1 to query in the record in form 2.
    I am very new to Apex and not sure how to do help much appreciated.

    Hi,
    As far as I know the default behavior is that if you pass the primary key to another form the record is opened in 'edit' mode, if you pass other fields than the PK to another form the form is opened in 'add new record' mode and the PK is generated when you save the record.
    So if you can do a lookup of the PK before you go to the second form and call the form with this PK you should be able to edit.
    Not sure if that answered your question though... :)
    Ciao
    Bas

  • IR parameters via a link

    Hi,
    I'm looking to pass a default parameter to an interactive report and came across this documentation which is exactly what we require.
    The problem is that some of the reports are based on views that had their columns defined in a case sensitive manner. So as an example where the underlying table or view is defined normally (i.e. columns are not case-sensitive) then the above method works perfectly, the problem we have is where it has been aliased. So, for example, a view is defined as:
    CREATE OR REPLACE VIEW my_view("DataSet", ....)
    AS
       SELECT DATASET_ID "DataSet"
         FROM my_table;I've tried passing the parameter as IREQ_DATASET, IREQ_DataSet, IREQ_DATASET_ID, and even IREQ_"DataSet" and "IREQ_DataSet", the latter of which causes an error. As there are a large number of reports like this I'd rather not have to go back and change the view and update each report if at all possible.
    Anyone any ideas?
    Many thanks,
    Gareth.

    Hi,
    Please look under Sample Application page 13.
    In general it is passed with IR_ to the field name...
    select 'f?p='||:APP_ID||':2:'||:app_session||':::2,RIR:IR_CUST_STATE:'||...
    I hope this is helpful
    LK

  • Passing parameters via command line

    I've been asked to write a routine in LabVIEW that will control an
    instrument. The only problem is that this routine will be called by a
    different piece of software (3rd party software that we've bought)and
    we need to pass a parameter. The source application will allow
    switches in the command line, but that is the only way. Is there a way
    Labview can accept this ??

    Hi,
    I'll mail you a vi to do this. Note that it will only work if you have an
    application. (If not, you'll get the command line from labview...)
    Regards,
    Wiebe.
    "Robert Barker" wrote in message
    news:[email protected]..
    > I've been asked to write a routine in LabVIEW that will control an
    > instrument. The only problem is that this routine will be called by a
    > different piece of software (3rd party software that we've bought)and
    > we need to pass a parameter. The source application will allow
    > switches in the command line, but that is the only way. Is there a way
    > Labview can accept this ??

  • Unable to pass parameters from APEX to Oracle EBusiness suite R12 forms

    Hi
    We are trying to access a standard Oracle EBusiness form i.e. service request and are invoking this Form through a link from APEX.
    We are trying to pass parameters via this URL
    http://abc.oneapps.com:8010/OA_HTML/RF.jsp?function_id=2037&resp_id=50952&resp_appl_id=170&security_group_id=0&lang_code=US&otherparams=INCIDENT_ATTRIBUTE_15=5206
    The EBusiness suite form is launched correctly but we are not able to read the parameter value through custom.pll code.
    if (event_name = 'WHEN-NEW-BLOCK-INSTANCE') then
         IF form_name='CSXSRISR' and block_name='SR_BSC_QUERY' then
              FND_MESSAGE.DEBUG('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG(' ');
              --FND_MESSAGE.DEBUG(:PARAMETER.INCIDENT_ATTRIBUTE_15);
              lC_incident_number :=name_in('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG('Incident Number'||lC_incident_number);
              IF lC_incident_number IS NOT NULL THEN
                   copy(lc_incident_number,'SR_BSC_QUERY.INCIDENT_NUMBER');
              END IF;     
              FND_MESSAGE.DEBUG(' ');
         END IF;
    END IF;
    Is this the right way of passing the parameters?
    all technical inputs are welcome.
    Regards
    Sam

    Hi
    We are trying to access a standard Oracle EBusiness form i.e. service request and are invoking this Form through a link from APEX.
    We are trying to pass parameters via this URL
    http://abc.oneapps.com:8010/OA_HTML/RF.jsp?function_id=2037&resp_id=50952&resp_appl_id=170&security_group_id=0&lang_code=US&otherparams=INCIDENT_ATTRIBUTE_15=5206
    The EBusiness suite form is launched correctly but we are not able to read the parameter value through custom.pll code.
    if (event_name = 'WHEN-NEW-BLOCK-INSTANCE') then
         IF form_name='CSXSRISR' and block_name='SR_BSC_QUERY' then
              FND_MESSAGE.DEBUG('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG(' ');
              --FND_MESSAGE.DEBUG(:PARAMETER.INCIDENT_ATTRIBUTE_15);
              lC_incident_number :=name_in('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG('Incident Number'||lC_incident_number);
              IF lC_incident_number IS NOT NULL THEN
                   copy(lc_incident_number,'SR_BSC_QUERY.INCIDENT_NUMBER');
              END IF;     
              FND_MESSAGE.DEBUG(' ');
         END IF;
    END IF;
    Is this the right way of passing the parameters?
    all technical inputs are welcome.
    Regards
    Sam

  • Passing parameters between views in different Web Dynpro applications

    Hi everyone,
    I would like to pass the value of one parameter between one view in a webdynpro application and another view that is in other webdynpro application. How can I do this in a secure way?

    Hi,
    Check below links for passing parameters between two applications:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b083f76a-708c-2b10-559b-e07c36dc5440
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/91b6ad90-0201-0010-efa3-9626d2685b6e
    Re: Pass parameters via POST in WDPortalNavigation.navigateAbsolute method
    Regards,
    Anagha

  • How does customization form pass parameters?

    I need to create my own customization form so it can include linked LOVs and was wondering how the default customization form passed the LOV values back to the calling component.
    I put two copies of the same report on a page and called the customization form for each report selecting different LOV values. Since each report displays the correct results based on the LOV, I assume page parameters are not being used and neither is p_arg_values/p_arg_values.
    Can anyone tell me how this information is being passed to the individual reports?
    Thanks, Larry

    Sharmila,
    I guess I'm confused, the parameters that are selected on the Customization screen are persistent across different login sessions.
    Is is my understanding that passing parameters via p_arg_names/p_arg_values on the URL would not carry over from one logon to another or even allow me to navigate to another page and then back to the "customized" screen and still have the customizated values applicable?
    Are you saying that once I call a page and pass a name/value parameter pair to the page, that the paramter values remain in affect for subsequent calls to the same page where the name/value pair isn't being passed?
    Doesn't the customization screen use the wwpre_api_name and wwpre_api_value methods to pass parameters to components located on a page via the user preference storage?
    When I look at the URL associated with the customization link on my portlets I see the preference_path being passed to the customization form.
    Larry

  • Passing parameters in jsp

    Hi friends,
    I am very new to oracle pdk. But unfortunately i was assigned to a small pdk development using jsp.
    How can i send parameters in the Oracle jpdk multipage sample portlet .
    The first.jsp says ,
    <%
    PortletRenderRequest prr = (PortletRenderRequest) request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    NameValuePair[] linkParams = new NameValuePair[1];
    linkParams[0] = new NameValuePair(HttpPortletRendererUtil.portletParameter(request, "next_page"), "/htdocs/multipage/second.jsp");
    %>
    <center>
    Hello, this is the first page<p>
    <%=UrlUtils.constructHTMLLink(prr, UrlUtils.PAGE_LINK, "second page", "", linkParams, true, true)%>
    </center>
    Now where should i add the parameter which i have to send to the second page named second.jsp.
    In the same way how to receive the parameter values in the second.jsp file, the second.jsp is listed here as below.
    <%
    PortletRenderRequest prr = (PortletRenderRequest) request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    NameValuePair[] linkParams = new NameValuePair[1];
    linkParams[0] = new NameValuePair(HttpPortletRendererUtil.portletParameter(request, "next_page"), "/htdocs/multipage/first.jsp");
    linkParams[1] ="a=hello";
    %>
    <center>
    Hello, this is the second page<p>
    <%=UrlUtils.constructHTMLLink(prr, UrlUtils.PAGE_LINK,
    "first page", "", linkParams, true, true)%>
    </center>
    Please write to me an example in detail.
    Matter is very urgent.

    I just recently put a set of helper classes on my knowledge exchange site specifically to help with passing parameters via the url.
    http://portalstudio.oracle.com/servlet/page?_pageid=2106&_dad=ops&_schema=OPSTUDIO&_type=site&_fsiteid=233&_fid=433232&_fnavbarid=180376&_fnavbarsiteid=233&_fedit=0&_fmode=2&_fdisplaymode=1&_fcalledfrom=1&_fdisplayurl=
    I called it Portal Tools. It includes usage documentation.
    but, to stick with the code example you provided,
    Technically, you can pass parameters at least three different ways:
    -Using portal's parameter-event processing (portlets interact with portal for parameters)
    -Using qualified parameter names (portlets only see "their" parameters)
    -Using unqualified parameter names (portlets are responsible for unique names, name collisions, etc)
    I would generally shy away from the unqualified parameter method; it was put in to support older versions of portal.
    The example you provided currently uses qualified parameters, so I will answer with that method.
    To add a parameter "a" with a value of "hello",
    change the setup of the link parameters in first.jsp to this:
    NameValuePair[] linkParams = new NameValuePair[2];
    linkParams[0] = new NameValuePair(HttpPortletRendererUtil.portletParameter(request, "next_page"), "/htdocs/multipage/second.jsp");
    linkParams[1] = new NameValuePair(HttpPortletRendererUtil.portletParameter(request, "a"), "hello");
    note that in the definition line, you must allocate space for EXACTLY how many parameters you are using (2 now, rather than 1). Then in the assignment lines, it is using java standard ZERO based indexing, so the new second parameter is at index 1.
    to get (and display) the parameter in the second.jsp page, you would include something such as this:
    Parameter "A" contains a value of <%= prr.getParameter("a") %>.
    note how you just ask the PRR for the parameter with the unqualified name.
    The "next_page" parameter is defined (in the provider.xml) to be used by portal to manage page flow and display. That is why you only have to set the "next_page" parameter.
    I hope this helps.
    Craig

  • Passing Parameters to Reports Builder

    I am passing parameters via URL from APEX 3.2 to Oracle Reports Builder, but the parameters are not sticking and hence not getting passed to ORB. What can I do?
    The parameters are select list page items. The URL is called via a button and javascript:popup('http://....

    You might want to try putting them in a table and then in your report query the table... I have done this in Forms & Reports on occasion...
    Thank you,
    Tony Miller
    Webster, TX
    While it is true that technology waits for no man; stupidity will always stop to take on new passengers.

Maybe you are looking for

  • Not able to get the Repository Item for Configurable SKU

    I created a configurable sku and when i am trying to get the property of it I am getting an exception. I am using the following code: RepositoryItem repItem = productRepository.getItem("sku550018", "configurableSku"); ChangeAwareList ancestorCat = (C

  • Scheduling one background after first finishes

    Hi, I have to run a second BGD job after the completion fo first job periodic BGD job. I scheduled them using SM36 and set the  execution condition in the second job as after JOB completion and gave the name of the first job there. But second job was

  • Import procedure problem

    Dear Sir in our import procedure previously we use to capture the BOE or excise invoice while doing GRN itself say Part 1 then we will post PART II through j1iex. in this case CVD indicator and subtransaction type automatically getting selected. But

  • Problem Related to Billing of return delivery?

    Hi All, i have invoice no which has been posted and then for the same return delivery is made and pgr is done  but now when I am doing invoice of the delivery it is showing below given error message. Delivery type LR10 cannot be invoiced with billing

  • Following upgrade to Windows 8, how do I restore Firefox bookmarks?

    Microsoft told me my stuff was compatible when I checked before upgrading. All of my bookmarks and most of my desktop are gone. Not to mention most of my programs such as Office ! I had a long list of bookmarks. Is there a way to restore that list?