Calling a form on HTree Node Click

i need a help on calling a form on HTree Node Click.
the details as follows
### THIS IS MY TABLE ###
SQL> DESC MENU_OPTION
Name Null? Type
NAME_CODE NOT NULL VARCHAR2(20)
OPTION_NAME NOT NULL VARCHAR2(50)
LINK_NAME_CODE NOT NULL VARCHAR2(20)
MAIN_OPTION VARCHAR2(20)
DATAID NOT NULL NUMBER
FORM_NAME VARCHAR2(50)
### THIS IS MY TREE ###
DECLARE
htree ITEM;
v_ignore NUMBER;
rg_emps RECORDGROUP;
BEGIN
htree := Find_Item('tree_block.htree4');
rg_emps := Find_Group('emps');
IF NOT Id_Null(rg_emps) THEN
DELETE_GROUP(rg_emps);
END IF;
rg_emps := Create_Group_From_Query('rg_emps',
'select -1, level, OPTION_NAME, NULL, to_char(NAME_CODE) ' ||
'from MENU_OPTION '||'connect by prior NAME_CODE = LINK_NAME_CODE '||
'start with MAIN_OPTION = ''TOP_MENU''');
v_ignore := Populate_Group(rg_emps);
Ftree.Set_Tree_Property(htree, Ftree.RECORD_GROUP, rg_emps);
END;
### WHAT I WANT IS ####
The Tree is working fine
when i click on the node i want to call_form where
FORM_NAME matches with the OPTION_NAME
I Tried below code.. but i don't know how to call_form
WHEN-TREE-NODE-ACTIVATED
Declare
LN$I Pls_integer ;
LC$Node Varchar2(60);
Begin     
IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
     LC$Node := FTREE.GET_TREE_NODE_PROPERTY('TREE_BLOCK.HTREE4', :SYSTEM.TRIGGER_NODE, FTREE.NODE_VALUE);
-- how to call the form????? .....
End if ;
End;
Anyone can help

Dear Sis,
I'm posting the code again
### THIS IS MY TABLE ###
SQL> DESC MENU_OPTION
Name Null? Type
NAME_CODE        NOT NULL VARCHAR2(20)
OPTION_NAME      NOT NULL VARCHAR2(50)
LINK_NAME_CODE   NOT NULL VARCHAR2(20)
MAIN_OPTION               VARCHAR2(20)
DATAID           NOT NULL NUMBER
FORM_NAME                 VARCHAR2(50)### THIS IS MY TREE ###
DECLARE
htree ITEM;
v_ignore NUMBER;
rg_emps RECORDGROUP;
BEGIN
htree := Find_Item('tree_block.htree4');
rg_emps := Find_Group('emps');
IF NOT Id_Null(rg_emps) THEN
DELETE_GROUP(rg_emps);
END IF;
rg_emps := Create_Group_From_Query('rg_emps',
'select -1, level, OPTION_NAME, NULL, to_char(NAME_CODE) ' ||
'from MENU_OPTION '||'connect by prior NAME_CODE = LINK_NAME_CODE '||
'start with MAIN_OPTION = ''TOP_MENU''');
v_ignore := Populate_Group(rg_emps);
Ftree.Set_Tree_Property(htree, Ftree.RECORD_GROUP, rg_emps);
END;### WHAT I WANT IS ####
The Tree is working fine
when i click on the node i want to call_form where
FORM_NAME matches with the OPTION_NAME
I Tried below code.. but i don't know how to call_form
WHEN-TREE-NODE-ACTIVATED
Declare
LN$I Pls_integer ;
LC$Node Varchar2(60);
Begin
IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
LC$Node := FTREE.GET_TREE_NODE_PROPERTY('TREE_BLOCK.HTREE4', :SYSTEM.TRIGGER_NODE, FTREE.NODE_VALUE);
-- how to call the form????? .....
End if ;
End;

Similar Messages

  • Call another form with a button click (Oracle 10g)

    I have two forms. (One called Main Form and 2nd Called Notification summary)
    I want to call Main Form from notification summary. I have a unique column which is both in Main form and notification summary.
    I want to pass that unique column from notification summary to main form so that specific detail open in main form.
    Please suggest solution.
    Edited by: 871590 on Jul 11, 2011 4:29 PM

    Starting with a question: why do you need an own (main) form, if you need to call that form in another context, it's fine. If you will use this functionality only once, consider a second canvas (content or stacked, whatever fits better) or a second window within your form (notification).
    If its only on value you need to pass use a data parameter or a global variable; the first would be preferable to me.
    If there are more values in your column you may use global record group or (preferable to me) some kind of "temporary" table. It may be a global temporary table as provided by the oracle db or you are doing this with a normal permanent table. For the latter you will have slight higher amount of programming for organisational purposes.

  • Call a form by click a tree node

    Hi,
    How can I created tree and i wanna call form when tree node selected
    Thank you
    MNH

    Hi ,
    Use the "WHEN-TREE-NODE-ACTIVATED" Trigger , and you can retrive the selected node using :
    - FTREE.GET_TREE_SELECTION.
    - FTREE.GET_TREE_NODE_PROPERTY.
    Regards,

  • How to call a form with dabble clicking on a record with one time where

    Hi All,
    How to call a form with dabble clicking on a record with one time where clause. I mean when i dabble click on the current record i want to call another form with details of the
    record with onetime where clause. Can anyone help me in this regard.
    Now i am calling a form with parameter with onetime where but this should avoid.
    Thanks in advance
    Arif

    Hello,
    I mistakenly mark it as solved. There is a problem remain. when i placed the code below it do not execute with the where condition. I mean the condition to execute is not work.
    All records executes. Please correct my code--
    Here the WHEN-BUTTON-PRESSED-trigger on the Edit-Button:
    :GLOBAL.MODE:='EDIT';
    :GLOBAL.REQ_ID:=:PROBLEM_REQUEST.REQ_ID;
    CALL_FORM('REQUEST_ID_PARAM',NO_HIDE,DO_REPLACE,NO_QUERY_ONLY);And also, WHEN-NEW-FORM-INSTANCE-trigger of REQUEST_ID_PARAM:
    DEFAULT_VALUE(NULL, 'GLOBAL.MODE');
    DEFAULT_VALUE(NULL, 'GLOBAL.REQ_ID');
    IF :GLOBAL.MODE='EDIT' THEN
    GO_BLOCK('PROBLEM_REQUEST');
    EXECUTE_QUERY;
    SET_BLOCK_PROPERTY('PROBLEM_REQUEST', INSERT_ALLOWED, PROPERTY_FALSE);
    END IF;Arif

  • How to run a form using tree node selection??

    hi...
    i have populated a tree with all the form name.There is a particular id for every form.i want to show a form using tree node selection.What i did...i write a trigger in button's click event when the tree node is selected then i get a id.if id=1 then open_form('test.fmx').when i want to execute this code then it is showing the same form 2 times.Can anyone help me to solve my problem?If so plz tell me what code i have to write to show a form using node selection?.

    I've done the same thing, and i think it works fine.
    Check this code (Sorry for the long post, but i cannot find how to attach files.
    PACKAGE menu_pk IS
    --Initialization of the menu.
    procedure Init;
    --Called from WHEN-TREE-NODE-EXPANDED
    procedure Expanded;
    --Called from WHEN-TREE-NODE-ACTIVATED
    procedure ExecuteCommand;
    END;
    PACKAGE BODY menu_pk IS
    MENU_NAME constant varchar2(30) := 'menu.menu';
    cursor c_menu(pRoot in varchar2) is
    select apm_code, apm_parcode, apm_descr, decode(apm_type, 0, Ftree.EXPANDED_NODE, Ftree.LEAF_NODE) apm_type,
    decode(apm_type, 0, 'menu', 1, 'form', 2, 'report') || '.ico' apm_icon
    from app_menu
    where apm_parcode = pRoot
    order by apm_code asc;
    procedure Init is
         new_node ftree.node;
    begin
         for i in c_menu('root')
         loop
    new_node := Ftree.add_tree_node(MENU_NAME, FTree.ROOT_NODE,
    Ftree.PARENT_OFFSET, Ftree.LAST_CHILD,
    i.apm_type, i.apm_descr, i.apm_icon, i.apm_code);
         end loop;
    end;
    procedure FillNode(pNode in FTree.Node) is
         new_node ftree.node;
    begin
         for i in c_menu(FTree.get_tree_node_property(MENU_NAME, pNode, FTree.NODE_VALUE))
         loop
    new_node := Ftree.add_tree_node(MENU_NAME, pNode,
    Ftree.PARENT_OFFSET, Ftree.LAST_CHILD,
    i.apm_type, i.apm_descr, i.apm_icon, i.apm_code);
         end loop;
    end;
    procedure DeleteNodeChilds is
    node FTree.NODE;
    begin
         loop
    node := FTree.Find_Tree_Node(MENU_NAME, '',
         FTree.FIND_NEXT_CHILD, FTree.NODE_VALUE,
         name_in('system.trigger_node'), name_in('system.trigger_node'));
              exit when Ftree.ID_NULL(node);
              FTree.delete_tree_node(MENU_NAME, node);
         end loop;
    end;
    procedure Expanded is
    begin
         if (FTree.GET_TREE_NODE_PROPERTY(MENU_NAME, :system.trigger_node, FTree.Node_State) = FTree.EXPANDED_NODE) then
         menu_pk.FillNode(name_in('system.trigger_node'));
         else
              menu_pk.DeleteNodeChilds;
         end if;
    end;
    procedure ExecuteCommand is
    cursor c_command(pCode in varchar2) is
    select apm_form, apm_type
    from app_menu
    where apm_code = pCode;
    fCommand c_command%rowtype;
    fMenuCode varchar2(20);
    begin
         -- if it is as menu node then exit.
    if (not FTree.Get_Tree_Node_Property(MENU_NAME, :system.trigger_node, FTree.NODE_STATE) = FTree.LEAF_NODE) then
         return;
    end if;
    fMenuCode := FTree.Get_Tree_Node_Property(MENU_NAME, :system.trigger_node, FTree.NODE_VALUE);
         open c_command(fMenuCode);
         fetch c_command into fCommand;
         close c_command;
         if (fCommand.apm_type = 1) and (fCommand.apm_form is not null) then
              globals.Set_MenuChoice(fMenuCode);
              OPEN_FORM(fCommand.apm_form);--, ACTIVATE, SESSION);
         end if;
    end;
    END;
    The menu table definition follows.
    create table APP_MENU
    APM_CODE VARCHAR2(10) not null,
    APM_PARCODE VARCHAR2(10) not null,
    APM_DESCR VARCHAR2(40) not null,
    APM_TYPE NUMBER(1) not null,
    APM_FORM VARCHAR2(50)
    alter table APP_MENU
    add constraint APP_MENU_PRI primary key (APM_CODE);
    Hope this helps

  • How to use Heirarchical Tree to call others forms

    Dear All:
    I need to use a Heirarchical Tree in the MAIN Page to call ALL FORMs that I made. I mean when I click the node I can get the specified form.
    Would you please provide me with an example how to make it.
    Cheers

    Hi, Was you able to discover how to create a hierarchical tree to call other forms?
    Thanks,
    Warren

  • Urgent:Error While calling one form from another form

    Hi,
    i am using a form in which zoom functionality is enabled.From this form if i am clicking view->zoom it should open another form which should accept two parameters from the first form.But whenever i am clicking on zoom its giving the following error.
    FRM-47023:No such parameter named G_QUERY_FIND exists in form
    XX_EMPLOYEE_CONVERSION(Name of the form which i am calling from first form)
    When i am clicking 'ok' then it shows the error
    FRM-40105:Unable to resolve reference to item PARAMETER.G_QUERY_FIND
    Eventhough i have developed my form using template.fmb which uses the parameter G_QUERY_FIND why this error is coming?
    Can anyone suggest a solution for this.
    Thanks in advance

    PARAMETER.G_QUERY_FIND is one of he objects in the APPSTAND.fmb. You will need to Subclass all of the objects in APPSTAND.fmb in your custom form. If you do not have a copy of this file in your FORMS60_PATH, I suggest you put a copy there. If you don't have a FORMS60_PATH specified then I would highly suggest adding this entry to your Forms Home in the Registry. Also, you will want all of the libraries in the AU_TOP/Resources folder as well.
    I also suggest looking at the Oracle Applications Developer's Guide (http://download.oracle.com/docs/cd/B25284_01/current/acrobat/115devg.pdf) as it outlines all of the required objects you must have in your form and reports.
    Hope this helps.
    Craig...

  • Calling a form from the main form

    Hello,
    As you can see here , i want to open a form, when i click on a subitem of ELEVI menu. so i did that, but that form is shown in the back of the main form.. i wanna that form being shown as a child form of the main form, or something like that..
    also, i cannot close the second form, why?
    the code for opening that form when clicking a submenu item is:
    begin
         call_form('elevi', no_hide, no_replace, query_only);
    end;Greets,

    well, the menu for the called form does not exist, so i don't have any menu on this second form, just buttons. the code for calling the form when clicking the submenu item, is:
    begin
         call_form('elevi',no_hide, no_replace, query_only);
    end;but i still can open multiple times.. why? can u be please more explicitly on how to do this?
    edit:
    it worked like this: (didn't know if it's a good solution, but it works)
    begin
         if id_null(find_form('elevi')) then
         call_form('elevi',no_hide, no_replace, query_only);
         else go_form('elevi');
         end if;
         end;Thanks for replies :)
    Edited by: Roger22 on 15.03.2009 10:41

  • Calling custom form to standard form based on passing parameters by pers..

    Hi Everyone,
    I have a urgent requirement related to form personalization like Calling custom form to standard form based on passing some parameters and after click on save icon then custom form should be enable and open. how to achieve this functionality through personalization.
    In brief ......Responsibilty -> Enterprise Asset Management->work order form and in this form's tool menu attach a custom form which comes other responsibility(here no issue) issue is that which trigger and condition used and what should be Action attribute/option. How to disable or enable tool form on some specific navigating the form.
    and how pass the parameter through current using form fields.
    plz help me out........it's urgent.
    thanks,
    Abh....

    Abh,
    Forms Personalization is a feature of the Oracle Enterprise Business Suite (EBS) not a feature of Oracle Forms. Please post your question in the General EBS Discussion forum. If you have a general Forms question, by all means, ask it here! ;-)
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Call a Form using Webutil from the Menu loose focus on the applet

    Hello,
    I have the following problem:
    When calling a form using webutil from the menu the focus on the applet (I mean the Forms Application window) is lost and I have to click on the window to get back the focus on the application.
    Any advice ?
    Env: Forms 9i / Webutil 1.06
    Rgds,
    Philippe

    Try to use the NO_HIDE parameter in the CALL_FORM() built-in.
    Call_Form( 'the_form', NO_HIDE ) ;Or maybe, in the[b] When-New-Form-Instance trigger of the called form, return the focus to the calling form
    Go_Form( Get_Application_Property( CALLING_FORM ) ) ;Francois

  • Calling another form from current form

    Hello everyone,
    After entering information into a form, I want to call another form then I want to return to the previous form without loosing the information I entered into it....
    Whats the pl/sql code to do this...how do i do it?
    Thank u...
    Edited by: user10746194 on Jan 16, 2010 9:30 AM

    You should put this code at the place where you want to appear the called form. that is the child/first form.
    if you want to call the form on button click, place the code in when-button-pressed trigger of the respective button in the first form.
    Edited by: Dora on Jan 17, 2010 10:54 AM

  • Calling another Form (Sol;ved)

    Gurus,
    I am in one form and when I click a button say "Next", I have to open another Form. The calling form should be closed.
    Can you help me with supporting materials to accomplish this?
    Also I need to know what are the options available with the Transaction which happened in the calling from before loading the called Form.
    Thanks in advance.
    Message was edited by:
    Forms

    Hi,
    Refer to OPEN_FORM,CLOSE_FORM,NEW_FORM built-ins in the form builder help menu.You have all the examples there for reference.
    Thanks

  • Syntax for calling a form & passing a query condition

    I have a stored PL/SQL procedure where I am attempting to link to a master detail form from a button created in the procedure. The procedure is called from a form based on a table.
    I want to pass an id from the first form to the second when the user clicks the button and have that id bring up the master record in the calling form (query condition to be automatically executed).
    I am using the Portal technical FAQ 10.10 as a reference. However, I must be off in the syntax. Here's what I have:
    objectId - contains id from calling form
    OBJECT_ID - column name in called MD form
    elsif (button = 'Subject Matters') then
    PORTAL30.wwa_app_module.link(
    p_arg_names =>
    PORTAL30.wwv_standard_util.string_to_table2('_moduleid:_show_header:OBJECT_ID:_OBJECT_ID_cond'),
    p_arg_values =>
    PORTAL30.wwv_standard_util.string_to_table2('2215270925:YES:'| |to_char(objectID)| |':%3D'));
    The best I get is the id passed and the called form opened in INSERT mode.
    I have been playing with this for days!
    If anyone spots the error in my code and could point it out, I'd greatly appreciate it.
    Regards,
    Judy

    try this
    String b = (String)am.invokeMethod("getValue", params);
    Thanks,
    Prasanna

  • How to Call Oracle Form From Oracle ADF

    Hi All,
    Version - Oracle Jdeveloper 11.1.1.5
    In Oracle Adf - when i click on Button how to call oracle form?
    Please help....
    Thanks..
    Sk

    And there is a tool called oraFormFaces that has some advanced linking api to access forms etc. Do a google search to find info on this.

  • How to call OA form in workflow notification

    Hi,
    Developed one customization workflow for Quotation, i need to call that form in notification.
    i mean if we click on that need to open that perticular quotation.
    plz guide me.
    thanks
    Venu

    Even I'm getting the same error. Im trying to call regular form. the synatx used is XO2CORDCHG_FN:#RESP_KEY="USS_USONT_2_USS US OM ORDER_R" #APP_SHORT_NAME="ONT"
    Please help.
    Thanks.

Maybe you are looking for

  • Quicktime and iTunes Won't Open after updating to iTunes 7.3.1

    So this morning I downloaded iTunes 7.3.1, but I winged it as usual. And I only winged it because the option to upgrade was in Korean, and for some reason I can't change it to English. But anyway, I updated as usual and my computer restarted. Then I

  • Ram problem! (msi z68-gd80,g3)

    Hey there. have a problem with my new ripjaw x series ram 1866. ( and all other ram) Tried installing all 16 gb of it earlier today and apparently only the first blue and black ram slot work. Before i updated my bios to the newest one the pc wouldn't

  • Printing a PDF in Illustrator on Mac

    Could someone show me what a healthy Illustrator CS5 or CS6 Print dialog looks like on a Mac? I recently purged a bunch of outdated "Adobe PDF 7.0"-related printer files from my computer and several weeks later discovered that significant portions of

  • Flashing question mark folder on macbook pro startup. PLEASE HELP

    I have a MacBook Pro which I think is a 2011 version. When I startup the computer it comes up with the flashing question mark folder. I can't start it up via disc as I do not have the disc that came with the mac :( .

  • Hiding com.sap.pct.srm.core.action.oldwfl.approve button in UWL InBoX

    Hi, Currently I am working on SRM upgrade project . How to remove/hide approve button in UWL inbox. Below xml code, using in UWL configuration file in portal: <ItemType name="uwl.task.webflow.srm.TS90000005.SAP_SRM" connector="WebFlowConnector" defau