Parent Child forms

Hi,
I've only just started playing with swing forms, I've created a few and now I've decided that I want some to be parent frames and some to be child frames - what's the best way to go about this?
A little explaination
I have a main login panel then dependant on your login type you get a buyers or a sellers panel, each one on those panels can then click to a couple of others e.g add item or delete item. when these 3rd level forms are closed (using the cross) It does a sytem.exit but I want it to go back to the parent form and refresh the datatable I have made (a list of the sellers items for instance). All panels are currently JFrames, is there a quick way to convert them?
Thank you
Sara :)

Make them JDialogs instead and remove the System.exit() call. See [the tutorial|http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html].
Also the is a Swing forum which is a better place for Swing questions.

Similar Messages

  • Populate list from recordset on Parent/Child form

    We have a parent/child form and want to populate several lists from recordsets. We can populate the child canvas by calling a procedure from the WHEN NEW FORM INSTANCE trigger but the same code fails when trying to populate a list on the Parent canvas. If I move the code to a PRE-BLOCK trigger on the parent block, then it works. I just kept moving the code until I found something that works. Can anyone tell me why it wouldn't work from the WHEN NEW FORM INSTANCE trigger? Is PRE-BLOCK the correct place?

    WHEN-NEW-FORM-INSTANCE trigger
    Add_Orgs_Lists('HR_PERSONS.OFFICE_SYMBOL');
    PROGRAM UNIT
    PROCEDURE Add_Orgs_Lists (list_name VARCHAR2) is list_id ITEM;
         col_name VARCHAR2(80) := SUBSTR(list_name, INSTR(list_name, '.')+1);
         sql_stat VARCHAR2(2000);
         BEGIN
         --Find ID for list item.
              list_id := FIND_ITEM(list_name);
              IF ID_NULL(list_ID) THEN
                   MESSAGE('List Item ' ||list_name|| ' does not exist.');
                   RAISE FORM_TRIGGER_FAILURE;
              END IF;
         --Build the SQL statement.
         --     message('In Get_Org');
         sql_stat := 'SELECT Distinct Org_Name, Org_Name FROM HR_Organizations
         ORDER BY 1 ASC';
         Populate_the_List(list_id, sql_stat);
              EXCEPTION
                   WHEN OTHERS THEN
                        MESSAGE('Internal error occurred in Add_Orgs_List.');
                        RAISE FORM_TRIGGER_FAILURE;
    END Add_Orgs_Lists;
    PROCEDURE Populate_the_List (list_id ITEM,
                                                           sql_stat VARCHAR2) is
         group_id RecordGroup;
         outcome NUMBER;
         --List_Elements  VARCHAR2(40);
    BEGIN
              --message('In Populate_the...');     
    --Create temporary record group.
    group_id := CREATE_GROUP_FROM_QUERY('List_Elements', sql_stat);
    IF ID_NULL(group_id) THEN
         MESSAGE('Record Group could not be created in Populate_the_List.');
         RAISE FORM_TRIGGER_FAILURE;
    END IF;
    --Populate record group.
         outcome := POPULATE_GROUP(group_id);
         IF outcome <> 0 THEN
              MESSAGE('Record Group could not be populated in Populate_the_List.');
              RAISE FORM_TRIGGER_FAILURE;
         END IF;
    --Populate list item
         POPULATE_LIST(list_id, group_id);
    --Destroy the temporary record group to release resources
         DELETE_GROUP(group_id);
    EXCEPTION
         WHEN OTHERS THEN
         MESSAGE('Internal error occured in Popluate_the_List.');
         RAISE FORM_TRIGGER_FAILURE;
    END Populate_the_List;
    The error is FRM-41337 Cannot populate the list from record group. It happens when we open the form. We are using the same code to populate the lists on the child form (except the SQL statement is different) and it works correctly.
    I appreciate your help.

  • Parent Child Form

    How can i show the form in parent child style
    B1 SDK?? It just like the form handling in .NET

    Parent/Child (Aka Modal forms) forms can't be done in SDK at the moment... Modal forms have been promised for some time now and latest is promised in the SBO2006A..
    If you need to do it, the best way is to save a parent forms uid in the child form (in a userdatasource). That way you will always have control of the parent form and if it is closed, you can give a good error message.

  • SharePoint 2013 Parent/Child Form

    All,
    I am completing some audits on accounts with audit names: AuditA, AuditB
    I have a SharePoint list 'AuditPopulation' with the following columns:
    AccountNumber
    AuditName
    Then as we are auditing accounts we have audit questions based on the applicable audit. Therefore I have a list called 'AuditQuestions' with the columns:
    QuestionID
    Question
    Answer (Pass/Fail)
    AuditName
    I am struggling with how to link to the two lists and create a form (most likely in InfoPath) that will display the list of Questions for AuditA when the user clicks the AccountNumber in the 'AuditPopulation' list.
    Thank you in advance

    You can use jQuery and Web Service to achieve this task using SharePoint Designer. Refer to the following post for more information
    http://sharepoint.stackexchange.com/questions/6493/how-to-automatically-link-parent-in-child-list-new-form
    http://go.limeleap.com/community/bid/246651/Creating-Forms-for-SharePoint-Using-SharePoint-Designer-2010
    http://www.sharepointdrive.com/blog/how-to-establish-a-parent-child-relationship-in-sharepoint/
    --Cheers

  • Parent / Child forms or sharing a parent region across child tabs

    I want to find a way to have the same region appear on multiple pages.
    ApEx has a good master / detail form wizard. And I have used other constructs (master view, report, "add a detail record button", etc) to make the screens more user friendly, less prone to user error, etc.
    In the past where there are a small number of these maintenance requirements I have used tabs, select list, menus, etc. to manage the user experience.
    I am now faced with an explosion of these types of tasks that require a fairly large dataset to be broken into many smaller maintenacne pages that are accessed by the role of the user. Could be up to 250 of these "master/detail" screens.
    I want to avoid 250 copied regions, or 10 regions copied 25 times... I want to have a single instance of a "master summary" region that I can share across several pages. The idea is to have as little redundant code (regions) as possible to ease developement and maintenance.
    I haven't figured this out yet and it does not seem anyone else is even looking for this functionality. Am I all alone with this need...
    Guess I'll go have a beer... or six.
    Any ideas are appreciated and I will buy a beer for anyone who shows up at my sailboat in Santa Cruz on April 20th.
    Sam

    I thought about that as an option. Create several regions on page 0 that were defaulted to not display and then have them appear as needed. That may be the answer.
    My level of sophitication with Apex is good when it is db desing, app design, ui, but I am not a WEB developer and so the finder points of HTML or java are somewhat a mystery to me.
    I saw some writeups on htmldb_get as being able to call shared processes or application pages. I know I can redirect to a ApEx url, I wondered if there was a way to call a region as an option.
    Thanks for the input,
    Sam

  • Best Method For Parent/Child Form Interaction

    Can anyone advise the best way to achieve the following?
    * I have two forms
    * Form1 creates an instance of Form2
    * A user action on Form2 will affect a change on Form1
    At the moment, when Form1 creates Form2, it adds an event handler to a method within Form1;
    lookupFrame = new accountLookupFrame();
    lookupFrame.lookupTable.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseClicked(java.awt.event.MouseEvent evt) {
                    lookupTableMouseClicked(evt);
    lookupFrame.setVisible(true);For this to work, Form2 is set for public access. Is there a better way of achieving this effect?

    Check out my ParamDialog class (added below). In particular, check out the applyOnChange method. When this is switched on, any changes to the parameter fields will generate an apply() event (ParamDialog must be overridden to specify what happens on apply)
    You should also be able to find StandardDialog by searching here; I just linked someone else to it. I think that should be all you need.
    You are welcome to use and modify this code, but please do not change the package or take credit for it as your own work
    ParamDialog.java
    ==============
    package tjacobs.ui;
    import java.awt.Dialog;
    import java.awt.Frame;
    import java.awt.GraphicsConfiguration;
    import java.awt.HeadlessException;
    import javax.swing.AbstractButton;
    import javax.swing.JButton;
    import javax.swing.JCheckBox;
    import javax.swing.JComboBox;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JMenuBar;
    import javax.swing.JPanel;
    import javax.swing.JPasswordField;
    import javax.swing.JTextField;
    import javax.swing.text.Document;
    import tjacobs.CollectionUtils;
    //import tjacobs.OmniListener;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.InputMethodEvent;
    import java.awt.event.InputMethodListener;
    import java.beans.PropertyChangeEvent;
    import java.beans.PropertyChangeListener;
    import java.beans.VetoableChangeListener;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.Observable;
    import java.util.Observer;
    import java.util.Properties;
    /** Usage:
    * *      ParamDialog pd = new ParamDialog(new String[] {"A", "B", "C"});
    * pd.pack();
    * pd.setVisible(true);
    * Properties p = pd.getProperties();
    public class ParamDialog extends StandardDialog {
         public static final String SECRET = "(SECRET)";
         public static final String CHECKBOX = "(CHECKBOX)";
         public static final String BUTTON = "(BUTTON)";
         public static final String BUTTON_SOLO = "(BUTTON_BOTH)";
         //public static final String BLANK = "(BLANK)";
         public static final String COMBO = "COMBO)";
         String[] fields;
         HashMap<String, GetText> mValues = new HashMap<String, GetText>();
         private boolean mShowApplyButton = false;
         //private Observable mObservable;
         //private OmniListener mOmniListener;
         private static interface GetText {
              public String getText2();
              public void setText2(String txt);
         private static class TextField extends JTextField implements GetText {
              public void setText2(String s) {
                   setText(s);
              public String getText2() {
                   return getText();
         private static class PasswordField extends JPasswordField implements GetText {
              public void setText2(String s) {
                   setText(s);
              public String getText2() {
                   return getText();
         private static class TextButton extends JButton implements GetText {
              public TextButton(String s) {
                   super(s);
              public void setText2(String s) {
                   setText(s);
              public String getText2() {
                   return getText();
         private static class TextCheckbox extends JCheckBox implements GetText {
              public void setText2(String s) {
                   setSelected("true".equals(s));
              public String getText2() {
                   return "" + isSelected();
              public void _setText(String s) {
                   super.setText(s);
              public String _getText() {
                   return super.getText();
              public String getLabel() {
                   return "";
         private static class TextCombo extends JComboBox implements GetText {
              public String getText2() {
                   return getSelectedItem().toString();
              public void setText2(String str) {
                   setSelectedItem(str);
         public ParamDialog(String[] fields) throws HeadlessException {
              this(null, fields);
         public ParamDialog(JFrame owner, String[] fields) {
              this (null, fields, null);
         public ParamDialog(JFrame owner, String[] fields, String[] initialValues) {
              super(owner);
              setModal(true);
              this.fields = fields;
              JPanel main = new JPanel();
              JPanel buttonP = null;
              UniversalChangeListener ucl = null;
              if (applyOnChange()) {
                   ucl = new UniversalChangeListener() {
                        public void apply(AWTEvent ev) {
                             ParamDialog.this.apply();
              main.setLayout(new GridLayout(fields.length, 1));
              for (int i = 0; i < fields.length; i++) {
                   JPanel con = new JPanel(new FlowLayout(FlowLayout.RIGHT));
    /*               if (fields.endsWith(BLANK)) {
                        //add space filler
                        buttonP = null;
                        con.add(new Component(){
                             public Dimension getPreferredSize() {
                                  return new Dimension(40, 15);
                        //con.add((Component)null);
                   else
                   if (fields[i].endsWith(BUTTON_SOLO)) {
                        JLabel l = new JLabel(fields[i].substring(0, fields[i].length() - BUTTON_SOLO.length()));
                        con.add(l);
                        TextButton jb = new TextButton("...");
                        //if (ucl != null) {
                        //     ucl.addComponent(jb);
                        mValues.put(fields[i], jb);
                        con.add(jb);               
                   else
                   if (fields[i].endsWith(BUTTON)) {
                        TextButton jb = new TextButton(fields[i].substring(0, fields[i].length() - BUTTON.length()));
                        //if (ucl != null) {
                        //     ucl.addComponent(jb);
                        mValues.put(fields[i], jb);
                        if (buttonP != null) {
                             buttonP.add(jb);
                             buttonP = null;
                             continue;
                        else {
                             con.add(jb);
                             buttonP = con;
                   else {
                        buttonP = null;
                        if (fields[i].endsWith(CHECKBOX)) {
                             TextCheckbox tb = new TextCheckbox();
                             if (ucl != null) {
                                  ucl.addComponent(tb);
                             con.add(new JLabel(fields[i].substring(0, fields[i].length() - CHECKBOX.length())));
                             con.add(tb);
                             //if (initialValues != null && initialValues.length > i) {
                             //     tb.setText(initialValues[i]);
                             mValues.put(fields[i], tb);
                        else if (fields[i].endsWith(COMBO)) {
                             int idx = fields[i].lastIndexOf('(');
                             if (idx == -1) {
                                  throw new IllegalArgumentException(fields[i]);
                             String[] args = fields[i].substring(idx + 1, fields[i].length() - COMBO.length()).split(" ");
                             TextCombo combo = new TextCombo();
                             for (int j = 0; j < args.length; j++) {
                                  combo.addItem(args[j]);
                             combo.setEditable(false);
                             fields[i] =fields[i].substring(0, idx);
                             JLabel l = new JLabel(fields[i].substring(0, idx));
                             if (ucl != null) {
                                  ucl.addComponent(combo);
                             con.add(l);
                             con.add(combo);
                             //mValues.put(idx == -1 ? fields[i] : fields[i].substring(0, idx), combo);
                             mValues.put(fields[i], combo);
                        else if (fields[i].endsWith(SECRET)) {
                             PasswordField tf;
                             con.add(new JLabel(fields[i].substring(0, fields[i].length() - SECRET.length())));
                             tf = new PasswordField();
                             if (ucl != null) {
                                  ucl.addComponent(tf);
                             tf.setColumns(12);
                             con.add(tf);
                             if (initialValues != null && initialValues.length > i) {
                                  tf.setText(initialValues[i]);
                             mValues.put(fields[i], tf);
                        else {
                             TextField tf;
                             con.add(new JLabel(fields[i]));
                             tf = new TextField();
                             if (ucl != null) {
                                  ucl.addComponent(tf);
                             tf.setColumns(12);
                             con.add(tf);
                             if (initialValues != null && initialValues.length > i) {
                                  tf.setText(initialValues[i]);
                             mValues.put(fields[i], tf);
                   main.add(con);               
              this.setMainContent(main);
         public Component getComponentForField(String name) {
              return (Component)mValues.get(name);
         public boolean showApplyButton() {
              return mShowApplyButton;
         public void setActionListener(String buttonName, ActionListener listener) {
              GetText gt = mValues.get(buttonName);
              if (gt instanceof AbstractButton) {
                   AbstractButton ab = (AbstractButton) gt;
                   ab.addActionListener(listener);
         public void apply() {
         private boolean mCancel = false;
         public void cancel() {
              mCancel = true;
              super.cancel();
         public void setField(String field, String value) {
              //JTextField tf = mValues.get(field);
              GetText tf = mValues.get(field);
              if (tf != null) {
                   tf.setText2(value);
         public Properties getProperties() {
              if (mCancel) return null;
              Properties p = new Properties();
              for (int i = 0; i < fields.length; i++) {
                   p.put(fields[i], mValues.get(fields[i]).getText2());
              return p;
         public void setProperties(Properties p) {
              Iterator<Object> _i= p.keySet().iterator();
              while (_i.hasNext()) {
                   String key = (String) _i.next();
                   String value = (String) p.get(key);
                   setField(key, value);
         public void enableLoadAndSave() {
              JMenuBar bar = new JMenuBar();
              FileMenu fm = new FileMenu() {
                   public void save(File f) throws IOException {
                        FileOutputStream out = new FileOutputStream(f);
                        getProperties().store(out, null);
                   public void load(File f) throws IOException {
                        FileInputStream in = new FileInputStream(f);
                        Properties p = new Properties();
                        p.load(in);
                        setProperties(p);
                   public boolean showSaveAs() {
                        return true;
              fm.setPrevSaveFile();
              bar.add(fm);
              setJMenuBar(bar);
         public static void main (String[] args) {
              //ParamDialog pd = new ParamDialog(new String[] {"A", "B", "C"});
              //WindowUtilities.visualize(pd);
              //Properties p = getProperties(new String[] {"A","B","C"});
              //String strs[] = new String[] {"A" + BUTTON, BLANK, "B" + CHECKBOX, "C" + SECRET, "D", "E"};
              String strs[] = new String[] {"A" + BUTTON, "Z" + BUTTON, "B" + CHECKBOX, "C" + SECRET, "D", "E", "F (A B C" + COMBO};
              String initial[] = new String[] {"A", "", "true", "pass", "", ""};
              ParamDialog pd = new ParamDialog(null, strs, initial);
              ActionListener al = new ActionListener() {
                   public void actionPerformed(ActionEvent ae) {
                        System.out.println(((JButton) ae.getSource()).getLabel());
              pd.setActionListener("A" + BUTTON, al);
              pd.setActionListener("Z" + BUTTON, al);
    //          pd.addObserver(new Observer() {
    //               public void update(Observable o, Object obj) {
    //                    System.out.println("got update");
              pd.enableLoadAndSave();
              WindowUtilities.visualize(pd);
              Properties p = pd.getProperties();
              //CollectionUtils.printCollection(p);
         public static Properties getProperties(String[] fields) {
              ParamDialog pd = new ParamDialog(fields);
              //pd.setModal(false);
              WindowUtilities.visualize(pd);
              return pd.getProperties();          
         public void setShowApplyButton(boolean b) {
              mShowApplyButton = b;
         public boolean getShowApplyButton() {
              return mShowApplyButton;
         public boolean applyOnChange() {
              return false;
         public void save(File f) throws IOException {
              FileOutputStream out = new FileOutputStream(f);
              getProperties().store(out, "params");
         public void load(File f) throws IOException {
              Properties p = new Properties();
              p.load(new FileInputStream(f));
              setProperties(p);
    //     public void dispose() {
    //     super.dispose();
    //     Iterator _i = mValues.values().iterator();
    //     while (_i.hasNext()) {
    //          JComponent c = ((JComponent)_i.next());
    //          //c.addPropertyChangeListener("value", listener);
    //          //c.addVetoableChangeListener(listener2);
    //          //c.addInputMethodListener(listener3);
    //          mOmniListener.remove(c);

  • Child form calling a method on it's parent's class.

    I am developing a form-based application. There is one root
    form called "Application" and a few child forms off the root (e.g.,
    Login, CustView). I would like the sibling forms to be able to pass
    contol to each other (e.g., after successful login, I want to make
    Login invisible and CustView visible).
    I wanted the root form to control this interaction, but I'm
    not sure how events in child can be handled in the parent. This is
    a common technique, but in this case, the parent doesn't explicitly
    instantiate the child, so I can't just pass a reference to the
    parent to the child's constructor. I can use this.parentForm to get
    a reference to the parent form, but I can't seem to find the
    parent's methods, just it's gui elements (i.e.,
    this.parentForm.parentMethod() doesn't work).
    Can some tell me how to do this? I am considering a
    FormManager class, which is a singleton class that each form can
    registers with and can use to toggle the visibility of itself and
    its siblings, but I wanted to see if there was an easier way to
    access methods on the class instance associated a parent's form.
    Any suggestions?
    Andy

    "agorman" <[email protected]> wrote in
    message
    news:e2163h$4na$[email protected]..
    >I am developing a form-based application. There is one
    root form called
    > "Application" and a few child forms off the root (e.g.,
    Login, CustView).
    > I
    > would like the sibling forms to be able to pass contol
    to each other
    > (e.g.,
    > after successful login, I want to make Login invisible
    and CustView
    > visible).
    >
    > I wanted the root form to control this interaction, but
    I'm not sure how
    > events in child can be handled in the parent. This is a
    common technique,
    > but
    > in this case, the parent doesn't explicitly instantiate
    the child, so I
    > can't
    > just pass a reference to the parent to the child's
    constructor. I can use
    > this.parentForm to get a reference to the parent form,
    but I can't seem to
    > find
    > the parent's methods, just it's gui elements (i.e.,
    > this.parentForm.parentMethod() doesn't work).
    >
    > Can some tell me how to do this? I am considering a
    FormManager class,
    > which
    > is a singleton class that each form can registers with
    and can use to
    > toggle
    > the visibility of itself and its siblings, but I wanted
    to see if there
    > was an
    > easier way to access methods on the class instance
    associated a parent's
    > form.
    >
    > Any suggestions?
    >
    Why don't you explicitly instantiate the children with a
    reference to the
    parent form. That way you could store the reference in the
    constructor. As
    long at the functions are public I think it should work.
    Amy

  • Incorrect query forms in parent child relation

    Hello
    I am using jdev of RUP3 (Release 4) which is 11.1.1.6.2 and have following scenario
    I have a ParentVO (ProfileVO) and a child VO(CreditReceiversVO) (child VO is basically extended from another VO not in this application and included as a jar library).
    There a VL between ParentVO and ChildVO 1:* with two attributes ord_id and rule_id
    On UI these two VO instances are dropped as parent child and I get exception on running page in logs saying RuleAssignementEO.ORG_ID invalid identifier.
    Looking into the query formed by BC4J I see it as below which is clearly wrong as the alias RuleAssignmentEO is not visible for the outermost where clause. Please advise
    "SELECT count(1) FROM (SELECT * FROM (SELECT /*+ FIRST_ROWS(10) */
    RuleAssignmentsEO.RULE_ASSIGNMENT_ID,
    RuleAssignmentsEO.OBJECT_VERSION_NUMBER,
    RuleAssignmentsEO.RULE_ID,
    RuleAssignmentsEO.ASSIGNED_OBJECT_ID,
    RuleAssignmentsEO.ASSIGNED_OBJECT_TYPE,
    RuleAssignmentsEO.ORG_ID,
    RuleAssignmentsEO.ROLE_ID,
    RuleAssignmentsEO.START_DATE,
    RuleAssignmentsEO.END_DATE,
    RuleAssignmentsEO.SPLIT_PCT,
    RuleAssignmentsEO.REVENUE_TYPE,
    RuleAssignmentsEO.ROLLUP_FLAG,
    RuleAssignmentsEO.CREATED_BY,
    RuleAssignmentsEO.CREATION_DATE,
    RuleAssignmentsEO.LAST_UPDATED_BY,
    RuleAssignmentsEO.LAST_UPDATE_DATE,
    RuleAssignmentsEO.LAST_UPDATE_LOGIN,
    RuleAssignmentsEO.ATTRIBUTE_CATEGORY,
    RuleAssignmentsEO.ATTRIBUTE1,
    RuleAssignmentsEO.ATTRIBUTE2,
    RuleAssignmentsEO.ATTRIBUTE3,
    RuleAssignmentsEO.ATTRIBUTE4,
    RuleAssignmentsEO.ATTRIBUTE5,
    RuleAssignmentsEO.ATTRIBUTE6,
    RuleAssignmentsEO.ATTRIBUTE7,
    RuleAssignmentsEO.ATTRIBUTE8,
    RuleAssignmentsEO.ATTRIBUTE9,
    RuleAssignmentsEO.ATTRIBUTE10,
    RuleAssignmentsEO.ATTRIBUTE11,
    RuleAssignmentsEO.ATTRIBUTE12,
    RuleAssignmentsEO.ATTRIBUTE13,
    RuleAssignmentsEO.ATTRIBUTE14,
    RuleAssignmentsEO.ATTRIBUTE15,
    RuleAssignmentsEO.GROUP_MEMBER_CREDIT_FLAG,
    RuleAssignmentsEO.SUMMARY_FLAG,
    ParticipantEO.PARTICIPANT_NAME,
    ParticipantEO.PARTICIPANT_ID
    FROM CN_RS_RULE_ASSIGNMENTS_ALL RuleAssignmentsEO, CN_SRP_PARTICIPANT_HDR_RO_V ParticipantEO
    WHERE RuleAssignmentsEO.ASSIGNED_OBJECT_ID = ParticipantEO.PARTICIPANT_ID(+)) QRSLT WHERE RuleAssignmentsEO.RULE_ID = :Bind_RuleId AND RuleAssignmentsEO.ORG_ID = :Bind_OrgId) "
    Edited by: Vik2 on Oct 23, 2012 11:30 AM

    invalid identifier means ,it representating that field currently not available in db-table.
    so please refer db-table. whether field avialable or not?.
    edited lately:
    djbo.debugoutput=console did you use this :) it will say the query is send to server.
    Edited by: user707 on Oct 22, 2012 11:58 PM

  • How to access objects in the Child Form from Parent form.

    I have a requirement in which I have to first open a Child Form from a Parent Form. Then I want to access objects in the Child Form from Parent form. For example, I want to insert a record into a block present in Child Form by executing statements from a trigger present in Parent Form.
    I cannot use object groups since I cannot write code into Child Form to first create object groups into Child Form.
    I have tried to achieved it using the following (working of my testcase) :
    1) Created two new Forms TESTFORM1.fmb (parent) and TESTFORM2.fmb (child).
    2) Created a block named BLK1 manually in TESTFORM1.
    3) Created two items in BLK1:
    1.PJC1 which is a text item.
    2.OPEN which is a push button.
    4) Created a new block using data block wizard for a table EMPLOYEE_S1. Created items corresponding to all columns present in EMPLOYEE_S1 table.
    5) In WHEN-NEW-FORM-INSTANCE trigger of TESTFORM1 set the first navigation block to BLK1. In BLK1 first navigable item is PJC1.
    6) In WHEN-NEW-ITEM-INSTANCE of PJC1, code has been written to automatically execute the WHEN-BUTTON-PRESSED trigger for the "Open" button.
    7) In WHEN-BUTTON-PRESSED trigger of OPEN item, TESTFORM2 is opened using the following statement :
    open_form(‘TESTFORM2',no_activate,no_session,SHARE_LIBRARY_DATA);
    Since its NO_ACTIVATE, the code flows without giving handle to TESTFORM2.
    8) After invoking OPEN_FORM, a GO_FORM(‘TESTFORM2’) is now called to set the focus to TESTFORM2
    PROBLEM AT HAND
    ===============
    After Step 8, I notice that it passes the focus to TESTFORM2, and statements after go_form (in Parent Form trigger) doesnot executes.
    I need go_form with no_activate, similar to open_form.
    Edited by: harishgupt on Oct 12, 2008 11:32 PM

    isn't it easier to find a solution without a second form? If you have a second window, then you can navigate and code whatever you want.
    If you must use a second form, then you can handle this with WHEN-WINDOW-ACTIVATED and meta-data, which you have to store in global variables... ( I can give you hints if the one-form-solution is no option for you )

  • How to achieve parent - child record insert in forms

    Guys,
    I am new to forms. I do have a requirement where I need to create one tabular block for 10 rows (parent record) and then I need to create three tabular tabs of 5 rows for detailed records (child). That means each tab can have 5 records for 1 parent row.. Thats how this parent-child structure has ONE to MANY relationships
    To achieve this requirement I created one parent block of table type (using table XX_Parent) and then I created three detailed block for each tab (Tab_A,Tab_B,Tab_C) using child table (XX_Child). For each tab while inserting the data I took one context_value column in child table. i.e. when I insert the data using Tab_A , context_value column will be A. In the same way B and C for Tab_B for Tab_C respectively. And I wrote this logic at PRE-INSERT trigger for each tab. But when I insert the data for all the tabs, it allows me to enter successfully for Tab_A only, the moment I navigate from Tab_A to enter the data intoTab_B, it throws me error like "You are passing NULL value to set context_value". I hope I make the requirement clear to you.
    I am not sure if I am following the right approach to achieve my requirement. if its not right, please suggest me right one.. and if its right please guide me resolve the error..
    Looking forward to your reply.
    Thanks
    Sunil

    Andreas,
    I had already created relations between Matster Block -Tab_A block, Master Block -Tab_B block and Master Block - Tab_C block...
    The point is all the three tabs are created using one table XX_Child only.. I used context_value A,B and C respectively so that once I query the data for XX_Child from backend, I should be in a position to figure out what data is inserted using Tab A, B and C. why I need so .. because If take my entire form in query mode and search for a master record.. then Tab_A, tab_B and Tab_C display their respective data. I hope, I make you understand.. Can you please guide me.
    Thanks
    Sunil

  • Parent Child list form using infopath 2013

    Hi All
    I have two SharePoint list heaving parent child relation ship ( one parent have multiple child) now i want to create a single form in info path 2013 using code less solution . I am using SharePoint Online don't want to use c# code.
    Journey Man

    Hi,
    Please check this
    https://www.sharepointdrive.com/blog/how-to-establish-a-parent-child-relationship-in-sharepoint/
    http://sharepoint.stackexchange.com/questions/6493/how-to-automatically-link-parent-in-child-list-new-form
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Form acting as child in parent child reference

    Hi guys,
    I have a custom fields form.
    This form basically uses other forms in our systems information as a parent-child relationship.
    It uses FORM NAME and ID from that form name to query custom fields form i.e.
    If you go into for example a customer form, then the custom form needs to trigger that you have gone into this form, and pass to custom the form name and the primay key thats queried.
    Also if you navigate away to another form (not closing it) and navigate back it should also trigger the execute query in this other form, is this possible?
    Basically we have 500 forms and a requirement has come in to add custom fields to all these forms so createing one form that contains the custom fields and having a triggr mechanism to execute query on this was the cleanest way i could attempt to achieve this, i do not want to amend 500 forms!
    Thanks

    Hai,
    For this create global variables to store the FORM_NAME and ID, and assign to those global variables on each master forms WHEN-WINDOW-ACTIVATED Trigger. And in the WHEN-WINDOW-ACTIVATED Trigger of the child form, query the details using those global variables. and use insert into or update statements to update.
    Regards,
    Manu.

  • Disable Parent Form while invoking Child Form using FND_FUNCTION.EXECUTE

    Hi,
    Any inputs in getting this issue resolved would be really helpful? I have a parent form wherein I am calling Child form (Line Details Form) by passing the masterid it works fine. Here How do we refrain the user control to access master form when child form is opened? Here when child form is invoked by click of a button and try to close the master, still I could see the child form opened. Any help will he highly appreciated. Many Thanks.
    Please find the details of the db version and function being used to invoke the form. I tried with all parameter options, when we give Open_flag as 'N', the master form gets closed after opening the child form. Perhaps given the open_flag as 'Y'. Kindly let me know your inputs in case of any missout from my end.
    Forms Version: Oracle Forms 10g
    Version: Oracle Applications : 12.1.3
    Database Version: 11.1.0.7.0
    fnd_function.execute(
    FUNCTION_NAME=> 'CHILD_FORM_LINE_DETAIL'                                                   ,OPEN_FLAG=>'Y'
         ,SESSION_FLAG=>'Y'
         ,other_params=>:Global.master_table_ID
    Thanks,
    Ahmed

    Hi,
    Please review the following documents and see if it helps.
    Note: 93784.1 - Custom Form is Not Executed When Called Using FND_FUNCTION.EXECUTE
    Note: 1031970.6 - Where is FND_FUNCTIONS.EXECUTE defined?
    Note: 744065.1 - Sample CUSTOM Library Code To Customize Applications
    Regards,
    Hussein

  • Processing Child form on parent window..

    Hi.. anyone here has any idea how to process a child form on a parent window.. like for example, i click on submit button on the child window, and the form directs to another JSP file which its results should be display on the parent window.. anyone has any idea?

    Hi!
    I had similar problem, I used frames and needed to submit a form from a frame to parent window. I used property "target" of form to specify where I want this form to be submitted, like this:
    function submit() {
         form.target = "name of the target where to submit";
         form.submit();
    or something like this:
    <html:form action="/blahblah" target="name of the target where to submit" method="post">
    hope it helps
    Vassili Skarine

  • Unable to refresh parent swing  form components after returning from child

    Hi,
    Not able to refresh the parent swing form components after returning from the child form.
    I am having problem in setting/resettig values to the parant swing form components after returning from child form. In parent form, I am entering values in some of the fields and clicking on Search button in parent form which will open a child window with the search results in JTable. Now selecting a row and writing the selected data to an ArrayList and returning back to the parent. I am able to see the values in the ArrayList, but not able to set any value to any of the parent form components by using the formtextfield.setText("value").
    Thanks
    Yakshak

    create another project
    a frame with a formattedTextfiled and a button
    the button to open a child window
    in the child window use say a JTextField to simulate a search result (type in some dummy data)
    now add the arraylist code that produces the problem
    if this stripped-down version of your program has the same problem, post all of the stripped-down code,
    so we can see what you're doing.

Maybe you are looking for

  • My internal camera doesn't work. How do I fix it?

    When I go to use applications such as photo booth, facetime, or skype, it shows that the camera is unavailable. Last time I checked my internal webcam was working just fine. I didn't drop my macbook or do anything to it. How do I fix this?

  • My Mac Pro Desktop Shows no Sign of Life, Is it dead?

    I have a 2009 Mac Pro Desktop 12 core 96 gig ram. It's a refurbished Mac. Anyways one night while on a website doing my homework the Mac froze up and I couldn't do anything, so I shut it down by holding the power button. Next morning when I tried to

  • Routing with a multihomed Mac

    Hi, I have a Mac running Leopard 10.5.4 with two network cards in it, and I'm trying to get it to act as a router. The setup is very simple: A ---- M ---- B M is the Mac with two nics. The nic (en0) on computer M connected to computer A has an IP of

  • LMS 4.2 possibility to md5 checksum all ios images in repository?

    Hi, Recently we upgraded a switch with an image from the repository in LMS. After the installation of the image it seemed corrupt. My question now is : Can we do a MD5 checksum on all the images in the local repository to verify that all images are o

  • Can soemone explain this code to me

    can someone explain this code to me import javax.swing.*; import BreezySwing.*; import java.util.Random; public class PennyPinch extends GBFrame      private JButton enterButton;      private JTextArea outputArea;      private int[][] board = {{1,1,1