Page Parameters in PL/SQL Pages

The OAS User's Guide says:
"You can define page parameters for PL/SQL Pages. Values for these parameters are passed to bind variables in the PL/SQL code. For example, if the PL/SQL page 'myplsqlpage' contains the PL/SQL statement 'a:=:param1'; and a page parameter is specified named 'param1' with the value '123' (param1=123), this URL is used to access the PL/SQL page in Oracle AS Portal:
http://myportal/myplsqlpage?param1=123
In the PL/SQL code, the bind variable 'a' is assigned the value '123'."
But I did that but I have the following message:
ORA-01008: not all the variables have been binded (WWS-22518).
Please I have an example.
Thanks in advance.

Hi Patrick,
Your suggestion seems interesting and simplistic and I wonder if you could make it working. Because, I worked on a similar suggestion some months ago and it did not work. unless I am confusing your idea with something else, it is not designed to work - although it was claimed in the documentation to work. On talking to Oracle we were able to pin down that it was a documentation bug and a new note was created to state that.
You may wanna see the following Metalink Note which says that passing parameters from a PLSQL page is not allowed.
regards,
AMN
Subject:      Unable To Pass Parameters To A PL/SQL Page
Doc ID:      Note:550373.1
Cause
Page parameters were not designed to work with PL/SQL pages. However the Oracle® Application Server Portal User's Guide states that this is possible.
This is a documentation bug and it is related to the following unpublished bugs:
BUG 5007570: GET PARAMETERS IN PL/SQL PAGE
BUG 3473023: PASSING PARAMETERS TO PL/SQL PAGE IS ERRORING OUT - ORA-1008
Solution
-- To implement the solution, please execute the following steps::
PL/SQL pages do not support to pass parameters. If you need to pass page parameters to a database provider components such as forms and reports, then you need to create a simple page and follow notes below:
Note 265180.1
Title: How to pass parameters to a form, which is placed as a
portlet inside a page?
Note 287545.1
Title: How Pass Parameter Via URL to a Report Using Page Parameters

Similar Messages

  • Parameters to pl/sql pages

    Hi all,
    I installed the pdk examples showing how to pass parameters betweens pl/sql portlets. I saw it but not understand very weel. This is the same way to pass parameters between pl/sql pages? Is there any step-by-step that explain how to make the parameters passing more simple?
    Best regards,
    Joao Vitor.

    Hi Mick,
    Thanks for your reply. However my problem is still not resolved.
    I have created a Omniportlet with lists the staff details. When I click on the staff link I am passing to parameters as follows
    http://servername/pls/portal/url/PAGE/CCM_MIS_PORTAL/TUTOR_HOME/Course_Info?Param1=10017031/M2523&Param2=001434
    on the receving page I have a omni portlet which must receive these 2 parameters and pass it on to the query and filter the results.
    On the received page I have created 2 page parameters (Param1 and Param2)
    I have assigned these 2 paramaters to the portlet paramers through page parameters' section
    on the omni portlet in the query I have created 2 bind variables (p1, p2) and the default value of the bind variable is set using ##Param1## and ##Param2## so the received values from page is passed to to bind variable and hence to the query.
    However the omni portlet is not received the parameters and I can not figure out whats wrong?
    Is there any problem with my URL (guide says I should use relative URL)
    Please help

  • Passing URL parameters to PL/SQL Pages

    Hi,
    I want to pass parameters from url to the PL/SQL page . How is this possible?
    http://myserver/pls/portal/url/PAGE/page_group/page/testplsqlpage?course_ref=##COURSE_ID##&staff_ref=##STAFF_ID##
    I will to received course_ref and staff_ref in the PL/SQL page and pass the values to SQL query so that its filtered.
    Can pls anyone guide me? If there is any alternate way or there is sample code pls let me know
    Many Thanks
    Ganesh

    Hi Mick,
    Thanks for your reply. However my problem is still not resolved.
    I have created a Omniportlet with lists the staff details. When I click on the staff link I am passing to parameters as follows
    http://servername/pls/portal/url/PAGE/CCM_MIS_PORTAL/TUTOR_HOME/Course_Info?Param1=10017031/M2523&Param2=001434
    on the receving page I have a omni portlet which must receive these 2 parameters and pass it on to the query and filter the results.
    On the received page I have created 2 page parameters (Param1 and Param2)
    I have assigned these 2 paramaters to the portlet paramers through page parameters' section
    on the omni portlet in the query I have created 2 bind variables (p1, p2) and the default value of the bind variable is set using ##Param1## and ##Param2## so the received values from page is passed to to bind variable and hence to the query.
    However the omni portlet is not received the parameters and I can not figure out whats wrong?
    Is there any problem with my URL (guide says I should use relative URL)
    Please help

  • Page parameters not working with Omniportlet in 10G

    Hi,
    I have a fresh install of 10G (infrastructure and Portal in separate homes on the same machine). I can create an SQL-based Omniportlet with parameters, and it works fine. When I create page parameters, I cannot map them to the Omniportlet parameters. The "Portlet Parameter Values" section shows my portlet as "No Parameters".
    I have verified that my page group has parameters and events enabled.
    Here is what I'm doing:
    1. Fresh install of 10G with Infrastructure and mid-tier in separate homes on the same machine.
    2. Log in as orcladmin
    3. Create new page group. Open page group properties and click on 'Configure' tab. Verify that parameters and events are enabled. Click Close button.
    4. Add Omniportlet to default region.
    5. Click 'Define' omniportlet
    6. Choose SQL. Enter SQL text 'SELECT table_name FROM user_tables WHERE table_name LIKE :tbl'
    7. Define database connection
    8. Define bind variable Tbl as ##Param1##
    9. Set default value of Param1 to %, and check 'Customizable'
    10. Click 'Next' and accept all defaults until the wizard is done.
    11. See results of query on page.
    12. Click 'Properties' on page header
    13. Click 'Parameters' tab.
    14. When the tab opens, the omniportlet is listed as (no parameters) in the Portlet Parameter Values section.
    15. Create page parameter tbl_name, set default value to %
    16. Cannot map page parameter to portlet parameter, because my portlet is listed as (no parameters)
    Is there anything I can do to make this work?
    Thanks

    Hello
    This is a known issue, that could be fixed easily:
    you need to refresh the OmniPortlet provider from the navigator.
    Regards
    Tugdual Grall

  • Portlet Chart error message with page parameters

    I have a perplexing problem.
    We're using portal 9.0.4. I've created a chart from a sql query using the portal builder tools. It's a complicated query with two parameters that have default values defined. The chart will run as a portlet from the portal provider edit page just fine.
    I can place the chart portlet on a page without hooking up the page parameters and it runs just fine from the default values. However, when I hook up the page parameters to the chart parameters from the page properties area, the chart no longer works. It displays "Error Message" in the portlet header area with no other error messages. The other portlets continue to work just fine.
    I've double checked the page parameter settings. I've built a second chart, and the same thing happens when I hook up the page parameters to the portlet on the page.
    I traced through the portlet code in the generated package, and it seems to be failing on this statement:
    l_cursor := PORTAL.wwv_user_utilities.bind_query (
    p_module_id => 1182363588,
    p_query => l_query,
    p_arg_names => l_arg_names,
    p_arg_values => l_arg_values,
    p_bind_vars => PORTAL.wwv_standard_util.string_to_table2('p_grp_id:p_org_id'),
    p_var_types => PORTAL.wwv_standard_util.string_to_table2('ARRAY:ARRAY'),
    p_bind_null => true,
    p_mode => p_mode,
    p_prefix => p_reference_path);
    If I comment this line and everything after it out, the portlet runs, although none of the chart is displayed the portlet header shows the correct title. If I uncomment this particular line, then the portlet errors out with a "Error: The listener returned the following Message: 404 Not Found" message.
    Anyone have any ideas please??

    Look at your code. Count <body> tags. How many do you
    get? Yeah - that's
    wrong. You didn't follow the video....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "camelbreath" <[email protected]> wrote in
    message
    news:g680gh$3c$[email protected]..
    > I'm not sure if this is a PM issue or a DWCS3 issue. The
    only way to find
    > out
    > is to ask.
    > I have gone through the process of creating a a library
    item of a
    > PopMagic menu according the the video provided by P7.
    Works well.
    > Then I added the library item to an existing DWCS3
    template and saved
    > it. When I attempt to create "new from template" page
    from the template
    > menu, I get this error message
    >
    >
    http://www.jdcdemo.com/blf/error.html
    >
    > If I do the same with a template without the menu, the
    > error message goes away.
    >
    > If I create a page with from a template where I've left
    an editable
    > region for the menu and then insert the menu and save
    the page, I also
    > get the error message, but the page seems to work ok.
    >
    > Since I can't create a new page with the template, I
    opened it and saved
    > it as
    > a page:
    >
    >
    http://www.jdcdemo.com/baim/BLF8/error-message.html
    >
    > What is going on here and is there a fix?
    >
    > Thanks,
    > Joe
    >

  • Portal902 - DB portlets that use page parameters

    Hi all.
    I am trying to create a plsql portlet that will read the page parameters. I believe that this is the idea, right? Well, I don't know how to do it. Can someone tell me how to do it? Or tell me where to find an example?
    Thanx, Mere.

    Hi all.
    I am trying to create a plsql portlet that will read the page parameters. I believe that this is the idea, right? Well, I don't know how to do it. Can someone tell me how to do it? Or tell me where to find an example?
    Thanx, Mere. I had an example in which parameters were passed from one report to another:
    Report 1: summary report
    SQL report, on scott.dept:
    select htf.anchor('http://<server>:<port>/servlet/page?_pa
    geid=<page id>&_dad=<dad>&_schema=<schema>&_mode=3&dept='||deptno, deptno)
    aaa, dname, loc from SCOTT.dept
    The url here is the page url with extra parameter for dept, the bind
    variable in the detail report
    Report 2: detail report
    SQL report, on scott.emp
    select * from scott.emp where deptno = :dept
    Add the following PL/SQL code in the "before displaying the page"
    <portal schema>.wwv_name_value.replace_value(
    l_arg_names, l_arg_values, p_reference_path||'.dept',
    <portal schema>.wwv_standard_util.string_to_table2(nvl(get_value('dept'),
    10)));
    Build a page and include these 2 portlets, then when you click
    on the link of the summary report, the page will be refreshed,
    and the detail report changed based on the data from the summary report.
    Hope this helps

  • Showing selected parameters values on each page in SSRS

    Hi All,
    I have a SSRS report with multi-selection parameter..Basically it's a summary report of sales and based on country parameter I have to show data.
    let say Country is the parameter and below are the values of the Country parameter list...
    Parameters list:
    All
    Australia
    England
    Canada
    Italy
    Parameter: All
    1) If I select 'All' in the parameter list then
    In 1st page I should see data related to Australia and display parameter value as Australia in the left side top corner of the report.   In 2nd page I should see data related to England and display parameter value as England in the left side top
    corner of the report.   In 3rd page I should see data related to Canada and display parameter value as Canada in the left side top corner of the report.  In 4th page I should see data related to Italy and display parameter value as Italy in
    the left side top corner of the report.  In 5th page I should see data related to All and display parameter value as All in the left side top corner of the report.
    2) If I select Australia and England in the parameter list then
    In 1st page I should see data related to Australia and display parameter value 
    as Australia in the left side top corner of the report.   In 2nd page I should see data related to England and display parameter value as England in the left side top corner of the report.
    3) If I select Italy in the parameter list then
    In 1st page I should see data related to Italy and display parameter value 
    as Italy in the left side top corner of the report.
    It should look like this..I need help in showing parameters (selected parameter) individually on each page.
    Page-1
    Parameter: Australia ( how to show Australia on 1st page)
    Product
    Amount
    Country
    Prd1
    100
    Australia
    Prd2
    200
    Australia
    Prd3
    300
    Australia
    Prd1
    340
    Australia
    Page-2
    Parameter: England ( how to show England on 2nd page)
    Product
    Amount
    Country
    Prd4
    400
    England
    Prd1
    125
    England
    Page-3 
    Parameter: Italy ( how to show Italy on 3rd page)
    Product
    Amount
    Country
    Prd2
    250
    Italy
    Prd3
    250
    Italy
    Create Table:
    Create Table Sample(
    Product varchar(10) Not Null,
    Amount Money null,
    Country null
    Insert Statement:
    Insert into sample (Product,Amount,Country) Values ('Prd1',100,'Australia')
    Insert into sample (Product,Amount,Country) Values ('Prd2','200,'Australia')
    Insert into sample (Product,Amount,Country) Values ('Prd3','300,'Australia')
    Insert into sample (Product,Amount,Country) Values ('Prd4','400,'England')
    Insert into sample (Product,Amount,Country) Values ('Prd5','480,'Canada')
    Insert into sample (Product,Amount,Country) Values ('Prd1','340,'Australia')
    Insert into sample (Product,Amount,Country) Values ('Prd3','290,'Canada')
    Insert into sample (Product,Amount,Country) Values ('Prd1','125,'England')
    Insert into sample (Product,Amount,Country) Values ('Prd2','250,'Italy')
    Insert into sample (Product,Amount,Country) Values ('Prd3','250,'Italy')
    Thanks in Advance,
    RH
    sql

    Hi sql9,
    According to your description, you have a report with a parameter for selecting countries. Now you need to display records for one country and show the country name on each page. Right?
    For this requirement, we need to add a parent group (Group on Country) so that we can set page break for each country. Also, we want to display the country name on each page. This country name is group name, not the parameter because the parameter contains
    all countries that we have selected. In this scenario, we just need to set the group name as page name, then display the Page Name (Build-in Field) in report header. You case has been tested in our local environment. Here are steps and screenshots for your
    reference:
    1. Create a table in report. Set detail rows group on Country. Set page break between each group instance.
    2. Create a parameter for filtering data. Set Filter on tablix.
    3. Go to Row Groups, select group Country. In Tablix Member Properties grid, go to Group->PageName. Put “=Fields!Country.Value” in expression. 
    4. Create a textbox in report header. Put Page Name (in Build-in Fields) into the textbox.
    5. Save and preview. It looks like below:
    Reference:
    Pagination in Reporting Services (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
      

  • Passing parameters from one OAF page to another OAF PAge

    Hello
    I was wondering, if there is a possibility of passing request parameters from one page to another page in EBS ( E-Business Suite).
    I tried using the following
    a) PageContext.putParamater ( "MyParamater", "ParamaterValue")
    b) I addded the above line of code by extending an page controller of the OAF page and personalized the page
    When I am trying to retrieve the value by getParameter() in the next page. I am also unable to get access to the parameter in the next page.
    I am trying the above code while trying to create expenses in I-Expense module...I would like to pass the ReportHeaderId from one page to another page for customization purposes. I Am not able to get ReportHeaderId in the ReviewPAge...There are no Business Objects in the Review page...hence trying the putParameter idea.
    Any help will be highly appreciated
    Thank You

    What is the source of the parameter? If the source is a VO, you can use the method I have specified in my previous post regarding updating the button properties. For example, you can include the param in the destination URL of the button as such:
    OA.jsp?page=/xyz/oracle/apps/.../myPG&retainAM=Y&addBreadCrumb=Y&myParam={@ParamSource}
    where ParamSource is an attribute from a VO.
    You can get this value via oapagecontext.getParameter()
    Can you please give details as to the source of your params (param-1, param-2, etc.). This will help in providing you suggestions.
    Regards,
    LC

  • Pass parameters from JSP Dyn Page to WDJ Application

    Hi,
    I am trying to pass parameters from my JSPDyn Page to WDJ Application.
    I am using NWDS 7.1 EHP1
    My code is :
    function to_WEBDYNHK()
          EPCM.relaxDocumentDomain();
          EPCM.doNavigate
        ('ROLES://pcd:portal_content/Himanshu.Himanshu/TestDynUIApp?DynamicParameter="hkparam%3Dqwertyuio"');
    This method is being called on click of a button.
    hkparam is the parameter in question.
    The JSPDyn page is an iView and the WDJ application is a page and both have been assigned to a role.
    In the properties of the WDJ Page, I have removed DymanicParameter from "Do not Forward These Parameters To Web Dynpro" property.
    However I am getting null as the value of hkparam in my WDJ application.
    The code used is :
    IWDRequest request = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
           String param1= request.getParameter("hkparam");
    What seems to be missing here.
    Please help.
    I went through the documentation on SDN but it does not seem to help.
    TIA,
    Himanshu

    Hi Himanshu,
    Try this code.
    EPCM.doNavigate("ROLES:portal_content/Himanshu.Himanshu/TestDynUIApp?hkparam=Dmypass1123")
    if the parameter is hkparam and the value to be passed is Dmypass1123. You need not change any design time property of the WD page, and WDProtocolAdapter should retrive the parameter.
    Regards,
    Vishweshwara P.K.M.

  • How to trace an ApEx page processes(anonymous PL/SQL) submited by any user?

    Dear Friends;
    can I trace an ApEx page processes (anonymous PL/SQL code step by step) submitted by any user?
    could you explain in detail, please?
    regards
    Siya
    Edited by: sak on Feb 3, 2012 1:07 AM

    Hello
    You can get user id using select v('APP_USER') FROM DUAL or simply :APP_USER.
    Zulqarnain
    MaxApex Hosting
    http://www.maxapex.com

  • How to print a page written in pl/sql web toolkit

    Dear members,
    I have a time sheet page created using pl/sql web toolkit. I want to submit this page to the printer.
    Please let me know, if there are any examples or documents on this one.
    Thanks
    Murugan

    I try to show/hide a div depending on the occurence of errors. I resolved this problem by doing this in javascript.
    function showEdu(){
    $("#edu").animate({ height: 'show', opacity: 'show' }, 'slow');
    $s('P6_EDU_SHOWN','Y');
    function hideEdu(){
    $("#edu").animate({ height: 'hide', opacity: 'hide' }, 'slow');
    $s('P6_EDU_SHOWN','N');
    function checkEduError(){
    if($("span").hasClass("errTxt") == true)
    {showEdu();}
    else
    if($v('P6_EDU_SHOWN') == 'Y')
    {showEdu();}
    else
    {hideEdu();}
    }

  • Get page id in pl-sql

    Hi, we need to know how get the page id of the actual page of the portal in a pl-sql procedure, we have read some post about it but neither goes in a pl-sql.
    Actually we are using the following code:
    p_reference_path := p_portlet_record.reference_path;
    p_folder_id := wwpro_api_parameters.get_value ('p_folder_id',p_reference_path);
    if p_folder_id is null then
    v_url := p_portlet_record.page_url;
    v_position1 := instr(v_url,'/',-1,1)+1;
    v_position2 := instr(v_url,'?',-1,1);
    if v_position2 = 0 then
    v_position2 := LENGTH(v_url) +1;--instr(v_url,'/',1,2);
    end if;
    v_length := v_position2 - v_position1;
    --v_page_name  := upper(URLDECODE(substr(v_url,v_position1,v_length)));    
    --SELECT WWSBR_ALL_FOLDERS.ID into p_folder_id  FROM PORTAL.WWSBR_ALL_FOLDERS WWSBR_ALL_FOLDERS WHERE WWSBR_ALL_FOLDERS.CAID=153 and upper(WWSBR_ALL_FOLDERS.NAME) = v_page_name;
    v_page_name := URLDECODE(substr(v_url,v_position1,v_length));
    SELECT WWSBR_ALL_FOLDERS.ID into p_folder_id FROM PORTAL.WWSBR_ALL_FOLDERS WWSBR_ALL_FOLDERS WHERE WWSBR_ALL_FOLDERS.CAID=153 and WWSBR_ALL_FOLDERS.NAME = v_page_name;
    The problem of that code is what the portal allow to have pages with the same name if the pages are allocated in different pages.
    Thanks in advanced.
    Best Regards.

    You could use portal.wwpob_api_path.translate_path, this will translate your url and give you all kinds of information about your actual page(also pageid and siteid)

  • CurrencyString in JSP-page based on a sql-only ViewObject

    I have made a JSP-page based on a sql-only ViewObject against the hr employees table, and
    the currencyString on the page doesn't work! The <c:out value="${Row.currencyString}"/>
    makes a "*" on every row. How come that this only happens to sql-only ViewObjects? The sql
    in the view is simply "select * from employees", and I'm using the 10g production build 1605.

    You just have to make sure that the view object has a Key Attribute, then the indicator will show appropriately. The key is required so that currency can be tracked.
    This is documented in the help topic "About the Oracle ADF Bindings" in the section "About the Iterator Binding"

  • Navigate from tree selection to parameterized report on same page

    I have a simple tree showing the departments and roles within our organization.
    I have a simple report showing the skills required for each node in the tree, sometimes general skills that apply to whole department, sometimes specialized skills for the roles within a department.
    I've created a page that has two regions. I managed to get the tree on the left and report on the right by including the two regions in the same display point and changing the column of the report to "2".
    When I click a node in the tree, I want the ID behind the selection to be passed to the simple report. The report will show the skills mapped to the selected node in the tree.
    But since the report is on the same page, I imagine this might be a bit tricky. When the user clicks a node, the whole page would have to be refreshed, preserving the tree expanded to the point where the user clicked, and running the report with the now filled ID.
    In order to do this, I guessed I'd need an application item that preserved state. I created item F1000_OU_ID.
    The SQL for the tree is :
    select "OU_ID" id,
    "PARENT_OU_ID" pid,
    "OU_NM" name,
    'f?p=&APP_ID.:1:&SESSION.::NO::F1000_OU_ID:'||"OU_ID" link,
    null a1,
    null a2
    from "#OWNER#"."TR_OU"
    order by seq_num
    The SQL for the report is:
    SELECT s.skill_type,
    s.skill_nm
    FROM tr_skill s,
    tr_ou_skill os
    WHERE s.skill_id = os.skill_id
    AND os.ou_id = :F1000_OU_ID
    Under the report region, I gave it a conditional display directive to not display until F1000_OU_ID was not null.
    That's as far as I've gotten. The page runs. The regions display where I want them. But when I click nodes in the tree, the page blinks and nothing happens to the report. What am I missing Aces?
    bc

    200 views and 1 reply? Come, come, Aces, you can do better than that!
    Leo, thanks for taking the time to look at it. As I understand it, the "bind" or "host variable" syntax of preceding colon, e.g. ":F1000_OU_ID" is used when referring to application or page items from a SQL Query. The "substitution" syntax of preceding ampersand and following period, e.g. "&F1000_OU_ID." is used when referring to application or page items from things like HTML text.
    To verify this, I used one of the blank pages in my app, page 5. I created two regions, one HTML text, one a report based on a SQL Query.
    For the HTML text, I typed in
    Here is the application item value &F1000_OU_ID..
    For the report's SQL query, I typed in
    SELECT 'OU_ID selected is ['||:F1000_OU_ID||']' text
    FROM dual
    These both work as expected. After I have clicked on a node in Page 1's tree, the F1000_OU_ID is set to a value and that value then appears on page 5 in the two test regions mentioned above.
    So I have no trouble passing stateful values between different pages. My problem, perhaps poorly worded in the original post, is how to "pass" the selected value to the same page, since clicking a link in the tree refreshes the page it is on, in order to pass the value to the report region on the same page.
    If anyone has done this before, please chip in or point me to the thread. Various searches in the forum were just coming up with too many non-relevant results, so I thought I'd ask the experts. Thanks in advance!
    bc

  • To pass the page parameters to a form in portal

    Hi,
    I am trying to develope a simple page using portal which contains
    1. Simple parameter form.
    2. Form that accepts the data from the simple parameter form.
    I want to pass 2 page parameters to this form(no.2)
    Is it possible to pass the page parameters to a form in portal?

    You can see a simple example of setting parameters here:
    http://www.patrickhaston.co.uk/Portal/parameters.html
    And to use them in a form:
    http://www.patrickhaston.co.uk/Portal/webplsqlapp1.html
    Hope this helps.
    Patrick

Maybe you are looking for