Passing parameters from one form to another

Hi,
I'm trying to pass parameters from 1 form to another. I would be able to call the form, but the parameters are not passed to the calling form. I do not know what's the problem. Basically, the 2nd form shows up with blank values in all the fields. Below is my code. Anybody expert in this, pl. help.
By the way my 1st form is based on PROCEDURE.
declare
s_requestor           number(10);
s_customer_impact      varchar2(4000);
s_creation_date      date;
l_url                varchar2(4000);
blk               varchar2(10) := 'DEFAULT';
begin
p_session.set_value(
p_block_name => blk,
p_attribute_name => 'A_P_REQUESTOR',
p_value => 88888);
s_requestor := p_session.get_value_as_number
(p_block_name => blk,
p_attribute_name => 'A_P_REQUESTOR');
s_customer_impact := p_session.get_value_as_varchar2
(p_block_name => blk,
p_attribute_name => 'A_P_CUSTOMER_IMPACT');
s_creation_date := p_session.get_value_as_date
(p_block_name => blk,
p_attribute_name => 'A_P_CREATION_DATE');
l_url:=('/pls/portal/PORTAL.wwa_app_module.link?
p_arg_names=_moduleid&p_arg_values=1794837934&
p_arg_names=_show_header&p_arg_values=YES&
p_arg_names=REQUESTOR&p_arg_values='||s_requestor||'&
p_arg_names=CREATION_DATE&p_arg_values='||s_creation_date||'&
p_arg_names=CUSTOMER_IMPACT&p_arg_values='||s_customer_impact);
PORTAL.wwa_app_module.set_target(l_url);
end;

the way to call one form from another and pass values for parameters from the procedure is like this:
PORTAL.wwa_app_module.link (
p_arg_names => PORTAL.wwv_standard_util.string_to_table2('_moduleid:_show_header:REQUESTOR:CREATION_DATE'),
p_arg_values => PORTAL.wwv_standard_util.string_to_table2('1191314879:YES:'||s_requestor||':'||s_creation_date));
and so on.
Hope it works for you

Similar Messages

  • Passing parameters from one form to another in swings

    hi
    Could you please let me know is there any provision to pass the values between two forms in Swing..
    For Example: I have two forms : 1 Login Page and 2. Main Form.
    After Login Confirmation i want the User name to be displayed in the second form.
    Thanks in advance
    Srisha

    It seems that that is a typical servlet task, not Java Swing.

  • Getting error , while passing parameters from one page to another page

    Hello friends,
    i am getting error, while passing parameters from one page to another page, below code i wrote.
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    ArrayList arl=new ArrayList();
    EresFrameworkAMImpl am=(EresFrameworkAMImpl)pageContext.getApplicationModule(webBean);
    ERecordImpl ERecordObj=new ERecordImpl();
    HashMap hMap = new HashMap();
    hMap.put("1",ERecordObj.getTransactionName());
    hMap.put("2",ERecordObj.getTransactionKey());
    hMap.put("3",ERecordObj.getDeferredMode());
    hMap.put("4",ERecordObj.getUserKeyLabel());
    hMap.put("5",ERecordObj.getUserKeyValue());
    hMap.put("6",ERecordObj.getTransactionAuditId());
    hMap.put("7",ERecordObj.getRequester());
    hMap.put("8",ERecordObj.getSourceApplication());
    hMap.put("9",ERecordObj.getPostOpAPI());
    hMap.put("10",ERecordObj.getPayload());
    // hMap.put(EresConstants.ERES_PROCESS_ID,
    if(pageContext.getParameter("item1")!=null)
    pageContext.forwardImmediately(EresConstants.EINITIALS_FUNCTION,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    hMap,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES
    Error(71,2): method forwardImmediately(java.lang.String, byte, null, java.util.HashMap, boolean, java.lang.String) not found in interface oracle.apps.fnd.framework.webui.OAPageContext
    Thanks
    krishna.

    Hi,
    You have imported the wrong class for HashMap.
    Import
    com.sun.java.util.collections.HashMap; instead of java.util.HashMap
    Thanks,
    Gaurav

  • Passing Parameters from One Screen to Another Screen

    Hi All,
    I need to Pass Parameters from one Module Pool Screen to Another Screen.
    I have two Parameters in First screen. I don't want to use <b>Export and Import</b>
    The first screen record should sit in the Second Screen as it is.
    Please suggest me.
    Thanks and Regards,
    Prabhakar Dharmala

    An Idea,
    Create a function group, in that define global variables. Then create two function module. Pass variable from one function module and get in the another one.
    Hope this will help you to solve. If you need further help I will create and sent you a test code.
    Darshan.
    <i><b>Pl. Reward points to the helpful answer, it motivates us to answer more </b></i>

  • How to pass parameter from one form to another

    Hi,
    I have created a form based on a procedure . Now i want to pass a filed value from this form to another form . How can i do this.
    How can i pass a vlue from one form to another form in oracle portal.
    Thanks

    At last - I've managed to get this to work! Is this documented anywhere at all - I just guessed it based on other people's code!
    OK, to prove the example here is what I did:
    I have a form referencing the DEPT table.
    I created a item called 'Search' and of type button.
    I created a 'custom' PL/SQL block and added the following code:
    declare
    v_deptno NUMBER;
    begin
    v_deptno := p_session.get_value_as_NUMBER(
    p_block_name=> 'DEFAULT',
    p_attribute_name => 'A_DEPTNO');
    PORTAL30.wwa_app_module.set_target('http://server/pls/portal30/app_schema_name.EXAMPLE_SQL_REPORT.show?p_arg_names=_show_header&p_arg_values=YES&p_arg_names=_max_rows&p_arg_values= 25&p_arg_names=_portal_max_rows&p_arg_values=25&p_arg_names=DEPTNO&p_arg_values='&#0124; &#0124;LTRIM(TO_CHAR(v_deptno)),'CALL');
    end;
    Note: you need to reference the column with an 'A_' prefixing the columm name.
    I left the name 'DEFAULT' as it is.
    OK so I set this to a variable and now want to call a Report called EXAMPLE_SQL_REPORT which was created with the following code:
    select * from scott.emp where deptno = :deptno;
    The bind variable being the custom parameter for the report.
    I called the new report with the PORTAL30.wwa_app_module.set_target procedure and put in the full URL path (in this example) of the server and report.
    I hope this helps!
    John
    null

  • Pass value from one form to another (Dev 6i)

    How to pass a value/variable from one form to another called form in Oracle Dev 6i

    1. One-way communication (calling form sends information to called form)
    - using Forms :PARAMETER variables:
    OPEN_FORM / CALL_FORM (form_name, ..., parameter_list);
    2. Two-way communication
    2.1. If Forms modules runs in different database sessions
    (using "OPEN_FORMS (..., SESSION, ...);" called form runs in a new database session),
    you can use:
    - Forms global variables (:GLOBAL)
    - global record groups, created using GLOBAL_SCOPE parameter:
    rec_grp_id := CREATE_GROUP_FROM_QUERY (..., GLOBAL_SCOPE);
    - database "global" Application Context (available from Oracle 9i)
    2.2. If Forms modules runs in the same database session you can use methods in 2.1 plus:
    - library package data; with SHARE_LIBRARY_DATA parameter,
    Forms that have identical libraries attached can share library package data:
    OPEN_FORM / CALL_FORM (form_name, ..., SHARE_LIBRARY_DATA, parameter_list);
    - database package data (but, you must use get/set methods)
    - database "private" Application Context (available from Oracle 8i)
    Regards,
    Zlatko Sirotic

  • Need help in passing parameters from one page to another!

    Hi,
    I need to pass values that are retrieved from database from one page to another.
    But even when I use pageContext.putParameter(), I am not able to view the value in the 2nd page.
    Any pointers on how to pass parameters would be helpful..
    Thanks in advance!

    The requirement is on the main page there are 6 fields out of which 4 are read-only and are taken from the database and 1 is taken from database, but can be edited, and the 6th one is completly editable for the user. I am trying to pass these parameters using setForwardURL, and on the second page (Preview page, where all these fields are read-only), I am able to retrieve these parameters using pageContext.getParameters() and am able to display it as an exception but I am not able to set these into the fields using pageContext.putParameters().

  • Passing parameters from one channel to another

    Hi,
    I was wondering if it is possible to pass parameters or values from one channel to another, for ex. through JSP, etc.
    Thanks, Pablo

    try these topics
    http://swforum.sun.com/jive/thread.jspa?forumID=80&threadID=19222
    http://swforum.sun.com/jive/thread.jspa?forumID=80&threadID=23051
    and maybe
    http://swforum.sun.com/jive/thread.jspa?forumID=80&threadID=19222
    I use javaBeans or SSOToken to exchange parameters between portlets.

  • ADF: Passing parameters from one page to another using setPropertyListener

    Hi,
    I'm trying to find a simple way to pass a parameter from one page to another.
    On the first page I have a table, the second page is a history page, showing the change history of rows from the table on the first page.
    In the table on the first page there's a unique column (an order number), the value of which is never changed for a given row.
    What I would like is to be able to pass the order number from the currently selected row of the first page on to the history page, making the history page show only the history for the given order number.
    Using the task-flow for the history page, I've defined an input parameter (an order number), defined a criteria and so on. I've tested the functionality of this in the Application Module, and it seems to work.
    My problem is passing the order number from the first page to the second.
    I've created a Managed Bean, with a variable for the current order number, including accessors. On the table on the first page, I've created a contextMenu, and added an Item called "Show history" with an action that navigated from the first to the second page (a control flow I've defined in adfc-config). I've included a setPropertyListener in the "Show history" item. I've set the "From" property of the setPropertyListener to "#{row.ordernumber.attributeValue}" and the "To" property to point at the order variable in the Managed Bean. Finally, I created a new page for the history, dragged the history task flow onto this page as a region, using the Managed Bean order variable as input parameter.
    The result is this: When I bring up the context menu from a row in the table on the first page and select "Show history", I get this error: "The class 'java.lang.String' does not have the property 'attributeValue'."
    That's a bit puzzling to me, seeing as I used the Expression Builder to fill out the "From" property. I've tried using "inputValue" instead of "attributeValue", but that simply changes the error message to: "The class 'java.lang.String' does not have the property 'inputValue'."
    What am I doing wrong?
    Regards,
    Andreas

    Hi Timo and Puthanampatti,
    I actually tried something similar to what you have suggested before starting this thread, but still got an error. What I hadn't spent a lot of time investigating initially was that it gave a DIFFERENT error. But after reading Timo's suggestion, I went back to this other error and found out that it was connected to my Managed Bean. For some reason, I had made the mistake of giving the bean the same name (in adfc-config) as the actual java class. And this leads to a circular reference error (that I would only get to see when I didn't get the java.lang.String error first).
    Having fixed this, I can successfully pass my parameter from one page to another (with the "From" property of the setPropertyListener set to "#{row.ordernumber}").
    Thanks for your time,
    Andreas

  • Passing parameters From one dashboard to another dashboard

    Dear Experts,
    I am new to sap bo Dashboard,i got requirement where client want see department wise data ,for that we are using query prompt in dashboard  and the
    Prompt consist of Departments like(civil,elec,It,Fire etc) based on the selecting the department in the prompt the respective data is coming in the charts
    and there is link which goes to second level dashboard.If i select IT Department in Maindashboard and click on the link it shoud open only IT Dashboard
    in second level dashboard.In level 2 dashboard we using again Department Prompt .
    2) Another issue with query Prompt in dashboard i.e After selecting department in query Prompt i have click outside to close the selection.
    Kindly Request your suggestions.
    I am Attaching Documents for your understanding
    Thanks & Regards,
    Dhanraj

    Hi Martina
    I know about EPCF. But to be precise here, there is no iView and page. Let me tell you the exact scenario:
    This parameter passing has to be done from the Portal Logon page. If you have seen the Portal logon page, there is a form in that page. which takes you to the portal launcher. Now if i want to change the action and call my own component/JSP. and in that JSP/compoenent i want to access the parameters of the logon form.
    Can you tell me what are the exact methods in the Portal Runtime famewrok to get the form parameters (i have seen that using the getParameter() does not works) I dont want anything in Javascript.
    Regards
    Gaurav

  • How to pass values from one form to another.

    Dear all,
    i have a table A i want to double a text item and open another form B. then setting values or adding values in it. i want to close the form and open the form A. the values selected in form B. i want to send to the form A.
    please help me.
    Muhammad Nadeem

    Hi
    To send value to the form A from B, you do this action.
    1. Declare a parameter list:
    pl_id paramlist;
    2. Create the parameter list:
    pl_id := create_parameter_list('ParameterLilst_FormA');
    3. Add all value to the parameter list.
    add_parameter(pl_id, 'variable1', text_parameter, 'valueOfVariable');
    4. Open the form B and you send it the parameter list.
    open_form('B', activate, session, pl_id);
    NOTE: In there form B you might have some parameters having the same name of the variable added to the parameter list:
    e.g.: :parameter.variable1

  • How to pass data from one Form to another Form

    I am writing a Login form to allow user to access MySQL but the Authentication is taking place in another form that actually does the work
    how do I pass the username and password form the Login form to the worker form.

    1. don't do these stuffs on the UI classes, let them only be responsible for displaying UI.
    As for the passing information back and forth from separate objects (forms are classes and form instances are objects) you can read up on the various appropriate design patterns, especially those implemented in MVC models.

  • Passing parameters from one callablestatement to another

    I need to run multiple stored procedures. The first one generates a ident key and returns it as an output parameter. The remaining procs need to take the ident key from proc 1 and use it as an input parameter. When I do this I get a SQLException for an RI violation saying the row (inserted by the first call) containing the primary key (ident field) does not exist. I have had our DBA look at this and he says it should work fine. I can run the 2 stored procs, passing the output parameter from the first to the second in query analyzer and it works just fine. Here is my Java code:
    try{
    connection.setAutoCommit(false);
    callStmt = connection.prepareCall("{call insert_proc_1 (?, ?)}");
    callStmt.setString(1, "xxxx");
    callStmt.registerOutParameter(2, java.sql.Types.INTEGER);
    callStmt.execute();
    long primaryKey = callStmt.getLong(2);
    callStmt.close();
    callStmt2 = connection.prepareCall("{call insert_proc_2 (?, yyyy, xxxx, ?)}");
    callStmt2.setLong(1, primaryKey);
    callStmt2.registerOutParameter(2, java.sql.Types.INTEGER);
    callStmt2.execute();
    long secondKey = callStmt2.getLong(2);
    callStmt2.close();
    connection.commit();
    connection.close();
    return secondKey;
    } catch(SQLException e){
    connection.rollback();
    connection.close();
    return -1;
    What am I doing wrong?
    Thanks,
    Jim

    Oh never mind. I switched to another JDBC driver and the code works just fine.

  • How to pass values from one form to another form

    Hi,
    I have two forms. Say Form1 and Form2. I am having a field called employee number in form1. I have button named Next in form1.
    When the "Next" button is clicked I want to pass the employee number entered in form1 to form2 and display this number in form2.

    Hi,
    You can make use of the call/go api in the success procedure of the form. Here is a sample code.
    declare
    ticket_no varchar2(20);
    flight_no varchar2(20);
    blk varchar2(30) := 'DEFAULT';
    begin
    ticket_no := p_session.get_value_as_varchar2(
    p_block_name => blk,
    p_attribute_name => 'A_TICKET_NO');
    flight_no := p_session.get_value_as_varchar2(
    p_block_name => blk,
    p_attribute_name => 'A_FLIGHT_NO');
    go('<product_schema>.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1384225689&p_arg_names=_sessionid&p_arg_values=&p_arg_names=ticket_no&p_arg_values='||ticket_no||'&p_arg_names=flight_no&p_arg_values='||flight_no);
    end;
    This sample passes the values of ticket_no and flight_no to another form.
    Thanks,
    Sharmil

  • Pass Value From One Form to Another and Populate Join Table

    I have a table “std_controls” and a table “actual_controls”.  The standard controls table is updated with the expected business control or process.  The actual controls table is updated with the control or business process the company actually
    has in place.  These two tables may be updated at different times by different individuals.  Later I need to be able to map the actual controls to the standard controls.  I have done this before using a join query which then matched the primary
    keys and populates a new table with the joined keys.  What I would like to be able to do is this:  Have a form open, “form1” (which is where the standard controls are entered).  The user could then click a button which would open another form,
    “form2”, that listed all actual controls at that time from which they could choose.  The user could then select the actual control on “form2” they wanted to map to the current standard control on “form1”.  The user could select the actual control
    on “form2” by selecting a check box.  The effect of this mapping would populate my join table.
    I have seen other posts that describe doing something similar, but I need more help on how to actually set it up.  Thanks for your help.

    Hi jdmcleod,
    According to your description, I don’t understand clearly about your requirement.
    But I think you could access “form1”/”form2”’s control in either of “form1” or “form2”, so you could have a button in “form1” or “form2”, then in the click event get these forms control’s value (e.g. checkbox) and update the database.
    For example to access other form’s checkbox value:
    Dim f As Form
    Set f = Forms!OtherFrom
    MsgBox f.Controls("Check11").Value
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Adobe captivate multiple quizzez within a single project

    Hello I am trying to create a test that includes 6 different exams, but i want the usert to have to pass each exam with at least a 75% before they can access the next quiz. I am very new to captivate. Any help would be very appreciated. Thank you

  • VF01 -  Billing

    Hi Friends, I have a new requirement to capture the Sales Executives Code No. at the time of making the Invoice document through T-code VF01. Could you please guide me as to how to do the same. TIA. Regards, Mark K

  • CE Trial Visual Composer Missing Kit

    Hi, We have installed the CE Trial 7.1 and everything worked well. But when we try to start the Visual Composer we got 271 errors in the "Layout Editor Kit" it seems that something is missing. Has anyone received this error too? What have you done? B

  • LR 5.4 images in Book Module gone missing

    Upgraded to 5.4, all the images in a recently published (and very important) book have gone missing from the Collection to which they were associated. How do I get the images back? I had better not have to re-place them all over again. This would be

  • Codeset conversion on WebLogic v6.0 sp1 (NT/Solaris)

    Hi All, I'm using WebLogic v6.0 sp1 on NT and Solaris. What i trying to achieve is to convert codeset from unicod(java/jdbc, while retrieve from Oracle) to big5(to be display on Chinese OS), and vice versa. I read from WebLogic documentation/Advanced