Tree Node - Open new FORM

Dear all.
How can i open new FORM, when i double click at (tree) node.
Best Regards
node
|__node1
|__node11 <-- double click and open new FORM
|__node12
|__node2
|__node21
Message was edited by:
First_Step

Whe-tree-node-activated trigger
declare
     pl_id paramlist;
     value1 varchar2(100) ;
begin
-- Checks whether the trigger node is a leaf not or not if yes
-- Call the Corresponding form else do nothing
if (Ftree.Get_Tree_Node_Property('tree_block.tree1', :SYSTEM.TRIGGER_NODE, Ftree.NODE_STATE)= 0) THEN
--CREATE PARAM LIST FOR CALL_FORM     
     pl_id:=get_parameter_list('userparam');
if(id_null(pl_id)) then
     pl_id:=create_parameter_list('userparam');
else
destroy_parameter_list(pl_id);
     pl_id:=create_parameter_list('userparam');
end if;
--ADD NEEDED PARAMETERS
add_parameter(pl_id,'user_name',text_parameter,:parameter.user_name);
--HERE NODE VALUE IS FORM NAME
value1:=Ftree.get_tree_node_property('tree_block.tree1',     :system.trigger_node,ftree.node_value);
call_form(value1,hide,no_replace,no_query_only,pl_id);
END IF;
end;
jeneesh

Similar Messages

  • Error opening new form via Call_form

    I wrote a forms that captures error code from the calling forms and shows message_text, cause and action for that error.
    When calling form causes a ORA-00054 error (lock record), I cannot call the form that displays because focus is not passed to called form.
    What can I do? I need to call this form to show message_text, cause and action.

    Hi Archana,
    There are many ways to pass values between forms.
    1. You define a global variable before issuing a call/open/new form and use the value in the called/opened form.
    2. Create a database package spec and define variables there. Use them to set values and read from other forms.
    3. Create a parameter list and pass the list to the call/open/new form built-in and read from there.
    If you explain your usecase more, we can suggest you a good way to implement it.
    -Arun

  • Opening new form

    Hi,
    After opening new form in separete module,
    I want to pass the values of one form to another form , through a global variable.
    Help me.
    Archana V.
    Edited by: Archana V on Dec 28, 2009 10:11 AM

    Hi Archana,
    There are many ways to pass values between forms.
    1. You define a global variable before issuing a call/open/new form and use the value in the called/opened form.
    2. Create a database package spec and define variables there. Use them to set values and read from other forms.
    3. Create a parameter list and pass the list to the call/open/new form built-in and read from there.
    If you explain your usecase more, we can suggest you a good way to implement it.
    -Arun

  • How to open new form with set value

    I have two forms CLIENT and ORDERS who are connected by "client_id" in a one to many relationship [one client can have many orders]. What code to I put in the button so that that when I click on it from the CLIENT table, it goes to the ORDERS form with just the orders that match that "client_id"? The application is in oracle 9i developer using swing.
    Here's what I have so far, code to open the form without the binding
    //Open Order Form
    FormIcdClientApplicationView frameTarget = new FormOrderApplicationView(getPanelBinding());
    frameTarget.setVisible(true);
    // Close this window
    this.setVisible(false);

    Hello,
    This is the Forms forum. I am sure you will have more chance to get answer in the JDeveloper forum.
    FRancois

  • Tree Node In Oracle Forms

    Hell ow my dear Fiends
    I am the beginner in oracle forms
    I want to create a tree node below
    For example
    Purchase order
      Forms
              POM1010
      Reports
              Pom2010
      Queries
              POM3010
    Human Resource Management
       Forms
              POM1010
      Reports
              Pom2010
      Queries
              POM3010

    Hi,
    You can see
    https://forums.oracle.com/thread/512425
    or
    https://sites.google.com/site/craigsoraclestuff/oracle-forms---how-to-s/forms-how-to-create-a-hierachical-tree-form

  • Clonned server did not open new form after login

    Hi experts,
    After login sucessfuly, when click any form, it did not open any new form and not return any form. Can you please
    help me in this case.
    Thanks

    Please check whether you have any errors in the database log file or not.
    I could not find any error regarding the issue. Please give me step by step if you can assist to sort out
    the issue. I have no much experience regarding such issue. So I need more clearance and step by step instructions.Please rename Apache log files, restart the services, then reproduce the issue and check the log files.
    Also, please check if you have any errors in Jinitiator/JRE console window.
    Thanks,
    Hussein

  • Midlet Application : opening new form

    Hello,
    I want to create a midlet aplication. I am using Sun's wireless toolkit. in the application, the user is presented. with the uname and psswd textbox. on successful login, after displaying the alert, I want to show another form, where the user can input some data, and then saves the form. How can display some different form from this midlet app. suggest please. below is my code.
    the function doLogin verifies the user authentication.
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.lcdui.*;
    public class UserLogin extends MIDlet implements CommandListener
         private Display display;
         private TextField userName,password;
         public Form form;
         private Command login,cancel;
         private Image img, imge, img2;
         public UserLogin() {
              form = new Form("Sign in");
              userName = new TextField("LoginID:", "", 30, TextField.ANY);
              password = new TextField("Password:", "", 30, TextField.PASSWORD);
              cancel = new Command("Cancel", Command.CANCEL, 2);
              login = new Command("Login", Command.OK, 2);
              try{
                   img = Image.createImage("/logo.png");
                   imge = Image.createImage("/front_left1_bad.png");
                   img2 = Image.createImage("/Congratulations-1.png");
              }catch(Exception e){
                   System.out.println(e.getMessage());
         public void startApp() {
              display = Display.getDisplay(this);
              try{form.append(img);}catch(Exception e){}
              form.append(userName);
              form.append(password);
              form.addCommand(cancel);
              form.addCommand(login);
              form.setCommandListener(this);
              display.setCurrent(form);
         public void pauseApp() {}
         public void destroyApp(boolean unconditional) {
              notifyDestroyed();
         public void validateUser(String name, String password)
              String result = DoLogin.doLogin(name,password);
              System.out.println("THE RESULT IS:"+result);
              if(result.equals("T"))
                   showMsg();
              else if(result.equals("F"))
                   tryAgain();
         public void showMsg() {
              Alert success = new Alert("Login Successfully", "Your Login Process is completed!", img2, AlertType.INFO);
              success.setImage(img2);
              userName.setString("");
              password.setString("");
              display.setCurrent(success, form);          
         public void tryAgain() {
              Alert error = new Alert("Login Incorrect", "Please try again", imge, AlertType.ERROR);
              error.setTimeout(900);
              error.setImage(imge);
              userName.setString("");
              password.setString("");
              display.setCurrent(error, form);
         public void commandAction(Command c, Displayable d) {
              String label = c.getLabel();
              if(label.equals("Cancel")) {
                   destroyApp(true);
              } else if(label.equals("Login")) {
                   validateUser(userName.getString(), password.getString());
    }

    Hello,
    First of all thanks for the reply. Is there any IDE to write the midlet application which like highlights the keywords and shows format etc. I am using wordpad and Sun's WTK, as I am new to midlet development its a bit hard to find the mistakes using those.
    Once again, If in a form I want to generate variable number of textboxes based on a database reply How should I do it, I did the following but it didnt work. It didn't also added the command buttons to the new screen. I bolded the part didnt work in my code.
    public void showMsg() {
              Alert success = new Alert("Login Successfully", "Your Login Process is completed!", img2, AlertType.INFO);
              success.setImage(img2);
              addCform = new Form("Add Concern");
              userName.setString("");
              password.setString("");
              display.setCurrent(success,  addCform);
              title = new TextField("Title:", "", 10, TextField.ANY);
              desc = new TextField("Description:", "", 30, TextField.ANY);
              addCform.append(title);
              addCform.append(desc);
              *cancelC = new Command("Cancel", Command.CANCEL, 2);*
    *          save = new Command("Save", Command.OK, 2);*
    *          form.addCommand(cancelC);*
    *          form.addCommand(save);*
              *for(int i=0;i<5;i++)*
    *               txtbox= new TextField("Text","",10,TextField.ANY);*
    *               addCform.append(txtbox[i]);*

  • Getting FRM-40010 Error While opening new form  .fmx

    Hi,
    Oracle apps : 11.5.10.2
    Forms : Forms 6.0
    I'm creating a custom form by using one oracle apps table.I created a basic form by using template.fmb and then saved it to directory "/dir1" and run this form by connecting to oracle apps database.
    When I try to open .fmx from this directory ('/dir1') I'm getting FRM-40010 error.When I checked FORM60_PATH = It's showing /u01...../au/11.5.0/resource.I don't see "/dir1" in that path?
    Do I need to modify forms60_path ?
    Do I need to register this form before running as it's using table from Oracle apps schema?
    Thanks,
    Kiran

    When I try to open .fmx from this directory ('/dir1') I'm getting FRM-40010 error.When I checked FORM60_PATH = It's showing /u01...../au/11.5.0/resource.I don't see "/dir1" in that path?You need to set FORMS60_PATH and include /dir1 in this path.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FRM-40010+&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Do I need to modify forms60_path ?Yes.
    $ export FORMS60_PATH=$FORMS60_PATH:/dir1
    Do I need to register this form before running as it's using table from Oracle apps schema?Yes.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Register+AND+Custom+AND+Form&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Custom+AND+Form&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Is Tree node open or closed ?

    How do I check for this ? I`m using expandChildrenOf to expand all children of a clicked node (label). I would like it to reverse it (pass 'false' as second arg to expandAllChildren) if the node is already open. But how do I know its open ? Have looked through the docs without luck. Also, can this be done by clicking the small triangle instead of the label ?
    Any help appreciated...

    Why didnt I think of that ??
    Thanks !!

  • Opening new forms using jbutton

    Hi i'm new to java, and i am currentley building an interface which has three buttons(cars,vans,red car). I have managed to create a class that opens a new window when the car button is clicked. However i am unsure of how to create different windows for when the other buttons are clicked.
    Heres my code ive based it on an example i found on here.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    public class Interface extends JPanel implements ActionListener {
    JDialog dialog;
    public Interface(JFrame f)
    dialog = new JDialog(f, "dialog");
    dialog.getContentPane().add(new JLabel("hello world", JLabel.CENTER));
    dialog.setSize(400,300);
    dialog.setLocation(425,200);
    public void actionPerformed(ActionEvent e)
    if(!dialog.isVisible())
    dialog.setVisible(true);
    else
    dialog.toFront();
    public JPanel getPanel()
    JPanel panel = new JPanel();
    JPanel selectPanel = new JPanel();
    JPanel ControlPanel = new JPanel();
    selectPanel.setBorder(BorderFactory.createCompoundBorder(
    BorderFactory.createTitledBorder("Select Piece Type:"),
    BorderFactory.createEmptyBorder(5,5,5,5)));
    JButton cars = new JButton("Cars");
    cars.addActionListener(this);
    JButton vans = new JButton("Vans");
    JButton redcar = new JButton("Red Car");
    selectPanel.add(cars);
    selectPanel.add(vans);
    selectPanel.add(redcar);
    panel.add(selectPanel);
    return panel;
    public static void main(String[] args)
    JFrame f = new JFrame();
    Interface ae = new Interface(f);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(ae.getPanel(), "North");
    f.setSize(400,200);
    f.setLocation(200,200);
    f.setVisible(true);
    Thanks for any help

    Thanks for the reply, i am now having trouble adding buttons to the dialog box. This is the code i am using:
    dialog = new JDialog(f, "dialog");
            dialog.getContentPane().add(new JLabel("hello world", JLabel.CENTER));
            dialog.setSize(400,300);
            dialog.setLocation(425,200);
            JButton buttonQuestion = new JButton( "Question" );
            dialog.getContentPane().add(buttonQuestion);For some reasson this turns the whole dialog pane into a button. So all i get is a dialog box with question in the middle. What i need is the hello world label to be displayed, with the questin button underneath
    Thanks for any help

  • How to open new form and exit from the calling form on dual/multi language?

    using form 10g 10.1.2.0.2.
    i have dual language application 1 english & 1 arabic and i created forms identically each respectedly to call and switch every forms when user choose any language it uses.
    say im in currently in english. how we can call the arabic module and exit totally in english module , vice versa?
    also the form system messages. how we can switch it between two language?

    NEW_FORM() will totally replace the calling module.
    Francois

  • New form opens up in back of Menu Form in Web Deployed Form

    Hi,
    I am having trouble with my web-deployed form. I have one form that has toolbars and after selecting from the menu for another form to open up, the new form opens up in back of the previous form and I'd have to minimize the previous form in order for new form to be active. Is there any way that I can have the new form open up above the previous form? Also, do you know any good sites where I can get tips on web-deployed forms.
    Thanks,
    Kristine

    Kristine,
    what code are you using to open new forms (call_form, open_form, new_form).
    I have a similar application (custom login module and custom menu), and I run my modules from the menu using
    call_form(<module_name>,HIDE,DO_REPLACE);
    This hides the custom login module and displays the called module.
    Hope this helps
    Gerald Krieger

  • Opening a new form from a button places it behind the calling form.

    From the sales order form clicking a schedule button opens up a new non modal window . On this window I need to add a new button to open a new form(SOO.fmb) .
    I tried using the FND_FORM.EXECUTE function, the new form opens but it is positioned behind the sales order form. I tried using call_form , even this positions the new form behind the sales order form.
    How do I open the new form as the active form ?
    thanks
    satya

    Please clarify what you are talking about. Is this an Oracle Applications (i.e. E-Business) form or is this a form/application you created? What product versions are you using? Do not provide product names like 10g, 11g, etc. Please provide product versions.
    That said, if you are opening new form or browsers using WEB.SHOW_DOCUMENT, there is a known Sun bug which causes this problem when using the Sun JRE 1.6.0_xx. This issue can be worked around by disabling the JRE setting "Enable the next generation Java Plugin...". This setting is found on the Advanced tab of the JRE Control Panel under "Java Plugin". This bug is expected to be fixed in Sun 1.6.0_18. This version is not available to the public at this time.

  • How do we make a newly created tree-node the currently selected one?

    Hi,
    We are using JHeadstart 10.1.3 - Tree Generation. We are running into several issues with the trees, especially upon creation of new tree nodes. The Form in our Tree-Form page is Saved. At that point, we would like the new node to be the selected node in the tree (and also in the tree bean).
    How do you believe can we do this? Right now, after creating the new node, we have no node selected - although it seems that the new node is selected as the normally synchronized form on the right shows that node.
    Thanks for any suggestions!
    Lucas

    Steven,
    I had not upgraded to Service Update 1 - was using Build 91. After upgrading, I see some difference, but not entirely the result I was looking for.
    In a Tree-Form page on Employees, when I added an employee at the same level it still did not seem to be automatically selected.
    Was wondering whether perhaps this has to do with the following comment from the source code:
              // this happens when posting back to the same node level in the tree:
              // the root node binding has no children in that case, causing derivation
              // of focus row key to fail, have to find out why root node children
              // are lost. Work around for now: return the focus row key as set by
              // the user clikcing on the nodeIf not, can you explain what this comment refers to?
    thanks for your help.
    Lucas

  • OPEN FORM WHEN-TREE-NODE-SELECTED

    hello all...
    i have a tree and i wanna when i click on the node another forms open due to form name
    i have table includes form_if,form_name " as in H.D.D"
    when i present all nodes and i click on the node the form opened and when i click on other node from the tree
    " the last previous selected node also opened and when i close it the new form is opened and so on"
    the code in when-tree-node-selected is
    DECLARE
    node_value varchar2 (100);
    frm_name varchar2 (100);
    path varchar2 (100);
    BEGIN
    node_value := ftree.get_tree_node_property('block33.sub_TREE',:SYSTEM.TRIGGER_NODE, FTREE.NODE_VALUE);
    select FRM_NAME into frm_name
    from forms_list
    where FO_ID = node_value
    path :=(frm_name||'.fmx');
    call_form(path);
    path:=null;
    frm_name:=null;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN NULL;
    END;

    Hi,
    >
    when-tree-node-selected
    >
    Fires when a node is selected or deselected.
    So your code is getting executed for selection and deselection
    use SYSTEM.TRIGGER_NODE_SELECTED to check
    IF SYSTEM.TRIGGER_NODE_SELECTED THENRegards
    Yoonas

Maybe you are looking for

  • Documents not showing in app

    When I open the HP AIO Printer Remote app on my computer and press Print Documents under Controls, I only see PDF files. This means I can't print a document that is on my computer from the app unless it is a PDF.  I can open the document and print fr

  • How to delete file from DW welcome screen

    Don't know much about CS3, but learning. Erased some files, started over again, but noticed the name of the file/site is still showing on the "welcome" screen when I open CS3. Can't find a way to delete it. Any suggestions? Thanks

  • Firefox 4 appears to be causing my graphics card to stop responding for no reason, since upgrading to 4.0.

    I'm not sure if its a common occurance for other users, but since the 'hardware accelerated support' with Firefox 4 release, firefox seems to regularly cause my graphics card (Nvidea GT320M) on my laptop to 'stop responding' for a few seconds every s

  • Changing the default port 1433 in SQL 2005 on an ECC 6.0 system

    Hello everybody, There is a requirement to change the default port of MS SQL 2005 from 1433 to a different port. I am using SAP ECC 6.0 running on an ABAP stack. I would like to know what changes need to be done from the SAP end to achieve it.  Any p

  • DBCA silent installation

    Hi, As part of an automated Oracle 10g installation I call dbca with a response file using the following switches: dbca -progress_only -sysPassword xxx -systemPassword yyy -responseFile somefile.rsp When I use the option -progress_only I get, at the