Passing page parameter to form object in Porlet

How can I pass a page parameter to a Portlet that contains a form? I wish to set the default value of a dropdown item in the form based upon a page parameter. Thanks.

I have found that when you set a value for a bound variable in the customise screen you cannot clear it. For some reason it seems to be stored as a null value somewhere and it always over-rides any page parameter setting.
Try renaming the parameter in your report. Make it public as before and then link it to the page parameter (you probably don't need to rename this, but it might be a good idea to make it more than just the letter p). Watch out - parameters in the url are case sensitive.
Good luck.
Patrick.

Similar Messages

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

  • Passing date parameter from forms to report

    Hi,
    I'm using forms and reports 6i.
    I want to pass one date parameter from forms to reports.
    Using
    Add_Parameter(pl_id,'P_FROM_DATE',TEXT_PARAMETER,:FROM_DT);
    giving me error REP-0091- Invalid value for parameter 'P_FROM_DATE'
    This i think is because report expects date and here it is converted as varchar.
    Please help

    Hi Divya,
    Even I use this kind of statement
    Add_Parameter(pl_id,'P_FROM_DATE',TEXT_PARAMETER,:FROM_DT);and works fine for me.
    This i think is because report expects date and here it is converted as varchar
    Correct.
    Open the report in the builder and under Data Model -> User Parameters, Go to the Property Inspector of P_FROM_DATE. Under Parameter, set Datatype as Character instead of Date.
    Hope this should work. and tell me if it works(coz it wokred for me).

  • Pass Page Parameter to next page

    Dear all,
    How do I pass a Page Parameter from one page to the next page?
    I have an omniportlet - SQL portlet defined, where one of the items is a link. I want one of the columns to be a hyperlink to a detail page. So I have to figure out 2 things:
    - how do I dynamically create the hyperlink
    - how do I catch the parameter value on the detail page?
    Regards

    Hi Linkit:
    Two things you may want to look at --
    1) The URL you indicate below while accurate is not considered a "durable" URL and could change. In fact it does change in the 10.1.4 portal version and will also be different across environments (dev, test, production ...) . If you look at your on-line portal help, do a search under "direct access URL", it has a decent write-up on how to do exactly that. In general on pre 10.1.4, it is http://<hostname>:<portnumber>/pls/<dad>/url/page/<pagegroupname>/<objectname> such as http://portal.mycompany.com/pls/portal/url/page/mypagegroup/mypage/mysubpage. This changes slightly in 10.1.4.
    2) For the receiving page to receive the parameter, it also needs to have a page parameter setup on it. If you set it up under the same name it should work. Also, in your example below, the ? in front of the parameter name ##DBCOLUM## should be a &. (? is used for the 1st parameter on a page _pageid in this case, and & is used for all other paramters)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • HOW to pass page parameter into table function in  HTMLDB

    I created this object and table function in database.
    create or replace TYPE date_flow_type
    AS OBJECT (
    time           date,
    max_time      number,
    avg_total           NUMBER,
    sum_total      NUMBER,
    max_total      NUMBER,
    change_rate      number
    create or replace TYPE date_flow_table_type AS TABLE OF date_flow_type;
    create or replace function ret_date(p_date date default sysdate) return date_flow_table_type is
    v_tbl1 date_flow_table_type :=date_flow_table_type();
    begin
    v_tbl1.extend;
    v_tbl1(v_tbl1.last):=date_flow_type (p_date,1,1,1,1,1);
    return v_tbl1;
    end;
    and it is correct in htmldb when using in these ways
    SELECT TIME da,
         max_time max_time,
         sum_total total,
         max_total max_total,
    change_rate
    FROM TABLE ( ret_icp_date_flow ) a;
    SELECT TIME da,
         max_time max_time,
         sum_total total,
         max_total max_total,
    change_rate
    FROM TABLE ( ret_icp_date_flow( sysdate-1 )) a;
    but return error
    ORA-00904: "RET_ICP_DATE_FLOW": &#26080;&#25928;&#30340;&#26631;&#35782;&#31526;
    when pasing page parameter into the table function
    SELECT TIME da,
    max_time max_time,
    sum_total total,
    max_total max_total,
    change_rate
    FROM TABLE ( ret_icp_date_flow( to_date(:p1_date,'yyyy-mm-dd') )) a
    and this sql is correct while running in sqlplus .

    Hi!
    Thanks for your reply!
    I have tried this solution but it doesn't work!
    When I do getInitParameter in the init function, the servlet take the default values...
    Maybe I have wrote something wrong?
    Excuse me for my english,
    Thanks

  • 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

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

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

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

  • Passing URL parameter to form

    Hi, i'm currently building a back-end for a small site. What
    i'm trying to do is enable a user to edit and update an article.
    I've got a dynamic table, i'm trying to use a URL form parameter to
    pass the unique ID of an article to a form that brings up the
    article for editing, but its not working, its just bringing up the
    same record whatever link is clicked in the dynamic table. Can
    somebody point out whats missing? I'm using PHP & mySQL.
    Thanks, any help appreciated.

    You don't specify what language you're using, or how you're
    populating your
    form.
    If you're using a recordset to populate your form, simply
    edit it and then
    set the filter to your ID field, and use the URL parameter to
    capture your
    variable. Make sure in your recordset for your page to
    display the records
    you put the same variable name as you use on your previous
    page with the url
    variable.
    HTH,
    Jon
    "MarkAD88" <[email protected]> wrote in
    message
    news:e4f5s9$4l$[email protected]..
    > Hi, i'm currently building a back-end for a small site.
    What i'm trying to
    > do
    > is enable a user to edit and update an article. I've got
    a dynamic table,
    > i'm
    > trying to use a URL form parameter to pass the unique ID
    of an article to
    > a
    > form that brings up the article for editing, but its not
    working, its just
    > bringing up the same record whatever link is clicked in
    the dynamic table.
    > Can
    > somebody point out whats missing? Thanks, any help
    appreciated.
    >

  • Pass page parameter to discoverer portlet

    Hi All,
    iAS Version 10g(9.0.4)
    I created worksheet(graph) using Discoverer plus having 4 parameters. I published the
    discoverer graphs as discoverer portlet in Oracle portal. However for this worksheet it shows
    (No parameters) in Page --> Properties --> parameter. I created simple parameter portlet with
    4 items, this entry I need to pass to this discoverer portlet/Worksheet.
    Any suggestion would help.
    Thanks

    Hi,
    Thank for your reply.
    We are using discoverer plus for relational data (Oracle 10g (Ias 9.0.4)).
    Appreciate your feedback.
    Raj
    Hi, are you using discoverer plus for relational/OLAP
    data?

  • How to pass record Group from Forms with DATA_PARAMETER to Reports Server

    How to pass record Group from Forms with DATA_PARAMETER to Reports Server using RUN_REPORT_OBJECT?
    When we use products on run time we are using data_parameter for passing record Groups to reports via run_product but now we have to use application server and reports server for same reports.
    We met with <FRM-41214 Unable to run reports> for passing DATA_PARAMETER to reports server when used RUN_REPORTS_OBJECT.
    How can we pass record Group from Forms with DATA_PARAMETER to Reports Server using RUN_REPORT_OBJECT?
    Thanks,
    Arif

    Hi Mandeep,
    Could you please tell me how can i pass data parameter from forms to report through run_product.

  • UPDATE: Pass Parameter from Form to Form While on Seperate Pages

    I'm running 9iASR2 on Linux
    My issues is that In need to Take a Parameter entered on Form1 one a page then upon click of insert I need to pass a parameter entered into that form and naviagate to another page containing 2 portlets 1 being another form and 1 being a dynamic page both of the portlets on the second page need to beable to access the parameter.
    Since my last post I updated the PL/SQL code to better fit the situation and now have a different problem.
    Ok.. So I'm still attempting to do the same thing a about. Here what I tried and the outcome.
    1. I put following code in the succeful submission pl/sql procedure of the first form(the calling form).
    What a suspected the follow code to do was navigate to the page containing my other from in a portlet. Which it did. Cool!
    declare
    url varchar2(220);
    v_FLOWNAME varchar2(220);
    begin
    v_FLOWNAME := p_session.get_value_as_VARCHAR2(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_FLOWNAME');
    url:='http://ebalpha3.us.oracle.com:7778/portal/page?_pageid=36,31629&_dad=flowmanager&_schema=PORTALSCHEMA&a.FLOWNAME='||v_FLOWNAME;
    call(url);
    end;
    2. It passed the follow URL http://ebalpha3.us.oracle.com:7778/portal/page?_pageid=36,31629&_dad=flowmanager&_schema=PORTALSCHEMA&a.FLOWNAME=MyFLow
    3. In the accepting form I input the following code in the before displaying the page section of the the form.
    declare
    FLOWNAME varchar2(200);
    begin
    FLOWNAME := portalschema.wwpro_api_parameters.get_value('FLOWNAME','a');
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_FLOWNAME',
    p_value => FLOWNAME);
    end;
    What I expected it to do is take the a.FLOWNAME from the url and input it into the FLOWNAME variable, but the FLOWNAME variable came across as blank and the FLOWNAME text area came accross as blank because the FLOWNAME parameter was never pulled.
    What do you think?
    Thanks for you help!

    I have a similar problem where I have a portlet X which accepts parameters using the <passAllUrlParams>true</passAllUrlParams> tag in the provider.xml and it works if portlet X is directly on page A. However, because I need to wrap portal security around this portlet declaratively, I will need to apply security on this page A and then publish page A as a page portlet Z, then drop page portlet Z on another page, page B. (I hope you all been through this before to apply security around a portlet). By doing this - the parameters are no longer being passed into portlet X anymore.
    To get around this - I will need to define page parameters for page A and map them to portlet X via the "Parameters" tab in edit mode and then define the same set of page parameters on page B and map them to the page portlet Z just to get the parameter passing working and flowing through to portlet X.
    Is there anyway around this?
    Do we always need to define page portlets in 10.1.4?
    What does the <passAllUrlParams>true</passAllUrlParams> tag do in 10.1.4?
    In 10.1.2 - the <passAllUrlParams>true</passAllUrlParams> tag was all you need to pass any number and type of parameters from a page B->page-portlet Z->portlet X
    This feature seems to be missing in 10.1.4.
    Please respond.
    Thanks
    Stanley

  • Pass Parameter from Form to Form While on Seperate Pages

    I'm running 9iASR2 on Linux
    I know there are allot of postings on Passing parameters and I'd hate to bring it up again, but I've been attempting this for a few days now and can't seem to figure it out.
    My issues is that In need to Take a Parameter entered on Form1 one a page then upon click of insert I need to pass a parameter entered into that form and naviagate to another page containing 2 portlets 1 being another form and 1 being a dynamic page both of the portlets on the second page need to beable to access the parameter.
    I am abable to pass the parameter between the forms when not running in a portlet with the code below.
    declare
    url varchar2(220);
    v_FLOWNAME varchar2(220);
    begin
    v_FLOWNAME := p_session.get_value_as_VARCHAR2(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_FLOWNAME');
    url:='portalschema.wwa_app_module.link?' ||
    'p_arg_names=_moduleid&p_arg_values=1082756362' ||
    '&p_arg_names=_show_header&p_arg_values=NO' ||
    '&p_arg_names=FLOWNAME&p_arg_values=' || v_FLOWNAME;
    call(url);
    end;
    Thanks for You Assistance!

    FRM 41213 : unable to connect to the report server repsrv+
    Look at this ....
    Did u created the report server from the command prompt
    If yes
    Did u started the report server
    if not
    use this from the command prompt
    rwserver server = yourservername start

  • Pass Parameter with Form

    It is a common and frequent question, but it has not been answered satisfactorily. The question is, how do I pass a parameter from a form in a Portal page to another page?
    I have discovered that using a Dynamic Page, I can read parameters passed in by referencing them as bind variables in a PL/SQL block. For example, given a parameter of "bindMe" as in "http://portal_path/object.show?p_arg_names=bindMe&p_arg_values=hello", the following code will display it:
    <oracle>
    declare
    localVar varchar2(50) := :bindMe;
    begin
    htp.print('bindMe = ' || localVar);
    end;
    </oracle>
    However, I am having trouble sending a form parameter out, in Portal format. By default, it will create the "?bindMe=hello" form, which isn't easily recognizable by Portal. I tried to setup a bind variable for an out-going parameter, but either it doesn't work that way, or I didn't set it up correctly. Any help would be appreciated.
    Not interested in the JavaScript approach.

    I've tried using the wwpro_api_parameters.get_value function, but it doesn't work. I keep getting a "not found" error for the page when trying to pass a parameter.
    Here's my code for the page. I'm trying to simply read a parameter that's passed in. Cut and paste it into your Dynamic Page, and see if you can get it to work.
    <html>
    <head><title>test</title></head>
    <body>
    You passed in
    <oracle>
    begin
    htp.print(portal.wwpro_api_parameters.get_value('empno','a'));
    end;
    </oracle>
    </body></html>
    Now use the URL:
    http://....show?empno=10
    According to the API documentation (http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/sdk3gvf.htm), this should work, but it doesn't. I know I shouldn't be surprised that Oracle's documentation is inaccurate, but I'm having trouble finding a solution.
    Help!

  • Extremely URGENT! How to pass a parameter from html to form?

    Hi Guys,
    I want to be able to pass a parameter to a Pre-Query trigger (from a html page to an Oracle form.) Right now, I hard coded the Pre-Query trigger
    (i.e. set_block_property('datablock_name', default_where, 'tableName.fieldName = '||:datablock.field)
    I want to be able to assign a value to the above datablock.field from an URL (i.e. something like http://localhost/dev60cgi/ifcgi60.exe?form=MODULE1.fmx&userid=&otherparams=fieldx=parameterSample
    Does anyone know how to set that up within Oracle Forms. Thanks in advance.

    Hello. your you can create one it paginates similar to this...
    <HEAD></HEAD>
    <BODY >
    <!-- Forms applet definition (start) -->
    <OBJECT classid="clsid:86ecb6a0-400a-11d5-b638-00c04faedb18" codebase="/jinitiator/jinit.exe#Version=1,1,8,11" WIDTH="950" HEIGHT="560" HSPACE="0" VSPACE="0">
    <PARAM NAME="TYPE" VALUE="application/x-jinit-applet;version=1.1.8.11">
    <PARAM NAME="CODEBASE" VALUE="/forms60java/">
    <PARAM NAME="CODE" VALUE="oracle.forms.engine.Main" >
    <PARAM NAME="ARCHIVE" VALUE="f60all_jinit.jar, ComponentesEsigfa.jar" >
    <PARAM NAME="serverPort" VALUE="9000">
    <PARAM NAME="serverHost" VALUE="MyServer">
    <PARAM NAME="serverURL" VALUE="/servlet/oracle.forms.servlet.ListenerServlet?ifcfs=/servlet/f60servlet?config=servlet&form=fca_menu.fmx&otherparams=ejercicio=<%=request.getParameter("ejercicio")%>&useSDI=yes&lookAndFeel=generic&colorSchema=teal">
    <PARAM NAME="connectMode" VALUE="HTTP">
    <PARAM NAME="serverArgs"
    VALUE="module=fca_menu.fmx userid=<%= request.getParameter("login")+"/"+request.getParameter("pwd")+ "@" +request.getParameter("base")%> ejercicio=<%=request.getParameter("ejercicio")%>">
    <PARAM NAME="separateFrame" VALUE="false">
    <PARAM NAME="splashScreen" VALUE="no">
    <PARAM NAME="backgroun[i]Long postings are being truncated to ~1 kB at this time.

  • Passing parameter from Form to URL

    Hi,
    I have a form with one field with LOV (combobox). When user chooses a value it should open the same page but with one parameter added. I tried out this:
    OnChange JavaScript:
    window.open('http://lesoprojekt.sk:7779/portal/page?_pageid=33,31392,33_31648&_dad=portal&_schema=PORTAL&dep='||depno)
    where depno is a form field and I need to pass its value.
    But the URL result is only http://lesoprojekt.sk:7779/portal/page?_pageid=33,31392,33_31648&_dad=portal&_schema=PORTAL&dep=
    I need it as a page parameter because it is being passed to OmniPortlet.
    Any help?
    thanks,
    Brano

    Yes, but your form which is getting invoked with this call needs to have this parameter (in object navigator).
    If the name of your parameter is e.g. OWNPNAME you will have to add an parameter object in the form named OWNPNAME.
    In addition, in the config section of your application in formsweb.cfg you will have to add :
    otherparams=OWNPNAME=%OWNPNAME%
    Then, you cann embed OWNPNAME within the url call
    ...&OWNPNAME=xyz

Maybe you are looking for