Passing parameters from a frame to another frame

Hello All,
I have a BSP page with 2 frames : header.htm and planning.htm
   <frameset rows="150,*" frameborder="0" border="0">
      <htmlb:documentBody >
            <frame style="border-right-style:solid;border-color:#333333;border-width:1px" src="header.htm" id="header" name="header" scrolling="no" noresize frameborder="no">
           <frameset  frameborder="0">
                <frame style="border-right-style:solid;border-color:#A5B1BF;border-width:1px" src="planning.htm" id="planning" name="planning" scrolling ="yes">
         </frameset>
       </htmlb:documentBody>
   </frameset>
1. I want to send parameters from header.htm to planning.htm when a button CREATE in header.htm is pushed.
2. I also want to execute the code in OnInputProcessing of planning.htm at the same time (when the button in header.htm is push).
Can someone help me please? I read many pots but i wasn't able to find a solution to my problem. I also have a look to HTMLB_SAMPLES, and SBSPEXT_HTMLB, but i didn't understand well.
Thank you

Hi,
if I were you I´d better work with views and controller classes instead of pages with logic. In this way you don´t have to send parameters from page 1 to page 2 and you don´t have to trigger an event so that page 2 is called and method OnInputProcessing is executed.
Change the type of your pages to views, create the controllers for each and the controller class(es) behind it. If your development is very complex I´d create a model class, so that variables and common method are available to all controller classes and pages.
You have the advantage that you don´t have to hang parameters into the URL, which then must be read by page 2 when somebody presses button X in page 1. This method could be insecure, because it is easy to ready parameters from the URL by a hacker. Additionally, how do you expect to trigger an event in page 2 when the event really happens in page 1 ??

Similar Messages

  • 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

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

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

  • Passing parameters from 1 jsp to another

    1. Passing String parameter P2 from Filter.jsp to POLGENMA106.jsp thro'
    <instance of NavigatorBar>.setTargetUrl
    ("POLGENMA106.jsp?P2=<%=strTitle%>")
    2. Problem faced :
    Value is not passed properly.
    3. Reason :
    When I press Next record in the NavigatorBar,
    the string "POLGENMA106.jsp?P2<%=strTitle%>" gets appended with
    "?<View name>_NAVIGATE=NEXT" internally instead of "&<View name>_NAVIGATE=NEXT" assuming that we r not passing any paramters.
    Is there any method by which we can pass paramters explicitly after instantiating NavigatorBar bean.
    4. Code in Filter.jsp:-
    <% strTitle = request.getParameter("P2"); %>
    <center><h2><%=strTitle%></h2></center>
    <jsp:useBean id="RowQuery" class="oracle.jbo.html.databeans.RowsetNavigator" scope="request">
    <%
    Object[] params = new Object[1]; params[0] = strVSCode;
    RowQuery.initialize(application, session , request, response, out, "pol_PMode_Pol_PModeModule.
    ComVsStaticValueView1"); RowQuery.setReleaseApplicationResources
    (true);
    RowQuery.getRowSet().getViewObject().setWhereClauseParams(params);
    RowQuery.getRowSet().getViewObject().executeQuery();
    RowQuery.getRowSet().first();
    %>
    </jsp:useBean>
    <jsp:useBean class="oracle.jbo.html.databeans.NavigatorBar" id="tb" scope="request" />
    <%
    tb.setTargetUrl("POLGENMA106.jsp?P2=<%=strTitle%>");
    tb.initialize(application,session, request,response,out,"pol_PMode_Pol_PModeModule.ComVsStaticValueView1");
    String sImageBase = (String)session.getValue("ImageBase");
    tb.getContainer().setImageBase(sImageBase);
    tb.getContainer().addSeparator(sImageBase + "/FNDIWDVD.gif");
    tb.getContainer().addButton(sImageBase + "/query.gif" , "ComVsStaticValueView1_Query.jsp", "Go to Query Form");
    tb.getContainer().addButton(sImageBase + "/browse.gif" , "ComVsStaticValueView1_Browse.jsp", "Go to Browse Form");
    tb.getContainer().addButton(sImageBase + "/addnew.gif" , "ComVsStaticValueView1_Insert.jsp", "Insert a New Record");
    tb.getContainer().addButton(sImageBase + "/editrec.gif" , "ComVsStaticValueView1_Edit.jsp", "Edit Current Record");
    tb.render();
    %>
    <br>
    One way of doing this is to put P2 in the session so that it can be accessed by POLGENMA106.jsp but this method is not preferable.
    Please Clarify.
    thanks,
    Archana
    null

    John Jdev :Are you using JDeveloper 3.0 or 3.1?
    ... I assume 3.0.
    Archana : Yes.
    Jdev : Are you trying to test this within JDeveloper 3.0?
    ... I assume so, but if not...please let me know.
    Archana : No, Iam not testing it within Jdev 3.0. I've deployed it in Java Web server 2.0 and Iam getting these parameters from the request.
    Jdev : You should note that JDeveloper 3.0
    supports running and debugging ONE JSP, not
    chained JSP/Servlets.
    Archana : Okay. But I din't test it using Jdev. Actually the NavigatorBar bean appends the implicit parameters "<view name>_NAVIGATE" to the JSP name specified in the setTargetUrl(), without checking if the string supplied to setTargetUrl() has a paramter already, that is the problem. So instead of appending "&<view name>_NAVIGATE", it goes as "?<view name>_NAVIGATE".
    Kindly provide a solution for this.
    Thank U !
    null

  • 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

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

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

  • Passing paremeters from one page to another

    Hi,
    I want to pass parameters from one page to another page. On the first page, I
    have a form portlet based on scott.dept and one the second page I have another
    form portlet based on scott.emp. Now I intend to pass deptno as parameter to
    get the detailed info on the other page.
    Any help would be highly appreciated.
    Thanks

    Searching in these forums will answer most of your questions
    please see :-
    Select permissions for different schemas
    Re: PL/SQL Tuning Issues
    Where I can get Dealership for sale of Oracle E-Business Suite 11i

  • Passing parameters from JSP to JSP

    How can I pass parameters from one JSP to another JSP?
    JSP1 calls JSP2. I need to pass some values in JSP 1 to use in JSP 2.
    Please help.
    Thanks.

    use jsp:forward and param tags

  • 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

  • How can I pass parameters from one process flow to another process flow?

    How can I pass parameters from one process flow to another process flow (sub process) in warehouse builder? let me know the steps I have to do in warehouse builder.
    Thanks in advance,
    Kishan

    Hi Kishan,
    Please post this question to the Warehouse Builder forum:
    Warehouse Builder
    Thanks, Mark

  • How to put a string from one Frame to another Frame?

    Dear all,
    How can I put a String from one Frame to another Frame?
    When the application started, the Frame 'WindowX' will be displayed. After you press the 'openButton', a whole new Frame (inputFrame) will be shown. In this Frame )(inputFrame) you can write a String in a TextField. After pressing the okButton, this String will be sent to the first Frame 'WindowX'.
    But does anyone know how to realize the sending part?
    I've tested this code on Win98 SE and JDK1.2.2.
    Hope someone can help me. Thanks in advance.
    import java.awt.*;
    import java.awt.event.*;
    public class WindowX extends Frame implements ActionListener, WindowListener
         private Button openButton;
         private TextField resultField;
         public static void main(String [] args)
              WindowX wx = new WindowX();
              wx.setSize(300,100);
              wx.setVisible(true);
         public WindowX()
              setLayout(new FlowLayout());
              openButton=new Button("open");
              add(openButton);
              openButton.addActionListener(this);
              resultField=new TextField(10);
              add(resultField);
              resultField.addActionListener(this);
              addWindowListener(this);     
         public void actionPerformed(ActionEvent evt)
              if (evt.getSource()==openButton)
                   inputFrame ip=new inputFrame();
                   ip.setSize(200,80);
                   ip.show();
         public void place(String theString) //this doesn't work
              resultField.setText(theString);
         public void windowClosing(WindowEvent event)
              System.exit(0);
         public void windowIconi......
    class inputFrame extends Frame implements ActionListener,WindowListener
         String theString = "";
         Button okButton;
         TextField inputField;
         WindowX myWX=new WindowX();   //??
         public inputFrame()
              setLayout(new FlowLayout());
              inputField=new TextField(10);
              add(inputField);
              inputField.addActionListener(this);
              okButton=new Button("OK");
              add(okButton);
              okButton.addActionListener(this);     
              addWindowListener(this);     
         public static void main(String[] args)
              Frame f = new Frame();
              f.show();
         public void actionPerformed(ActionEvent evt)
              if (evt.getSource()==okButton)
                   theString=inputField.getText();
                   myWX.place(theString);   //??
                   dispose();
        public void windowClosing(WindowEvent e) {
        dispose();
        public void windowIconi......
    }

    Thanks for your reply!
    But I got an other problem:
    I can't refer to the object (wx) made from the main Frame 'WindowX', because it's initialized in 'public static void main(String [] args)'...
    Hope you can help me again... Thanks!
    import java.awt.*;
    import java.awt.event.*;
    public class WindowX extends Frame implements ActionListener, WindowListener
         private Button openButton;
         private TextField resultField;
         public static void main(String [] args)
              WindowX wx = new WindowX();   //!!
              wx.setSize(300,100);
              wx.setVisible(true);
         public WindowX()
              setLayout(new FlowLayout());
              openButton=new Button("open");
              add(openButton);
              openButton.addActionListener(this);
              resultField=new TextField(10);
              add(resultField);
              resultField.addActionListener(this);
              addWindowListener(this);     
         public void actionPerformed(ActionEvent evt)
              if (evt.getSource()==openButton)
                   inputFrame ip=new inputFrame(wx);
                   ip.setSize(200,80);
                   ip.show();
         public void place(String theString)
              resultField.setText(theString);
         public void windowClosing(WindowEvent event)
              System.exit(0);
         public void windowIconi....
    class inputFrame extends Frame implements ActionListener,WindowListener
         String theString = "";
         Button okButton;
         TextField inputField;
         WindowX parent;
         public inputFrame(WindowX parent)
              setLayout(new FlowLayout());
              this.parent=parent;
              inputField=new TextField(10);
              add(inputField);
              inputField.addActionListener(this);
              okButton=new Button("OK");
              add(okButton);
              okButton.addActionListener(this);     
              addWindowListener(this);     
         public static void main(String[] args)
              Frame f = new Frame();
              f.show();
         public void actionPerformed(ActionEvent evt)
              if (evt.getSource()==okButton)
                   theString=inputField.getText();
                   parent.place(theString);
                   dispose();
        public void windowClosing(WindowEvent e) {
        dispose();
        public void windowIconi..........
    }          

Maybe you are looking for

  • Can I create a dashboard layout on the fly?

    Hi all, I am trying to create a dashboard layout "on-the-fly" (dynamically). for example: I can create the following layout using MXML very easily: [CODE] <mx:VBox width="100%" height="100%" horizontalAlign="center"> <mx:Canvas id="dashboardCanvas" w

  • Error/warning in dict. Activator while activating the infocube

    Hi All,     When we are trying to add one of the characteristic info object into Infocube, the system throws following message. deleted the index ,then also same issue. Activation of Objects with Type InfoCube Checking Objects with Type InfoCube Chec

  • Connecting an existing VC model to another SAP system

    Hello, Can anyone tell me how to connect an existing Visual composer model which resides on the VC Development system to different SAP System? Now the VC development system is connected to the DEV erp system (rfc, bapi etc.) and I wish to connect the

  • What are the controllers in atg?

    what are the controllers in atg? and diff b/w repository and jdbc?

  • Urgent!!! select methods problem!!!

    hi,all dose anybody have encounter such problem : if the xml nodes have prefix that the select methods can not work as well, the select result is null,but the xml nodes do not have prefix that the result will be right. i use the oracle xdk10.0 ,and p