Timeout javabean and called form?

I have a 10g form that acts as a menu and calls other forms using the call_form built-in. I would like to add the timeout javabean that is included in the 10g demos, but was wondering if I needed to add it to all of the forms or could I just add it to the main menu form? Does anyone know how this bean works with called forms?

Hi,
Would you tell me the steps to add TimeOut PJC to a form? I' have some errors in Oracle Forms Builder when running the form.
java.lang.NullPointerException
     at oracle.forms.demos.TimeoutPJC._addMouseListeners(TimeoutPJC.java:208)
     at oracle.forms.demos.TimeoutPJC.init(TimeoutPJC.java:180)
     at oracle.forms.handler.UICommon.instantiate(Unknown Source)
     at oracle.forms.handler.UICommon.onCreate(Unknown Source)
     at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
     at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
     at oracle.forms.engine.Runform.processMessage(Unknown Source)
     at oracle.forms.engine.Runform.processSet(Unknown Source)
     at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
     at oracle.forms.engine.Runform.onMessage(Unknown Source)
     at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
     at oracle.forms.engine.Runform.startRunform(Unknown Source)
     at oracle.forms.engine.Main.createRunform(Unknown Source)
     at oracle.forms.engine.Main.start(Unknown Source)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
thanks for your help.
best regards,
TT

Similar Messages

  • TimeOut PJC and Form Integration

    Good Afternoon,
    Java console shows this error when running from Oracle Forms Builder (version 10.1.2.0.2):
    java.lang.NullPointerException
         at oracle.forms.demos.TimeoutPJC._addMouseListeners(TimeoutPJC.java:208)
         at oracle.forms.demos.TimeoutPJC.init(TimeoutPJC.java:180)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Anyone knows why this happens? and the solution ;)?
    Thanks
    TT
    Message was edited by:
    user574955

    Again, please see my update in:
    Timeout javabean and called form?
    Also, unless you are using Forms 10.1.2.2, the use of Sun JRE 1.5 is not certified and therefore not supported.
    Refer to the Client Statement of Direction for more details:
    http://www.oracle.com/technology/products/forms/htdocs/10gR2/clientsod_forms10gR2.html

  • WebDynpro and Interactive Forms

    Goodday Guru's,
    I've just started with SAP interactive forms and currently playing around with it. I've developed the form via NWDS and was able to launch it (the tutorials). One question here. How do i pass data between one form to another. Basically, i have one form with only 1 field. At the bottom of the form is a button (not part of the form) which will fire a plug and call form 2. What im trying to do is, when i click on the button, the data from form 1 is passed accross to form 2. Any ideas?
    Thanks

    Hi
              Consider in your second form there is a text field, bind the same element to the context of second view, then in the "value" field bind the same element as in first view, deploy and run
    Regards
    Abhijith YS

  • Call_form dims the calling form

    My users are on a form and want to call a second form.. but then want to view both simultaneously.
    The calling form goes into dim mode.
    How do I keep the called and calling form both at "full visual strength"?

    Form A calls or opens From B
    using open form leave Form A un-dimmed but creates other problems - Form B is not able to open a further child Form.
    is there any way to control the color/density of the Form A when calling B so that it still is visible and printable? I would like to put them side by side and have then print with same quality.

  • Called form appears behind the calling form

    Hello all,
    From menu.fmb am trying to client on a button to open a new form test.fmb.
    using open_form('test.fmb', activate, session).
    When clicking the button, it opens new form test.fmb but is behind the calling form. I want the test.fmb to come in front and calling form should be behind.
    I have many other forms working fine and only this one form is causing the problem.
    have tried both call_form and open_form.
    Any suggestions?

    Also I have checked that MODAL and window property is No and Document

  • Javabean to call calender from form 10g

    I want to know about the javabean to call a calender form oracle form.
    Need sample example with java class.

    don't know if its a language problem but it is nice to say "please" and "thank you" - always makes the forums run alot smoother....;o)
    http://forms.pjc.bean.over-blog.com/article-14848846.html

  • Can we call a workflow form a JSP and/or form a Java Class?

    Is it possible to call a workflow form a JSP and/or form a Java Class?

    Below is some xpress code I wrote once, used to dynamically lauch workflows from within a workflow. Since it basically uses java classes, you reuse these in your java program or jsp:
    - create a new generic object
    - call the setId, put, ... methods on it
    - set the input variables for the workflow by putting them into the generic object
    - call the checkinView method on a LighthouseContext object which launches your workflow.
    If all you need is starting a workflow from a jsp, you might also want to take a look at the tasks/taskLaunch.jsp jsp. This is an out of the box jsp which allows launching of tasks. If I remember correctly you have to give an url parameter which specificies the name of task you want to start: tasks/taskLaunch.jsp?id=<workflow-name>
    - Robin
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE TaskDefinition PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <TaskDefinition name="MVG_TD_LaunchWorkflow" taskType="Workflow" executor="com.waveset.workflow.WorkflowExecutor" suspendable="true" syncControlAllowed="true" execMode="sync" execLimit="0" resultLimit="0" resultOption="delete" visibility="runschedule" progressInterval="0">
         <Extension>
              <WFProcess name="MVG_TD_LaunchWorkflow">
                   <Variable name="workflowName" input="true"/>
                   <Variable name="taskInstanceName" input="true"/>
                   <Variable name="inputs" input="true"/>
                   <Variable name="processView"/>
                   <Activity name="start">
                        <Transition to="createProcessView"/>
                   </Activity>
                   <Activity name="createProcessView">
                        <Action>
                             <block trace="true">
                                  <set name="processView">
                                       <new class="com.waveset.object.GenericObject"/>
                                  </set>
                                  <invoke name="setId">
                                       <ref>processView</ref>
                                       <s>ProcessViewer</s>
                                  </invoke>
                                  <invoke name="put">
                                       <ref>processView</ref>
                                       <s>task.process</s>
                                       <ref>workflowName</ref>
                                  </invoke>
                                  <invoke name="put">
                                       <ref>processView</ref>
                                       <s>task.taskName</s>
                                       <ref>taskInstanceName</ref>
                                  </invoke>
                                  <if>
                                       <notnull>
                                            <ref>inputs</ref>
                                       </notnull>
                                       <then>
                                            <invoke name="assimilate">
                                                 <ref>processView</ref>
                                                 <ref>inputs</ref>
                                            </invoke>
                                       </then>
                                  </if>          
                             </block>
                        </Action>
                        <Transition to="checkInProcessView"/>
                   </Activity>
                   <Activity name="checkInProcessView">
                        <Action>
                             <block trace="true">
                             <invoke name="checkinView">
                                  <invoke name="getLighthouseContext">
                                       <ref>WF_CONTEXT</ref>
                                  </invoke>
                                  <ref>processView</ref>
                                  <new class="java.util.HashMap"/>
                             </invoke>
                             </block>
                        </Action>
                        <Transition to="end"/>
                   </Activity>
                   <Activity name="end"/>
              </WFProcess>
         </Extension>
         <MemberObjectGroups>
              <ObjectRef type="ObjectGroup" id="#ID#Top" name="Top"/>
         </MemberObjectGroups>
    </TaskDefinition>

  • Interaction between Writer and JavaBeans with Oracle Forms

    Hi, guys,
    I've been facing some difficulties trying to integrate Writer and Oracle Forms Web (10g). I'm able to open a Writer Document by using a JavaBean executed from Eclipse, but I cannot get the same operation working from forms web. Has anyone ever tried to do somenting like that? Is there a solution to communication between Forms 10G and OpenOffice Writer and how to do it?
    Thanks in advance.

    Hi, François!
    Thanks for your prompt answer. But I still have some questions. The Bean I'm using is the OOoBean, provided by OpenOffice and there isn't much documentation around. I have to control the Writer text editor from forms 10G, but I haven't been successful in my goal.
    I'll show the code I'm using in eclipse. I need to adapt it to work in Forms 10G.
    $RCSfile: OOoBeanViewer.java,v $
    * $Revision: 1.3 $
    * last change: $Author: vg $ $Date: 2005/02/16 16:22:52 $
    * The Contents of this file are made available subject to the terms of
    * the BSD license.
    * Copyright (c) 2003 by Sun Microsystems, Inc.
    * All rights reserved.
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    * 1. Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    * 2. Redistributions in binary form must reproduce the above copyright
    * notice, this list of conditions and the following disclaimer in the
    * documentation and/or other materials provided with the distribution.
    * 3. Neither the name of Sun Microsystems, Inc. nor the names of its
    * contributors may be used to endorse or promote products derived
    * from this software without specific prior written permission.
    * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
    * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
    * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
    * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
    * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
    * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
    * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
    * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    import javax.swing.filechooser.*;
    import javax.swing.*;
    import com.sun.star.comp.beans.*;
    import java.io.*;
    /** A simple Applet that contains the SimpleBean.
    * This applet is a sample implementation of the
    * OpenOffice.org bean.
    * When initally loaded the applet has two buttons
    * one for opening an existant file and one to open
    * a blank document of a given type supported by
    * OpenOffice.org eg. Writer, Calc, Impress, .....
    public class OOoBeanViewer extends java.applet.Applet
    * Private variables declaration - GUI components
    private java.awt.Panel rightPanel;
    private java.awt.Panel bottomPanel;
    private javax.swing.JButton closeButton;
    private javax.swing.JButton terminateButton;
    private javax.swing.JButton newDocumentButton;
    private javax.swing.JPopupMenu documentTypePopUp;
    private javax.swing.JCheckBox menuBarButton;
    private javax.swing.JCheckBox mainBarButton;
    private javax.swing.JCheckBox toolBarButton;
    private javax.swing.JCheckBox statusBarButton;
    private javax.swing.JButton storeDocumentButton;
    private javax.swing.JButton loadDocumentButton;
    private javax.swing.JButton syswinButton;
    private JTextField documentURLTextField;
    private JMenuItem item;
    private JFileChooser fileChooser;
    private byte buffer[];
    * Private variables declaration - SimpleBean variables
    private OOoBean aBean;
    * Initialize the Appplet
    public void init()
              //The aBean needs to be initialized to add it to the applet
              aBean = new OOoBean();
    //Initialize GUI components
    rightPanel = new java.awt.Panel();
    bottomPanel = new java.awt.Panel();
    closeButton = new javax.swing.JButton("close");
    terminateButton = new javax.swing.JButton("terminate");
    newDocumentButton = new javax.swing.JButton("new document...");
    documentTypePopUp = new javax.swing.JPopupMenu();
    storeDocumentButton = new javax.swing.JButton("store to buffer");
    loadDocumentButton = new javax.swing.JButton("load from buffer");
    syswinButton = new javax.swing.JButton("release/aquire");
    menuBarButton = new javax.swing.JCheckBox("MenuBar");
              menuBarButton.setSelected( aBean.isMenuBarVisible() );
    mainBarButton = new javax.swing.JCheckBox("MainBar");
              mainBarButton.setSelected( aBean.isStandardBarVisible() );
    toolBarButton = new javax.swing.JCheckBox("ToolBar");
              toolBarButton.setSelected( aBean.isToolBarVisible() );
    statusBarButton = new javax.swing.JCheckBox("StatusBar");
              statusBarButton.setSelected( aBean.isStatusBarVisible() );
    documentURLTextField = new javax.swing.JTextField();
    //Set up the Popup Menu to create a blank document
    documentTypePopUp.setToolTipText("Create an empty document");
    item = documentTypePopUp.add("Text Document");
    item.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
    createBlankDoc("private:factory/swriter",
    "New text document");
    item = documentTypePopUp.add("Presentation Document");
    item.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
    createBlankDoc("private:factory/simpress",
    "New presentation document");
    item = documentTypePopUp.add("Drawing Document");
    item.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
    createBlankDoc("private:factory/sdraw",
    "New drawing document");
    item = documentTypePopUp.add("Formula Document");
    item.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
    createBlankDoc("private:factory/smath",
    "New formula document");
    item = documentTypePopUp.add("Spreadsheet Document");
    item.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
    createBlankDoc("private:factory/scalc",
    "New spreadsheet document");
    syswinButton.addActionListener(
                        new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
                        try
                             aBean.releaseSystemWindow();
                             aBean.aquireSystemWindow();
                        catch ( com.sun.star.comp.beans.NoConnectionException aExc )
                        catch ( com.sun.star.comp.beans.SystemWindowException aExc )
    storeDocumentButton.addActionListener(
                        new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
                        try
                             buffer = aBean.storeToByteArray( null, null );
                        catch ( Throwable aExc )
                             System.err.println( "storeToBuffer failed: " + aExc );
                             aExc.printStackTrace( System.err );
    loadDocumentButton.addActionListener(
                        new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
                        try
                             aBean.loadFromByteArray( buffer, null );
                        catch ( Throwable aExc )
                             System.err.println( "loadFromBuffer failed: " + aExc );
                             aExc.printStackTrace( System.err );
    closeButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
    close();
    terminateButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
    terminate();
    newDocumentButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
    documentTypePopUp.show((java.awt.Component)evt.getSource(), 0,0);
    menuBarButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
                        aBean.setMenuBarVisible( !aBean.isMenuBarVisible() );
    mainBarButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
                        aBean.setStandardBarVisible( !aBean.isStandardBarVisible() );
    toolBarButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
                        aBean.setToolBarVisible( !aBean.isToolBarVisible() );
    statusBarButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
                        aBean.setStatusBarVisible( !aBean.isStatusBarVisible() );
    documentURLTextField.setEditable(false);
    documentURLTextField.setPreferredSize(new java.awt.Dimension(200, 30));
    rightPanel.setLayout( new java.awt.GridLayout(10,1) );
    rightPanel.add(closeButton);
    rightPanel.add(terminateButton);
    rightPanel.add(newDocumentButton);
    rightPanel.add(storeDocumentButton);
    rightPanel.add(loadDocumentButton);
    rightPanel.add(syswinButton);
    rightPanel.add(menuBarButton);
    rightPanel.add(mainBarButton);
    rightPanel.add(toolBarButton);
    rightPanel.add(statusBarButton);
    //bottomPanel.setLayout( new java.awt.GridLayout(1,1) );
    bottomPanel.setLayout( new java.awt.BorderLayout() );
    bottomPanel.add(documentURLTextField);
    setLayout(new java.awt.BorderLayout());
    add(aBean, java.awt.BorderLayout.CENTER);
    add(rightPanel, java.awt.BorderLayout.EAST);
    add(bottomPanel, java.awt.BorderLayout.SOUTH);
    * Create a blank document of type <code>desc</code>
    * @param url The private internal URL of the OpenOffice.org
    * document describing the document
    * @param desc A description of the document to be created
    private void createBlankDoc(String url, String desc)
              //Create a blank document
              try
    documentURLTextField.setText(desc);
    //Get the office process to load the URL
    aBean.loadFromURL( url, null );
                   aBean.aquireSystemWindow();
              catch ( com.sun.star.comp.beans.SystemWindowException aExc )
                   System.err.println( "OOoBeanViewer.1:" );
                   aExc.printStackTrace();
              catch ( com.sun.star.comp.beans.NoConnectionException aExc )
                   System.err.println( "OOoBeanViewer.2:" );
                   aExc.printStackTrace();
              catch ( Exception aExc )
                   System.err.println( "OOoBeanViewer.3:" );
                   aExc.printStackTrace();
                   //return;
         /** closes the bean viewer, leaves OOo running.
    private void close()
                   setVisible(false);
                   aBean.stopOOoConnection();
                   stop();
                   System.exit(0);
         /** closes the bean viewer and tries to terminate OOo.
    private void terminate()
                   setVisible(false);
                   com.sun.star.frame.XDesktop xDesktop = null;
                   try {
                        xDesktop = aBean.getOOoDesktop();
                   catch ( com.sun.star.comp.beans.NoConnectionException aExc ) {} // ignore
                   aBean.stopOOoConnection();
                   stop();
                   if ( xDesktop != null )
                        xDesktop.terminate();
                   System.exit(0);
    * An ExitListener listening for windowClosing events
    class ExitListener extends java.awt.event.WindowAdapter
    * windowClosed
    * @param e A WindowEvent for a closed Window event
    public void windowClosed( java.awt.event.WindowEvent e)
                   close();
    * windowClosing for a closing window event
    * @param e A WindowEvent for a closing window event
    public void windowClosing( java.awt.event.WindowEvent e)
    ((java.awt.Window)e.getSource()).dispose();
    public static void main(String args[])
    java.awt.Frame frame = new java.awt.Frame("OpenOffice.org Demo");
    OOoBeanViewer aViewer = new OOoBeanViewer();
    frame.setLayout(new java.awt.BorderLayout());
    frame.addWindowListener( aViewer.new ExitListener() );
    aViewer.init();
    aViewer.start();
    frame.add(aViewer);
    frame.setLocation( 200, 200 );
    frame.setSize( 800, 480 );
    frame.show();
    }

  • HST50: Unix - How Headstart calls forms and reports uppercase/lowercase from a Menu

    We are migrating a 'in production' Headstart generated application from Windows to Unix.
    We had to a little time in setting the lowercase implementation names, setting the prefs to generate lowercase file.....
    So good so far. When testing the application on Unix, all files are lowercase, the Forms start without a problem but the Reports won't start.... Renaming the report files to uppercase works fine.
    Going through the Headstart code for calling Forms and Reports I noticed the following:
    When calling Forms the qmslib50.qms$form.call procedure is invoked. In this procedure the follwoing statement is used:
    l_form_name := lower(p_form_name) So only lowercase will be found....
    For calling Reports from the Lauch Report Form the qms0012l.qms$report.run procedure is invoked.
    This procedure calls fill_par_list where the l_module_name is set. But in this procedure no uppercase or lowercase is used......
    Not consequent I think !!
    Is this done for a specific reason ?
    PS: Change qms0012l and it works fine.

    Hi,
    cannot use run_report_object here cause I cannot create a report object in menu (like how we can do it in forms).
    Create a generic named Report node in the forms that you reference from the RunReport object request. This way you can run Reports from a menu
    Frank

  • Javabeans and Forms

    Are there any white papers or documentation that teaches how to create and use a javabean in Oracle Forms? I've looked at a couple of the demos but most of the documentation just seems to describe the PJC or javabean and none of the demos seem to work on the link http://www.oracle.com/technology/sample_code/products/forms/index.html. Also, the demos for 10g rel 2 are still not available. For us developers with only a little or no java knowledge the task of understanding how to use this technology with forms is pretty discouraging

    Hi Francois,
    I've looked at this site and it's pretty good and I think I might be able to get an existing bean working. The problem is that I have several developers on my project with essentially no java experience (they've taken a java class but haven't written anything outside of the class) and I'd like to get them started using this technology. How did you get startred? Some of my developers will be attending an Oracle University Forms class in mid April, but based on the class summary it doesn't appear that they even teach anything about javabeans.

  • Info path form gives error on submitting "The StateManager is disposing and calling ReleaseLockedStates() (Count=0)"

    Hi,
       I have created a very simple form which has 2 data connections all together. One connection is for a drop down which gets populated from a list within that site itself and the other data connection is used when I am submitting that form. But
    it is giving this error when I am submitting the form
    Error:
    The StateManager is disposing and calling ReleaseLockedStates() (Count=0)
    So, I have created a data connection library and uploaded the 2 udcx file in it and approved them but still the error is there.
    Please assist me on this. It is very urgent.

    Resolved the issue by changing the button type to "Submit"

  • Simply way to make sub vi and call it form main vi

    I'm a beginner and have major problems to make a sub vi and call it from main vi. I'm going to do a save dialog where is extra info for my saving and want to call dialog from main vi and after that save info to a file or database. I want that save dialog appears after i press button. I attach sub vi where is no functionality yet.
    Attachments:
    save_dialogsub.vi ‏21 KB

    The first step is to connect the controls and indicators that you want to pass information to and from your main vi.
    You right-click on the icon at the top right corner of the Front Panel and select "Show Connector". Typically put inputs at the left and outputs at the right side of the connector pane. Save it.
    Open the main vi. Go to the block diagram. Click on "Select a vi" inside the Functions Palette. And choose the sub vi you prepared. Then wire it up inside your main vi.
    -JLV-

  • Integrating Timeout.PJC in template Form

    Hi,
    Has anyone implemented the new "timeout" feature in a template? I had problems with it when calling multiple forms (Form A calling Form B). Have a message error 41355 and the message of inactivity time appears in the first form. Anyone knows how to solve this problem?
    Please help!
    Thanks

    Hi,
    Has anyone implemented the new "timeout" feature in a template? I had problems with it when calling multiple forms (Form A calling Form B). Have a message error 41355 and the message of inactivity time appears in the first form. Anyone knows how to solve this problem?
    Please help!
    Thanks

  • LOVs again!  How to return multiple fields to calling form

    Hi
    Newbie question, any help GREATLY appreciated :)
    Is there a simple and easy way to return more than one field from a LOV.
    I need this as I have a composite fk comprised of 2 fields, and as such need to return 2 fields from the LOV to the calling form.
    (My environment: JDeveloper 9.0.5.2 build 1618)
    CM

    Thanks, you put me on the right track here. Further investigations show the following sample provided by OTN shows how to use both the session request/response values or a JavaBean to do this:
    http://www.oracle.com/technology/sample_code/products/jdev/10g/ADF_UIX_UserInput.zip
    As such I post my solution to my original post. Hopefully it's useful to someone beside myself. I have to write up my notes anyhow so it's no fuss to submit them to the forum. I must admit I'm a newbie and slightly demented Forms programmer so such solutions aren't so obvious to me. With this in mind please include the "standard disclaimer" here, with the addition "mileage may vary" warranty.
    For these notes I've used the "HR" demo Oracle schema. In particular the tables departments and employees. As you know there is a master-detail relationship between these 2 tables, where each department may have one or more employees.
    We have the requirement on a webpage to:
    1) Provide an input-form-with-navigation to edit the employees.
    2) Display the relating department_name field, rather than just showing the department_id which is meaningless to the user. For example if the employees.department_id = 40, we wish to show the department name "Human Resources" on the employees record.
    3) Provide a LOV for the department ID field to allow the user to change the underlying department_id to a different master departments record.
    4) Update 2) given a change via 3).
    To do this do the following:
    Entity Objects
    1) Create default EO/VOs on both tables.
    2) In the employees EO, create a new field "DepartmentName" to represent the derived department name field.
    3) Set the new EO attribute's selected-in-query field.
    4) In the query-column-expression field, enter a query to derive the department name field for each record in the detail-employees-EO.
    eg. (SELECT dpt.department_name FROM departments dpt WHERE dpt.department_id = employees.department_id)
    Ensure to include the brackets.
    5) Apply the changes and accept the warning to create default data-type settings for the new attribute.
    View Object
    6) In the employees VO, include the new field DepartmentName as a selected attribute from the EO.
    7) Apply the changes and accept the warning to create default data-type settings for the new attribute.
    8) Test the model by running the ADF BC tester. Once running select the employees VO and step through the records, making sure the DepartmentName field has a value and changes appropriately according to the relating parent department_id.
    UIX input-only-form
    9) Create a new UIX web page employeesEdit.
    10) From the data-control pallete, drag in the employees VO as an input-form-with-navigation.
    11) For testing purposes it is also useful to have a create, delete, commit and rollback button, so includes these too.
    12) Within the employees VO data-control, also drag across a messageLovInput for the DepartmentId. Position it under the existing DepartmentId messageTextInput within the UIX page. We'll remove the existing messageTextInput later, but it's useful to leave it in for testing purposes initially when the LOV returns values.
    UIX LOV
    13) Navigate to the default LOV page that has just been created for you.
    14) Within the data-control pallete, expand the departments VO, select department ID then LOV-table from the drop-down, and drag this item onto the LOV page.
    15) Save your changes.
    16) Run your application. For an existing employee, invoke the department LOV and select an alternative department. Note on returning to the employees page the DepartmentID (both the messageTextInput and messageLovInput fields) are updated, but the DepartmentName is not. To do this we need to create a JavaBean to return multiple fields from the LOV to the original form.
    JavaBean
    17) Within your ViewController project, expand the ApplicationSources-View node.
    18) Select the new button, and create a standard JavaBean.
    19) Name the bean DepartmentsLov.
    20) Via the class editor, add 2 private scope fields DepartmentId and DepartmentName with String data-types, ensuring the create get/set method checkboxes are checked.
    21) Make and save your changes.
    22) From the navigator drag the newly created java file into the data-control palette.
    UIX LOV
    23) Return to the LOV webpage.
    24) Your LOV page will have a lovSelect event handler something like the following:
    <event name="lovSelect">
    <set property="inputValue"
    value="${bindings.DepartmentId.inputValue}"
    target="${data.employeesEdit.DepartmentId}"/>
    25) Change the lovSelect as follows:
    <event name="lovSelect">
    <compound>
    <set property="inputValue"
    value="${bindings.DepartmentId.inputValue}"
    target="${data.employeesEdit.DepartmentId}"/>
    <set value="${bindings.DepartmentId.inputValue}"
    property="inputValue"
    target="${bindings.JavaBeanDepartmentId}"/>
    <set value="${bindings.DepartmentName.inputValue}"
    property="inputValue"
    target="${bindings.JavaBeanDepartmentName}"/>
    </compound>
    26) Within the UI model navigator, right-click on the top node, then create-binding, input, text field.
    27) Select the AppModuleDataControl, then DepartmentView, then the DepartmentName field, and then the ok button.
    28) In the UI model select the new field, then in the structure pane rename the field to DepartmentName.
    29) Within the UI model navigator, right-click on the top node, then create-binding, data, iterator.
    30) Select the DepartmentsLovDataControl and name the new iterator DepartmentsJavaBeanIterator.
    31) Again in the UI model navigator, right-click on the top node, then create-binding, input, text field.
    32) Select the DepartmentsLovDataControl then departmentId field, then the ok button.
    33) In the UI model select the new field, then in the structure pane rename the field to JavaBeanDepartmentId.
    34) Again in the UI model navigator, right-click on the top node, then create-binding, input, text field.
    35) Select the DepartmentsLovDataControl then departmentName field, then the ok button.
    36) In the UI model select the new field, then in the structure pane rename the field to JavaBeanDepartmentName.
    UIX input-only-form
    37) Return to the main employeesEdit UIX form.
    38) Your UIX page will have a lovUpdate event handler something like the following:
    <event name="lovUpdate">
    <null/>
    39) Change the lovUpdate as follows:
    <event name="lovUpdate">
    <compound>
    <set value="${bindings.JavaBeanDepartmentId.inputValue}"
    property="inputValue"
    target="${bindings.DepartmentId}"/>
    <set value="${bindings.JavaBeanDepartmentName.inputValue}"
    property="inputValue"
    target="${bindings.DepartmentName}"/>
    </compound>
    </event>
    40) Repeat steps 29 through 36 for this page.
    41) Within the UIX page find the entries for the departmentId LOV, and the DepartmentName. They should look something like the following:
    <messageLovInput id="${bindings.DepartmentId.path}"
    model="${bindings.DepartmentId}"
    destination="lovWindow1.uix"/>
    <messageTextInput model="${bindings.DepartmentName}"
    columns="10"/>
    42) Modify these 2 entries as follows:
    <messageLovInput id="DepartmentId"
    model="${bindings.DepartmentId}"
    destination="lovWindow1.uix"
    partialRenderMode="multiple"
    partialTargets="DepartmentId DepartmentName"/>
    <messageTextInput id="DepartmentName"
    model="${bindings.DepartmentName}"
    columns="10"/>
    43) Finally delete the original DepartmentId messageTextInput field, leaving the DepartmentId messageLovInput.
    Testing
    44) Open your UIX input-only-form.
    45) Call the LOV and change the department for an existing employee record.
    46) Return to the employees page and note that the department ID and name have changed.
    47) Commit your changes.
    48) With your favourite data inspection tool (a'la Toad), check that the employee record's department ID has been appropriately saved to the database.
    <The End>
    Phew!

  • What is the diff b\w open form and start form in scripts.

    Hi,
         can any one tell me what is the diff andb\w open form and start form in scripts.when we should use open form and when start form.

    Hi Friend.
    I have understood some usefull information and would like to share with you.
    Within one transaction, you can open and close several layout sets using OPEN_FORM and
    CLOSE_FORM, however not simultaneously. You can use parameters in the OPEN_FORM to control
    whether the output is stored in the same print request. But also the SAP spool decides,
    depending on several plausibility checks, whether new output is appended to an existing
    print request or whether to create a new print request anyway.
    CALL FUNCTION 'OPEN_FORM'
    CALL FUNCTION 'CLOSE_FORM'
    CALL FUNCTION 'OPEN_FORM'
    CALL FUNCTION 'CLOSE_FORM'
    You cannot combine ABAP/4 list output and SAPscript output in one print request.
    START A LAYOUT SET AGAIN
    Usually a print program does not print only one urging letter or one account statement, but
    several layout sets for different customers. To have the output for each customer begin with
    the start page of the layout set, you must start the current layout set again and again.
    To start a layout set again, you must first end the current layout set and then open the
    layout set again. Within one print request, first call the function module END_FORM. It
    executes the final processing for the current layout set. Then start the layout set again
    using START_FORM. Output then begins again on the start page of the desired layout set.
    CALL FUNCTION 'OPEN_FORM'
    CALL FUNCTION 'START_FORM'
    CALL FUNCTION 'END_FORM'
    CALL FUNCTION 'START_FORM'
    CALL FUNCTION 'END_FORM'
    CALL FUNCTION CLOSE_FORM
    Hope your obstacle is cleared.
    If not do ask me again?

Maybe you are looking for