FRM-47321

Hi!
I want to create a h-tree for forms9i. And i get this error message "For padding tree the used datas are illegal"
But when i execute my query in sql plus i get the data!
Here is my code:
WHEN-NEW-FORM-INSTANCE-trigger:
ECLARE
htree ITEM;
v_ignore NUMBER;
rg_emps RECORDGROUP;
rg_id RecordGroup;
gc_id GroupColumn;
errcode NUMBER;
id_BAUM ITEM := Find_Item('BAUM.BAUM');
DUMMY varchar2(5);
it_id Item;
BEGIN
     DUMMY := ' x ';
     rg_id := Find_Group( 'B_TYP' );
IF NOT Id_Null(rg_id) THEN
Delete_Group( rg_id );
END IF;
rg_id := Create_Group('B_Typ');
-- Add columns to the record group
gc_id := Add_Group_Column(rg_id,'DEPTH',
NUMBER_COLUMN);
gc_id := Add_Group_Column(rg_id, 'LABEL',
CHAR_COLUMN,128);
gc_id := Add_Group_Column(rg_id, 'DATA',
CHAR_COLUMN,128);
gc_id := Add_Group_Column(rg_id, 'STATE',
NUMBER_COLUMN);
gc_id := Add_Group_Column(rg_id, 'ICON',
CHAR_COLUMN,20);
errcode := Populate_Group_With_Query( rg_id,
     'select 1 , std_bm_id_besch.typ_betrmittel ,std_bm_id_besch.typ_betrmittel , -1,NULL from std_bm_id_besch ');
-- Find the tree itself.
htree := FIND_ITEM('BAUM.BAUM');
-- Check for the existence of the record group.
rg_emps := FIND_GROUP('B_TYP');
-- Create the record group.
-- Populate the record group with data.
v_ignore := POPULATE_GROUP(rg_emps);
-- Transfer the data from the record group to the hierarchical
-- tree and cause it to display.
FTREE.SET_TREE_PROPERTY(htree, FTREE.RECORD_GROUP, rg_emps);
select distinct bez_id1_betrmit,bez_id2_betrmit,bez_id3_betrmit,bez_name_betrmit
into :navigation.bez_id1, :navigation.bez_id2, :navigation.bez_id3, :navigation.bez_name
from STD_BM_ID_BESCH
where STD_BM_ID_BESCH.ID_BM_TYP = 1;
Go_Block('AUFTRAG_ANZEIGE');
     do_key('execute_query');
END;
--EXCEPTION
--     WHEN OTHERS THEN
--     :PRIORITAET.ANZEIGE := NULL;
--Get_MENU_ITEMS;
Thanks for help.
With best regards
Nicole

I've study the oh and i've found the function:
Populate_GROUP_FROM_TREE b�t i doesn't really know how i should handle this function.
I've tried this code in my trigger but i always get the error mesaage:FRM-40738-The first argument in the procedure Populate_Group_From_Tree may not been null.
DECLARE
find_node FTREE.NODE;
node_label VARCHAR2(100);
Auftrag VARCHAR2(100);
htree ITEM;
v_ignore NUMBER;
tree_data_reg RECORDGROUP;
rg_id RecordGroup;
gc_id GroupColumn;
errcode NUMBER;
id_BAUM ITEM := Find_Item('BAUM.BAUM');
DUMMY varchar2(5);
it_id Item;
BEGIN
htree := Find_Item('BAUM.BAUM');
-- Find the value of the node clicked on.�
node_label := Ftree.Get_Tree_Node_Property(htree, :SYSTEM.TRIGGER_NODE, Ftree.NODE_LABEL);
MESSAGE(:SYSTEM.TRIGGER_NODE);
Message(node_label);
find_node := FTREE.FIND_TREE_NODE(htree,node_label,FTREE.FIND_NEXT,FTREE.NODE_LABEL,FTREE.ROOT_NODE,FTREE.ROOT_NODE);
     DUMMY := ' x ';
     rg_id := Find_Group( 'tree_data_reg' );
IF NOT Id_Null(rg_id) THEN
Delete_Group( rg_id );
END IF;
rg_id := Create_Group('tree_data_reg');
-- Add columns to the record group
gc_id := Add_Group_Column(rg_id,'STATE',
NUMBER_COLUMN);
gc_id := Add_Group_Column(rg_id, 'DEPT',
NUMBER_COLUMN);
gc_id := Add_Group_Column(rg_id, 'LABEL',
CHAR_COLUMN,128);
gc_id := Add_Group_Column(rg_id, 'ICON',
CHAR_COLUMN,20);
gc_id := Add_Group_Column(rg_id, 'DATA',
CHAR_COLUMN,128);
errcode := Populate_Group_With_Query( rg_id,
     'select 1 , 1 , auftrag_typ.auftragstyp , NULL ,auftrag_typ.auftragstyp from auftrag_typ where typ_betrmittel ='||node_label||'');
     Message(errcode);
--v_ignore := POPULATE_GROUP(tree_data_reg);
FTREE.POPULATE_GROUP_FROM_TREE('tree_data_rg', htree, find_node);
--htree := FIND_ITEM('BAUM.BAUM');
-- Check for the existence of the record group.
--rg_emps_1 := FIND_GROUP('B1_TYP');
-- Create the record group.
-- Populate the record group with data.
--v_ignore := POPULATE_GROUP(rg_emps_1);
-- Transfer the data from the record group to the hierarchical
-- tree and cause it to display.
--FTREE.SET_TREE_PROPERTY(htree, FTREE.RECORD_GROUP, rg_emps_1);
END;
With best regards.
Nicole

Similar Messages

  • FRM-47321: Data used to populate tree is invalid

    FRM-47321: Data used to populate tree is invalid
    I am populating from a record group
    Any Suggestion will be appreciated

    Hi, Ahmed!
    I have created htree using Data Query. For table POM with columns POM_ID, POM_IDH, NAME, and data:
    POM_ID POM_IDH NAME
    1||     || Name1
    2||     1||     Name2
    3||     1||     Name3
    and code in when new form instance trigger:
    ftree.Set_Tree_Property(
         'T1',
         ftree.Query_Text, 'SELECT -1, LEVEL, NAME, NULL, POM_ID
    FROM POM
    START WITH POM_IDH IS NULL
    CONNECT BY PRIOR POM_ID=POM_IDH');
    where 'T1' is name of htree.
    BR,
    Goran

  • FRM-47321 ERROR

    Hello experts...
    help me on this.. i want to populate names department wise from one table in a tree structure using Developers 2000 forms.
    i created record group and i called the following code in When-new-form-instanace trigger.
    DECLARE
    htree ITEM;
    l_rec boolean;
    BEGIN
    htree := Find_Item('BLOCK3.ITEM4');
    Ftree.Set_Tree_Property(htree, Ftree.RECORD_GROUP, 'REG_PEOPLE');
    END;
    here block3 is the block name and item4 is the Tree item.
    suggest me to get output .. help me for population of names in the tree structure.
    if possible please send code for that with an example.
    advance thanks
    madhava

    Hi,
    Where you have populate the tree. First populate tree using POPULATE_TREE built-in procedure. Then do the rest of the things.

  • Problem creating a hierarchical tree in forms builder[issue with the query]

    Hi all,
    I have 2 tables.
    box (box_id, box_name)
    item(item_id, item_name, box_id)
    In a box there are several items.
    I want to create a hierachical tree to display items that are present in each box.
    LIKE:
    |---BOX1
    | |----ITEM 1
    | |----ITEM 2
    |
    |---BOX2
    | |----ITEM 1
    | |----ITEM 2
    Currently i am trying this query:
    SELECT -1 state, box_name, 'icon' icon, box_id val
    from box b, item i;
    I don't know what value to put for level, i don't know how to code the 'connect by prior' part.
    Could you please advise me?
    Michaël.
    PS. Then i will eventually use this query in forms builder.

    Hi MichaelR
    i get the FRM - 47321 error in forms builder ..
    Hence In order to populate a tree, the Select order must retrieve 5 columns:
    STATUS, LEVEL, LABEL, ICON, VALUE u should notice this orders in ur Query this will solve the error and pls notice that the...
    My advice is to use the On Line help in ur forms builder to help u in this ...
    Initial state : number
    Node tree depth : number
    Label for the node : varchar2
    Icon for the node : varchar2
    Data : varchar2This should be in WHEN-NEW-FORM-INSTANCE-trigger in order to populate ur tree...
    another thing why don't u think of building ur tree as i did here in the following example...Pls have a look here ....
    Hope this helps...
    Regards,
    Amatu Allah.

  • Error Message for Heirarchical Tree

    Error : FRM-47321
    Can I know more about this error message please. I get the error message when do the ftree.populate_tree.
    Thanks in advance
    Magesh

    FRM-47321 error indicates that the data used to populate the tree is of improper format. Please look at the on-line documentation in Forms builder or Forms deployment guide for more details on using free built-ins.

  • Doubt in population of Hirarchical Tree List

    Hai Friends,
    I have Departments like IT,Sales,Market,Accounts in Employee Table.
    I have to populate employee names of all employees department wise in the
    Hirarchical Tree List.
    Initial Hirarchical Tree List
    =============================
    +IT
    +Sales
    +Marketing
    +Acctounts
    When Hirarchical Tree List expands
    ===================================
    - IT
    name1
    name2
    name3
    -Sales
    name1
    name2
    name3
    -Marketting
    name1
    name2
    name3
    -Accounts
    name1
    name2
    name3
    I tried with the code (copied from Forms Help ...) but when i run the form
    I am getting
         FRM-47321 Error(Data used to populate tree is invalid)
    CAN U GIVE CORRECT SOLUTION ..... URGEMT
    i need this population when ever form runs.(when-new-form-instance trigger of form)

    hi madhava,
    see below example:
    1) Start up Form Builder.
    2) Create a form (for example, hiertree).
    3) Create a block manually (for example, block).
    4) Create a canvas and go to the Layout Editor.
    5) Click on the hierarchical tree iconic button and click and drag
    it onto the canvas. This creates a tree item called, for example,
    TREE4.
    6) Create a record group (for example, RECORD_GROUP6) with the
    following code:
    SELECT 1, LEVEL, ENAME, NULL, TO_CHAR(EMPNO)
    FROM EMP
    CONNECT BY PRIOR EMPNO = MGR
    START WITH JOB = 'PRESIDENT'
    7) Go to the property palette of the record group and set the
    property "Record Group Fetch Size" to, for example, 20.
    8) Go to the property palette of the tree item, and select the name
    of the record group under the "Record Group" property.
    9) Go back to the Object Navigator and create a
    WHEN-NEW-BLOCK-INSTANCE trigger with the following code:
    DECLARE
    HTREE ITEM;
    V_IGNORE NUMBER;
    BEGIN
    --TO FIND THE TREE ITSELF.
    HTREE := FIND_ITEM('BLOCK.TREE4');
    V_IGNORE := POPULATE_GROUP('RECORD_GROUP6');
    --TO SET THE RECORD GROUP AND CAUSE THE DATA TO DISPLAY
    FTREE.SET_TREE_PROPERTY(HTREE, FTREE.RECORD_GROUP,
    'RECORD_GROUP6');
    END;
    10) Compile and run the form. Your tree with the information is
    displayed.
    Madhava guess me whom i am?
    good luck

  • Hierarchy problems

    Hi,
    I made a hierarchy on oracle forms 9i and if I want to add more columns I get
    the error frm-47321: data used to populate tree is invalid.
    my record grup looks (when it works correct):
    select 1, level, g.grup_cod, to_char(g.valoare), g.den_grup
    from grup_obiectiv g
    join contract c on g.contract_id = c.contract_id
    start with g.parent_grup is null
    connect by prior g.grup_id = g.parent_grup_id
    and when i bring one more column I get the above error
    can someone help me ?
    Thank you

    Hi,
    As Andreas mentioned, the query for the Hierarchical Tree should be adhering to the standard set of columns.
    Basically, the query for htree contains 5 parts (columns)
    1. Initial state
    2. Depth (of the tree node)
    3. Label (of the tree node)
    4. Icon (of the tree node)
    5. Data (i.e actual return value of the node, that would be passed back upon selection).
    So, if you want to have multiple values to be displayed, you might want to put them together under Label (concatenated).
    I.e you can modify your query like
    select -1, level, last_name ||', ' || first_name || ' : ' || hire_date ||' : '  || 
                           email || ' : ' ||job_id || ' : ' ||
                           salary || ' : ' || salary*1.5  label,
                  null, empno from emp
    start with ......-Arun

  • Htree and recordgroup

    hiii.....
    i have 1 htree item on form....i have creted 1 recordgroup with query " select * from table1".... table having 3 columns...
    and have folowing code
    DECLARE
    htree ITEM;
    rg_data RECORDGROUP;
    BEGIN
    -- Find the tree itself.
    htree := Find_Item('tree1');
    -- Find the record group.
    rg_data := FIND_GROUP('RG1');
    -- Add the new node at the top level and children.
    Ftree.Add_Tree_Data(htree,
    Ftree.ROOT_NODE,
    Ftree.PARENT_OFFSET,
    Ftree.LAST_CHILD,
    Ftree.RECORD_GROUP,
    rg_data);
    END;
    ........when i run above code i dont get any error..but it doesnot display anything...
    and in the status bar i get following msg...
    FRM-47321 Data used to populate the tree is invalid...
    so what is the way if i want to populate the tree with recordgroup....

    You need 5 columns. I could write them out again here or you could look at your other thread on the same subject. You don't need a new thread each day.
    Htree data display problem...
    Message was edited by:
    James Healy
    Either of your other threads will do
    recordgroup

  • Hierachical Tree in developer2k

    Hi,
    I want to create a hierarchical tree, but unable to do that. I tried do that with the help of forms help but there is some mistakes and its showing err frm-47321 "Data used to populate tree is invalid".
    Can any one help me in this regard??
    Regards,
    Shyam

    Thanks thats what i thought but hoped i was wrong.

  • Getting error message FRM-40700:No such trigger: SPECIAL20

    Hi,
    We have designed a custom report (Quote) and would like to use Special Menu's(Reports Menu) to open this custom Report. When I try to open this Report using
    REPORTS->Quote, The Report is opening seccuessfully but i am getting following error message at the bottom of screen bar.How can I clear this message ?
    FRM-40700:No such trigger: SPECIAL20
    The code which I wrote in the custom.pll is
    IF (form_name = 'OEXOEORD') THEN
    -- Enable View Order Report -- V1.4 --
    if (event_name = 'WHEN-NEW-FORM-INSTANCE') then
    app_special.instantiate('SPECIAL20', 'View Order Report');
    app_special.enable('SPECIAL20',PROPERTY_OFF);
    else
    if (event_name='WHEN-NEW-BLOCK-INSTANCE') THEN
    if block_name='ORDER' then
    app_special.enable('SPECIAL20',PROPERTY_ON);
    else
    app_special.enable('SPECIAL20',PROPERTY_OFF);
    end if;
    end if;
    end if;
    if (event_name='SPECIAL20' and block_name='ORDER') then
    param_to_pass1 := name_in('ORDER.HEADER_ID');
    select order_number into param_to_pass2 from oe_order_headers_all where header_id=param_to_pass1;
    editor_pkg.report(BSI_Quote(param_to_pass2), 'Y');
    null;
    end if;
    end if;
    Please give me valuable inputs on this issue.
    Thanks,
    HTH

    Hi,
    your package " app_special" does a call to "execute_trigger('SPECIAL20');" ,
    but there is no trigger with this name in your form. ( perhaps an Menu-item exists with this name.)
    Lock for "execute_trigger" in:
    app_special.instantiate('SPECIAL20', 'View Order Report');

  • FRM-92010 Error while saving a form in HRMS

    Hi,
    I created a new 12.1.1 instance and impletented HRMS as per doc id#145837.1.
    Applied patch 8934107, Ran DataInstall and hrglobal.drv.
    Now while saving the forms we are getting the following error: (in application.log)
    10/05/13 18:12:03.269 formsweb: Forms session <1> aborted: unable to communicate with runtime process.
    10/05/13 18:12:03.270 formsweb: Forms session <1> exception stack trace:
    java.io.IOException: FRM-93000: Unexpected internal error.
    Details : No HTTP headers received from runform
    at oracle.forms.servlet.ListenerServlet.forwardResponseFromRunform(Unknown Source)
    at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    I have also applied patch 8682249 as per doc 867501.1 (since error was the same) but still no luck.
    Please help.
    Regards,
    Neeraj
    Edited by: user556153 on May 13, 2010 6:19 AM

    Hi;
    Did you checked
    Queries Error With FRM-92101 In Many NLS Forms [ID 443922.1] << seems similar error like yours
    Forms FRM-92050, FRM-92100, FRM-92101, FRM-92102 Reference Guide [ID 444690.1]
    If its not help please enable trace
    How To Perform System Tracing For All Forms Runtime Processes? [ID 400144.1]
    Regard
    Helios

  • FRM-41211 Integration Error SSL - OracleAS 10g

    Hi.
    I have error Frm-41211 Integration Error SSL Failure Running Another Product error while calling a report from web form in oracleAS 10g.
    I have problem with RUN_REPORT_OBJECT in web forms.
    I have error: FRM-41211 SSL integration error .....
    OracleAS server began on Windoes XP SP2.
    Do you help me ?

    Hi,
    I remember having seen this issue in teh apst. My best recommendation is to work with customer support (metalink.oracle.com)
    Frank

  • FRM-41211 Integration Error SSL - Oracle Forms 10g

    Hi all.
    I have FRM-41211 Integration Error SSL Failure Running Another Product error while calling a report from web form in oracleAS 10g.
    I have problem with RUN_REPORT_OBJECT in web forms in this code:
    =====================================================
    DECLARE
    BEGIN
    repid := find_report_object('MODULE21');
    v_rep := RUN_REPORT_OBJECT(repid);
    -- jobid := substr(v_rep, length('rep60_WS70004')+2, length(v_rep));
    -- web.show_document('/reports/rwservlet/getjobid'||jobid||'?server=rep3945','_blank');
    END;
    =====================================================
    I have error: FRM-41211 SSL integration error .....
    OracleAS 10g server began on Windows XP SP2.
    Do you help me ?
    Very thanks !!

    Do you help me ?
    Thanks.

  • FRM-92101 error while running report from a button or menu

    Hi All,
    I am getting the error FRM-92101 while running report without parameter from a button or menu. I am using Developer Suit 10g. I get the error as it shows there has some configuration problem in my form. Will you please help me anyone how can i solve the problem. My previous forms running very well both with parameter and without parameter.
    Arif

    Hello Sir,
    Thanks for your cooperation. I have solved my problem by myself. The fact was that, when i tried with the following code which made my report---
    SELECT br.bid, br.bname, br.branchtxnstatus, dif.difference
    FROM branch br,
    (SELECT gladbrid branchid,
    SUM
    (CASE
    WHEN ga.gl_acc_categry IN ('L', 'I')
    THEN gd.gladbalance
    ELSE -1 * gd.gladbalance
    END
    ) AS difference
    FROM glaccount ga, glaccountdetail gd
    WHERE ga.glid = gd.gladglid
    GROUP BY gladbrid) dif
    WHERE dif.branchid = br.bid AND br.branchtxnstatus = :Br_Status
    and dif.difference!=0
    ORDER BY br.bid;
    and the code against the button or menu item is---
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('ASSET');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('http://192.168.0.21:8889/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
    ELSE
    message('Error when running report');
    END IF;
    Clear_message;
    END;
    Clear_message;
    which has shown the error FRM-92101 and didn't run the report.
    In that case I have changed the query to run the report. first of all i create a view following the query and build the report using a simple select query. that's etc. my report running fine now.
    It is mentioned that there had no error on my codes.
    Arif

  • Can not delete record from the master block ,frm-40202 field must be entere

    hi ,
    i have built a form which contain master and details blocks
    the problem is
    when i try to delete a record from the master block it gives me new serial for the transaction and when i try to save it, it says
    >frm-40202 field must be entered
    where this field is required and i cant save it
    although in another form when i delete from the master it gives me the previous record and it works properly
    if any one has any ideas pls help me
    thank u
    ------- the master block has a trigger when-create-recoder
    Declare>v_dummy number;
    Begin
    Select nvl(max(ERNT_NO),0) + 1 >Into v_dummy
    From LM_RENT_EXPNMST >Where cmp_no = :LM_RENT_EXPNMST.cmp_no
    And brn_no = :LM_RENT_EXPNMST.brn_no>and fiscal_yr = :LM_RENT_EXPNMST.fiscal_yr;
    >:LM_RENT_EXPNMST.ERNT_NO := v_dummy;
    END;
    IF :PARAMETER.RNT_NO IS NOT NULL THEN
         :LM_RENT_EXPNMST.RNT_NO:=:PARAMETER.RNT_NO;
              :LM_RENT_EXPNMST.RNT_YR:=:PARAMETER.RNT_YR;
         :LM_RENT_EXPNMST.CUST_DESC:=:PARAMETER.RNT_ADESC;
    END IF;Edited by: ayadsufyan on May 8, 2013 2:03 PM

    If this is a FORMS question you should mark this one ANSWERED and repost your question in the FORMS forum
    Forms

Maybe you are looking for

  • Stuck with the apple logo screen

    So my iPhone is stuck with the apple logo. I've restarted my iPhone several times and reinstalled itunes. It just stays with the apple logo and when I plug it into itunes it freezes itunes. I can't restore my iPhone, because it's not coming up in iTu

  • How can I reduce the amount of storage my iPhone uses for messages?

    Is there any way to reduce the amount of storage space my iPhone uses for Messages?  Can I limit the storage to the last year or some other limit (specific date, specific amount of storage etc.)? Thank you

  • New concepts in ECC6.0

    hi please give me  the additional concepts inrtoduced in ECC6.0 in the areas of GL,AR,AP and asset accounting against 4.7E seenu..

  • Need help with Photoshop

    I have downloaded Photoshop to use the trial. However, when I downloaded it, and tried to start the trial program, it will not allow me. Instead, it only demands a serial key number and will not allow me to use my trial period. There are also no opti

  • Ipad content sync

    hello, i distribute an ipad app via mdm. how can I update content in the local folder of the app. I don't want to publish a new app when only an xml file or video has changed?!? regards