Pass Value by Form Based on Procedure in Target Frame

I made a form based on procedure and trying to pass all variables to a target frame called "dest2". I got the sample code on this forum and used window.location, but then I figured it can't pass values to another frame. I tried window.open, but can't seem to figure out how to code it.
Basically on the page, it has the portal form using stored procedure, and a IFRAME named "dest2".
The detail my stored procedure is:
====================
Create or Replace Procedure WM.TEST
p_from_date IN VARCHAR2,
p_to_date IN VARCHAR2,
p_desformat IN VARCHAR2,
as
begin
htp.p('<script>');
htp.p('window.location="http://domain/portal/page?_pageid=1063,801014&_dad=portal&_schema=PORTAL&p_from_date='||p_from_date||'&p_to_date='||p_to_date||'&p_p_desformat='||p_desformat||'"');
htp.p('</script>');
end;
===============
Does anybody know how to modify this procedure to pass value to target frame = "dest2" ?
Thanks,
Sal

Hi,
For documentation purpose, you can read Oracle9iAS Portal Bible -
they have a complete chapter on creating forms based on stored
procedure.
Hope this helps.
Regards,
Jatinder

Similar Messages

  • Can't post multiple values using forms based on procedure

    I want to post multiple values from form based on procedure. Is it possible?
    I've tried following steps:
    - create LOV with Multiple Values format
    - create form based on procedure
    - in Formatting and Validation page choose required item
    - select item type - combobox, enter input height = 5
    - select my LOV for item
    after creating form I get listbox, but selecting multiple values (with Ctrl or Shift key) not working...
    what's wrong.
    I'm use portal 9.0.2.2.22

    Hi,
    It is not possbile right now with Portal Forms to submit multiple values to a field.
    Thanks,
    Sharmila

  • How to pass value in array to another procedure?

    Hello.
    I have created application by Developer form9i.
    And I have some problem about passing value in array to another procedure.
    My code is :
    PROCEDURE p_add_array (col_no in number,
    col_val in varchar2) IS     
    type xrecord is record(col number,vcol varchar2(1000));
    xrec xrecord;
    type varraytype is varying array(42) of xrecord;     
    xvartab varraytype := varraytype();
    alert number;
    BEGIN
    set_application_property(cursor_style,'busy');
    xrec.col := col_no;
    xrec.vcol := col_val;
    xvartab.extend(1);
    xvartab(col) := xrec;
    EXCEPTION
    when others then
    set_application_property(cursor_style,'default');
    alert := f_show_alert('!Error ORA-'||
    to_char(DBMS_ERROR_CODE)||' '||
    substr(DBMS_ERROR_TEXT,1,240),
    'al_stop');          
    END;
    And I want to have
    PROCEDURE p_print_arrey is
    BEGIN
    END;
    So how to bring value of xvartab( ) in p_add_array to use in p_print_array?
    Anybody please help me solve this ploblem.

    Hi,
    Instead of declaring the array locally within the procedure (i.e. p_add_array), define it in the package specification (i.e. Under Program Units).
    -- Shailender Mehta --

  • Passing values to form bean string array from dynamic added textboxes

    Hi,
    I am unable to pass values to form bean string array from a jsp in which I have incorporated dynamically adding of textboxes in javascript.
    I have given add/delete row option in the jsp. If there is single row, this is working fine. But after adding a row, I am not able to either do any validations on added textboxes or pass the values to the String array form bean variable.
    code snippet:
    var cell6 = row.insertCell(4);
    var element5 = document.createElement("input");
    element5.type = "text";
    element5.className = "formtext1";
    element5.size = "5";
    element5.value = "00.00";
    element5.name= "qty"; // this is a string array of the form bean.
    element5.onchange=function() {checkNumeric(this);};
    cell6.appendChild(element5);
    <html:text styleClass="formtext1" property="qty" value="" size="5" styleId="qty" onchange="checkNumeric(this)"/></td>
    form bean declaration
    private String[] qty; Please help.
    Edited by: j2eefresher on Jan 12, 2010 11:23 PM

    Shivanand,
    There's no need to post that much code when you could create a very short test case that demonstrates only the problem you are having.
    You're using &NAME. notation on something that isn't a page or application item. You can't reference PL/SQL variables that way (or any other way) outside the PL/SQL scope. For your situation, you could create a page item named P55_DOCID and assign it a value in the PL/SQL process (:P55_DOCID := DOCID;), then reference &P55_DOCID. in HTML areas like the success message.
    Scott

  • Passing values to Forms

    I created a report and a form in 9ias portal. I want to pass a value from the report to the Form (not the Rowid). Can any body let me how can I do that?
    thanks,
    ajay

    DeltaGeek wrote:
    BarryC wrote:
    Thank you.
    Do you happen to know of any tutorials/examples showing various methods of passing values between forms?The same way you pass values anywhere else. When you create your child form, give it a reference to the parent form or references to the data that will be changed. If you feel like making your code more modular, create a class specifically to hold the entered data and be passed anywhere you need.An application context, in effect

  • Problem passing OUT parameters form based on stored procedure to another form?

    Hello,
    I am unable to pass parameters of type OUT from a form based on a stored procedure to another form.
    However, I am able to pass parameters of the type IN to the other form.
    This is the code that I have under the heading
    On successful submission of a form, execute this PL/SQL block or PL/SQL procedure:
    declare
    v_partno varchar2(100);
    v_partdesc varchar2(200);
    blk varchar2(10):='DEFAULT';
    v_names varchar2(1000);
    v_values varchar2(1000);
    begin
    v_partno:=p_session.get_value_as_varchar2
    (p_block_name=>blk,p_attribute_name=>'A_PART_NO');
    v_partdesc:=p_session.get_value_as_varchar2
    (p_block_name=>blk,p_attribute_name=>'A_PART_DESC');
    v_names := '_moduleid:_show_header:pnumber:pdescription';
    v_values := '1325575336:YES:' || LTRIM(TO_CHAR(v_partno)) || ':' || LTRIM(TO_CHAR(v_partdesc)) ;
    PORTAL.wwa_app_module.link (
    p_arg_names => PORTAL.wwv_standard_util.string_to_table2(v_names),
    p_arg_values => PORTAL.wwv_standard_util.string_to_table2(v_values));
    end
    Info:
    1. Passing PART_NO (IN parameter) and PART_DESC (OUT paramter) to another form.
    2. After hitting the submit button, the second form comes up, but with only the PART_NO(type IN) field completed. The PART_DESC(type OUT) field did not get passed to the second form.
    3. The corresponding fields in the second form are pnumber & pdescription.
    4. FYI - I can see all the OUT parameters correctly, if I don't try to pass control to the second form.
    5. Portal 9.0.2 ( the version that ships with IAS 9.0.2)
    Any help would be greatly appreciated. I have been stuck here for a while now!
    Dev

    Re: Error
    Passing OUT parameter to another form.
    You cannot retrieve the value of the OUT parameter from the session object because after executing your procedure,
    the value passed out using the OUT parameter is not loaded in the session object.
    But you can still achieve what you are trying in the following way.
    Let's assume that your procedure has the following str :-
    procedure proc1 (p_in in varchar2,
    p_out out varchar2)
    is
    begin
    /* your processing statements
    end;
    Say, the name of the field, in the 2nd form, where you need to pass the out parameter value is VALUE_FROM_OUT.
    1> Edit the form on procedure proc1
    2> Select the submit button in the left frame and for the PL/SQL button handler choose Submit action.
    3> In the adjacent textarea, comment out the doSubmit statement and use code given below :-
    declare
    l_p_in varchar2(32767);
    l_p_out varchar2(32767);
    l_url varchar2(2000);
    begin
    l_p_in := p_session.get_value_as_varchar2(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_P_IN');
    execute immediate
    'begin <schema>.proc1(:b_in,:b_out); end;'
    using in l_p_in, out l_p_out;
    l_url := 'http://<host>:<port>/pls/<dad>/<portal-schema>.wwa_app_module.link?p_arg_name=_moduleid&p_arg_values=<module_id>&p_arg_names=VALUE_FROM_OUT&p_arg_values='||
    <portal-schema>.wwv_standard_util.url_encode(l_p_out);
    <portal-schema>.wwa_app_module.set_target(l_url,'CALL');
    end;
    NOTE :
    ======
    In the code given above, replace
    <schema> with the schema name that owns the procedure proc1
    <host> with webserver host
    <port> with the port of your webserver
    <dad> with the portal dad
    <portal-schema> with the name of the portal-schema
    <module_id> with the module of the 2nd form i.e. where you need to pass the value of the out variable.
    You will have to grant execute privilege on procedure proc1 to your application schema,
    if the procedure proc1 lies in a schema other than the application schema.
    4> Finish editing the form.

  • Trapping exceptions/error messages on form based on procedure

    I am trying to display meaningful error messages when various exceptions arise. I have created a form based on a procedure and the procedure works and returns an exception where I want it.
    I have been trying to use the PL/SQL Button event handler to return an error message to the user, but have not succeeded. I have tried:
    doSubmit;
    exception
    when others then
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => '_STATUS',
    p_value => 'my error message';
    (I have run this code both with a return at the end and not.)
    This runs, but this return a page that says:
    Error: WWV-0000.
    (It does not display 'my error message'.)
    I have also tried, from the Portal FAQs:
    doSubmit;
    exception
    when others then
    wwa_app_module.set_target('myschema.MY_ERRORS.SHOW?p_arg_names=p_errcode&p_arg_values=-1',
    'GO');
    where my_errors is a dynamic page that displays an error message when you pass it a value, in this case, -1.
    I get the following error message from this code:
    PLS-00201: identifier 'WWA_APP_MODULE.SET_TARGET' must be declared
    I did find some discussions on problems with exceptions when you have a form based on a procedure, but these were from 2001. Any help with this or directions to documentation would be greatly appreciated.

    I worked out one answer: the code provided by Oracle for the second example omitted the portal schema qualifier on the wwa_app_module. It should be (for 10g release 2, at least)
    PORTAL.wwa_app_module.set_target('myschema.MY_ERRORS.SHOW?p_arg_names=p_errcode&p_arg_values=-1',
    ^^^^^^^^^^
    'GO');
    This worked, and returned the custom error message.
    I still can't figure out why the p_session.set_value returns an error message that's just WWV-0000, but I would like to. Any help, even just what page in what document to look at would be appreciated.

  • Calling a report from a form based on procedure

    I created a form based on a procedure.
    It is a entry form where the user is selecting or enters data then on submit I must display the report based on selected data.
    I know I can simply create a report with all bind variable and do the job.
    My question is what is the syntax to call the report from the procedure for the selected parameters values.
    Thanks
    Lawrence

    If you want to display other HTML page after successful submission, you need to use
    either go or call method.
    I created a form on SCOTT.EMP and a report on SCOTT.EMP and the report accept a parameter for
    the deptno. Here is my on successfull submission code:
    declare
    l_dept number;
    l_url varchar2(2000);
    begin
    l_dept := p_session.get_value_as_number('DEFAULT', 'A_DEPTNO', 1);
    l_url := 'scott.rpt_mask_1.show?p_arg_names=emp.deptno&p_arg_values='&#0124; &#0124;l_dept;
    go(l_url);
    end;
    null

  • Passing values between forms

    Hi,
    I have a scenario where Form A invokes Form B (also passes some values while invoking) and goes to the background. After the user completes the operations on Form B it closes and I need to pass some values back to Form A.
    How do I pass the values back to Form A which is already open?
    Thanks.

    Hi,
    Read about the Global Variables. You can set values from FORM B and access in FORM A.
    -Ammad

  • Form based on Procedure - coding methods

    I would like to create a Portal Form based upon a stored
    procedure. I can't seem to find any documentation which
    describes the necessary procedural functions.
    The form requires standard select, update, delete
    capabilities. How does that the procedure 'know'
    which operation is being requested by the Form ?
    Does anyone have a sample procedure they could include
    in the reply ?

    Hi,
    For documentation purpose, you can read Oracle9iAS Portal Bible -
    they have a complete chapter on creating forms based on stored
    procedure.
    Hope this helps.
    Regards,
    Jatinder

  • Performance Form based on procedure vs based on table/view

    When we design our form, and want to optimize the performance, we came to a question. Will the performance of a form based on a procedure is better or a form based on a table/view is better? And why is it better? or worse?

    Hello,
    For me, the question is not "is the stored procedure based block is faster than table based block ?", but "do i use the DML array functionality with table based block?"
    If you do not use DML array functionality, then you generate as many roundtrips as you get raws in your block.
    With stored procedure based block, you transmit a pl/sql table of record to the procedure.
    Anyway, you could do some tests to compare the 2 solutions.
    Francois

  • BSP passing value from Form of a page to another page

    Hi experts
    I need you helps for some issue!
    I've create a bsp page with a form with an inputField and now I need to retrieve the value inserted by the user and pass it to another page.
    Can you explain me how I've to do?
    Second question is if is possible to use the inputfiled in a pop-up page and then pass the value to the first page.
    I've noticed than the first page is not refreshed when I try to pass the value of the other page.
    Tahnk's!
    alessandro

    Hi Alessandro,
    There are two approaches for doing this.
    1st approach has been mentioned below.
    2nd approach is: I am assuming you are working on Web-IC if its right then this approach is valid:
    you are using some attributes from a structure to show the input fields on the screen so what you can do is, in the IP_INBOUNDPLUG method of the new page you can create insatance of the previous page structure and then you can set these values to the new structure of the new page by saying set_attributes.
    Hope so it will help you:)
    Regards
    Sandeep

  • Passing values between forms!  Help please!!!!

    I'm stuck. I don't know how to pass a value from one form to the other, and automate a task. For example, I created form1 and from that form1 I want to pass a value to form2...then I want in form2 to query the form2 so it will bring up the complete record of the new value.
    I thought if i used javascript code below it would work but I kept getting that some variable were undifined
    Form_name.Name_of_input_box.value
    that would give me the value of the inputbox. But when i tried doing this...my Form_name was undefined? How do i get the actual name of the form?(i looked that source code when the form was generated but the form name it provides is incorrect or im reading it wrong)
    Please any help or comments are greatly appreciated

    I worked out an example for you:
    Form1 is a form on scott.dept
    Form2 is a form on scott.emp
    When you enter a value for deptno and click on next, it brings up Form2 with the values.
    Follow these steps:
    1. Create a new button in Form1. Call it NEXT.
    2. Select 'Custom' for the PL/SQL button event handler and enter this code:
    declare
    l_deptno number;
    l_url varchar2(2000);
    begin
    l_deptno := p_session.get_value_as_number(p_block_name=>'DEFAULT', p_attribute_name => 'A_DEPTNO');
    l_url := '<portal_schema>.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=<module_id of form2>&p_arg_names=deptno&p_arg_values='||l_deptno||'&p_arg_names=_deptno_cond&p_arg_values='||<portal_schema>.wwv_standard_util.url_encode('=');
    <portal_schema>.wwa_app_module.set_target(l_url, 'CALL');
    end;
    Thats it!!
    Run the form, enter some value for deptno and click "next".
    You'll see the first employee in the dept 10 in Form2

  • Passing value from Forms to another Portal Object

    Hi,
    I created a Portal form and a customised button to display another form ,but i need to send the value of one of the field in the URL. write now i call the other form in the (OnClick)Java Event Handler of the Button , but it's not recognizing the variable i declare for the filed value
    Thanks.

    Hi,
    I am doing something similar to what you have described. I have a custom login form with a hidden field(not login/password) which I need to pass to the next form. I tried calling the form like you have explained, but it's not working. The control goes to
    http://portalhost:7777/pls/portal/!PORTAL.wwa_app_module.accept
    and it gives a page not found error.
    Where do I need to place the pl-sql code? I have tried pasting it in the after processing section in the Additional PL/SQL Code tab, as well as in the Submit section of the PL/SQL Button Event Handler, for the Login button. Both don't work...
    Please help!
    Thanks,
    Somya

  • Passing value from form to form

    Hi,
    I cannot make any modifications in to an existing form at this time and i have all the informations about this form. the problem is i have to get one field value which is mouse selected by user in that particular form into a new form which i'm working on. Is there any way to do this.......... Thanks

    Is it a logical question?
    How can you make something work differently without changing something?
    Need to think about changing the form either with Global variables or parameterized Forms.
    Thanks and Regards,

Maybe you are looking for

  • Links to and from a Flash video?

    (Sorry for the long post, trying to explain in detail what I'm looking for ...) Maybe you guys can tell me if this is possible using the current version of Flash (I will not be doing this myself, but I need to know if Flash is the way to go). 1) Embe

  • Retrofit issue

    Hi Experts, We have created TR in SE2:300 (SE2K900212) and after releasing it, we have got Transport Of Copies (SE2K900214). Now object which is relevant with Zpackage25 under this TR, we want that to move to SE2:200 client through automatic retrofit

  • I updated my payment option details for app store and was charged with Rs. 60 twice. why did that happen?

    i changed my app store from canada to india and for that i'd to update my payment option details for app store and was charged with Rs. 60 twice. once the day i added the card details. and then another one 3 days later. why did that happen? i read so

  • SAP Conversion Agent for PI 7.1 EHP 1 and Windows 2008 Support

    Hello I have read that some people were able to run SAP Conversion Agent on a PI 7.1 EHP1 Installation on Windows 2008 Sever. But in the Product Availability Matrix there is no support for 2008 yet. In the SAP Library (http://help.sap.com/saphelp_nwp

  • Safari not loading Gmail webmail page properly

    Safari's not loading the JavaScript version of the Gmail webmail site properly (what Gmail calls the "standard" version, as opposed to the HTML version).  When it loads, it shows the lefthand sidebar and top menu bar, but that's it.  The rest of the