FRM-41072:Can't create Group (for a tree)

Hello,
the following code is trying to refresh data while saving the record which is a child of the child of the Grand parent.
In Key-commit Trigger..
The Query was working just fine without the new modification concept to have a child from the child.
e.g.
Electrical Equipment
|_ Computer
       |_ Mother BoardAny way the Query works fine in Toad it displays what i want but in the forms' tree ..!!!
Getting the following Error:
--===========================
FRM-41072:Can't create Group RG_DAL_MED
FRM-41076 :Error populating Group.
FRM-41085 :Error getting Group Row count.
--===========================
Using Forms 6i Windows XP ..!
DECLARE
    selektas VARCHAR2(5000);
      rg_name VARCHAR2(4000) := 'RG_DAL_MED';
      rg_id      RecordGroup;
      find_node Ftree.NODE;
      n NUMBER (38);
      htree ITEM := Find_Item('TREE_BLOCK_TEST.TREE13');
      v_WHERE   VARCHAR2(5000);
BEGIN
  rg_id := Find_Group(rg_name);
   IF NOT Id_null(rg_id) THEN
    DELETE_GROUP(rg_id);
   END IF; 
          V_WHERE := ('PARENT_ID IN ( SELECT   INSP_EQUIPMENT.EQUIPMENT_ID FROM INSP_EQUIPMENT 
     WHERE CLASS_ID IN (1,2,3,4)');
          V_WHERE := V_WHERE || (' AND INSP_EQUIPMENT.EQUIPMENT_TYPE_ID = ' || :INSP_EQUIPMENT.EQUIP_TYPE_ID ||'' );
          V_WHERE := V_WHERE || ( '     AND ( INSP_EQUIPMENT.PARENT_ID= '|| :EQUIP_ID );
          V_WHERE := V_WHERE || ( '   OR INSP_EQUIPMENT.PARENT_ID IS NULL ))');
          V_WHERE := V_WHERE  ||(' CONNECT BY PRIOR INSP_EQUIPMENT.EQUIPMENT_ID = INSP_EQUIPMENT.PARENT_ID START WITH  INSP_EQUIPMENT.PARENT_ID IS NULL ORDER BY EQUIPMENT_id ');
        selektas :=  'SELECT       1       NODE_STATE,                    LEVEL               NODE_DEPTH,
                                                   EQUIPMENT            NODE_LABEL,
                                 NULL                 NODE_ICON,
                    EQUIPMENT_ID         NODE_VALUE                           FROM                 INSP_EQUIPMENT
          WHERE V_WHERE ';
     rg_id := Create_Group_From_Query(rg_name, selektas);         
           n := Populate_Group(rg_id);
            n := Get_Group_Row_Count(rg_id);
IF n > 0 THEN
   Ftree.set_tree_property(htree,Ftree.record_group,rg_id);
END IF;
END;Regards,
Abdetu..

     selektas := 'SELECT 1 NODE_STATE,                    LEVEL NODE_DEPTH,
                                   EQUIPMENT NODE_LABEL,
NULL NODE_ICON,
     EQUIPMENT_ID NODE_VALUE           FROM INSP_EQUIPMENT
          WHERE V_WHERE ';You have to add the V_WHERE as a value to your select:
selektas :=  'SELECT  1       NODE_STATE,
                      LEVEL               NODE_DEPTH,
                      EQUIPMENT            NODE_LABEL,
                      NULL                 NODE_ICON,
                      EQUIPMENT_ID         NODE_VALUE                          
                 FROM INSP_EQUIPMENT
                WHERE ' || V_WHERE;

Similar Messages

  • Frm-41072 can  not create group

    hi...
    i like to create dynamic lov at the rum time but iam getting error frm-41072. when i ran
    the foll0wing coding.... please tell me what wrong with my codings
    declare
         recgrpname varchar(20):='tst_lov';
         recid recordgroup;
         recclm groupcolumn;
         errcd number;
    lv boolean;
    begin
    recid:=find_group('recgrpname');
    if id_null(recid) then
         recid := Create_Group(recgrpname);
         recclm:=add_group_column(recid,'agr_no',number_column);
         recclm:=add_group_column(recid,'name',number_column);
         end if;
    errcd:=populate_group_with_query(recid,'select count(agr_no),count(name) agr_mstr where rownum<=5 ');
    by
    ravi

    hi,
    check your syntax and for more clear help
    search it in online help in form builder.
    recid:=find_group('recgrpname');RECID:=FIND_GROUP(RECGRPNAME);

  • FRM-41072 Can't Create Group.

    Dear Friends
    i have problem with my form, it is simple form. and this is my code.
    DECLARE
         RG_NAME VARCHAR2(100):= 'CUST_NAME' ;
         RG_ID RECORDGROUP ;
    BEGIN
    RG_ID := CREATE_GROUP_FROM_QUERY(RG_NAME,'SELECT CUSTOMER_NAME FROM CUSTOMERS');
    END;
    each time i got FRM-41072, i tried to search all other posts and until now, no solution.
    Best Regards

    Hi,
    what is the purpose of the record group?? LOV, list item?
    The error message frm-41072 info from Online help:
    Cause:  
    Caused by one of the following
    1. Duplicate column names in SQL statement.
    2. Invalid record group name.
    3. Query is invalid.
    Action:  Check the group name and/or correct the SQL statement.
    Try running your query from sql plus and make sure it works.
    After, modify your code to verify if the record group has been created already.
    This sample is available on forms online help:
    /*** Built-in: CREATE_GROUP_FROM_QUERY
    ** Example: Create a record group from a query, and populate it.
    DECLARE
    rg_name VARCHAR2(40) := 'Salary_Range';
    rg_id RecordGroup;
    errcode NUMBER;
    BEGIN
    ** Make sure group doesn't already exist
    rg_id := Find_Group( rg_name );
    * If it does not exist, create it and add the two
    ** necessary columns to it.
         IF Id_Null(rg_id) THEN
         rg_id := Create_Group_From_Query( rg_name, 'SELECT SAL-MOD(SAL,1000) BASE_SAL_RANGE,'
         ||'COUNT(EMPNO) EMPS_IN_RANGE '
         ||'FROM EMP '
         ||'GROUP BY SAL-MOD(SAL,1000) '
         ||'ORDER BY 1');
         END IF;
    /* ** Populate the record group */
    errcode := Populate_Group( rg_id );
    END;
    Regards,
    Hugo.

  • Can i create mcx for shut down properly mac when battery is less 5 %

    Hi hello
    Can i create mcx for shut down properly mac when battery is less 5 % ?
    Thanks for your reply

    You can create a mailing list by using the "Groups" feature of Address Book. Simply select "New Group" from the File menu. Name the group, and drag the contacts you need into the group.
    In Mail, open up Preferences (under the Mail menu), and click on "Composing". Then make sure that "When sending to a group, show all member addresses" is unchecked.
    The auto reply is a feature that is better done on your mail server, as you Mac can only send an auto reply when it is on, with the Mail application open. If you use dot Mac, you can set up a vacation responder through the web, and you can leave your computer switched off.
    If you really want to leave your Mac on when you are on holiday, you can set up a mail rule (Preferences, Rules).

  • HT3529 My group messaging on/off label isn't showing up at all. I can only create group messages but every time someone starts a group chat it says its send to my number but I never got any text. I wen't to settings Messages and I can't find any on/off sw

    I can only create group messages but every time someone starts a group chat it says its send to my number but I never got any text. I wen't to settings>Messages and I can't find any on/off switch.

    Hello there, Idaniabb.
    The following Knowledge Base article offers up some great information in regards to group messaging and also links to another excellent resource for troubleshooting messages as well:
    iOS: Understanding group messaging
    http://support.apple.com/kb/HT5760
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Can we create installer for  Java projects ?

    when we create any desktop application using swing. Can we create installer for that application that will include all the files, which is required to run that application including data base. Data base is Mysql and in some case it might be MS Access.
    We can create the jar files for this and deploy. But other then this ...
    Is it possible to create ?? If anybody have idea then plz give me steps how to do this ??
    welcome in advance for reply...

    MukeshSinghRathaur wrote:
    when we create any desktop application using swing. Use [Java Web Start|http://www.java.com/en/download/faq/java_webstart.xml] *(<- link)*
    ..If anybody have idea then plz give me steps how to do this ??Please take the effort to type all 6 letter of the word 'please'. Also - one '?' indicates a question, whereas 2 or more often indicates a bozo.
    Do some research, ask a specific question. These forums are not designed as a 'help-desk' where people will hold your hand and tutor you as to how to do things.

  • Can we create routine for PO excise duty should calculate at basic amount

    Dear All,
    can we create routine for Purchase order excise duty should calculate at basic amount not after discounted value.
    actually at per current  scenario  system is calculating excise duty after discount base amount, but
    we want to write a routine/scenario excise duty should calculate at basic value not after discount value.
    Regards
    chandrashekar

    Hi,
    In my opinion you have two alternatives to resolve your problem:
    1. To customize some special solution for this; this can be made by adding a new pricing condition similar with the VAT pricing condition (let's call it ZMWS); this pricing condition should be as absolute value and accepted as manual in the document / pricing procedure
    2. Something similar to your solution (I have used this for some customer) to have in the credit memo two lines, one with VAT and one without VAT; the one without VAT should have a negative price = price from the line with VAT.
    For this second solution I would recommend you to have two different special materials "DUMMY" materials, lets say "DUMMY without VAT" and "DUMMY with VAT"
    BR,
    Valentin

  • Can I create books for iPhone using iBooks Author?

    Can I create books for iPhone using iBooks Author?

    There is a new $5 iBooks Creator app in iOS app store for the iPad.
    The output looked pretty good for an iPad app.
    There is a video on how to use it to give you an idea of how easy it is.
    It creates ePub 2 whihc can be read on all platforms with an ePub reader except Amazon Kindle whihc forbids such things.
    You can run the ePub through Calibre and get MOIB for Kindle which works for me.
    I have done thirty or forty conversions so far.

  • Can I create books for the iBookstore for iPad and iPhone using Pages?

    Can I create books for the iBookstore for iPad and iPhone using Pages?

    No problem, Peter. iBooks Author makes a lot of things much easier than trying to grapple with a standard epub, but it also has some big limitations, like iPad only, and ibookstore only.
    EDIT It's not really suitable for something like a novel, for example, although it's great when you need lots of illustrations and movies and such.

  • Printer: can't create PDFDocumentRef for `/private/var/spool/cups/tmp/'

    Just moved from Tiger to leopard 10.5.2
    Using an Hp deskjet 3650 which worked last week in Tiger. Now, no matter what I try to print, I get errors like the following:
    can't create PDFDocumentRef for `/private/var/spool/cups/tmp/480cbc6235144'
    To the best of my knowledge, I installed every possible printer driver from the DVD

    OhhhhKayyy ... I went to http://tinyurl.com/3r8d85
    a ww1.hp.com address ...
    installed /OSXHPInkjetInstaller.dmg
    tried same print and get same failure:
    first I get this:
    /usr/libexec/cups/filter/pstopdffilter failed
    then the topic error named

  • Can I create group in users' My sites?

    Hi All,
    Can I create group in users' My sites? Also, Is it possible to create a personal site as https://<My site host site collection url>/managed path/username ? I am creating host based site collections with My Site Host site template.
    Thanks,
    Moohak

    Yes You can create group in users mysites.
    Create Host header site collection, then create my site host in that host header site collection.
    Then update this URL as shown below in my site settings
    http://technet.microsoft.com/en-us/library/ee624362%28v=office.15%29.aspx
    In the My Site Host section, type the URL of the My Site host site collection that you created earlier in this task.
    If this helped you resolve your issue, please mark it Answered

  • FRM-10044:Can't Create File

    Dear All..s
    i am getting the following error:FRM-10044:Can't Create File
    after trying to save any .fmb or mmb file Forms 6i
    Can anyboady help me..pls.!!
    Abdetu..

    Oh yess it's so simple even though i have a full permission i found out the properties of my app. folder available read only soo i unchecked this option and every thing go on very smoothly no problem..
    Thank u Rosario.
    Abdetu

  • "Can't create part for model element: null"

    Hello Colleagues,
    I am developing a Widget using Eclipse. Yesterday I closed the project and today I tried to open it again. For some reason, it seems that the config.xml file is corrupted. When I open the editor, I receive the following error:
    "Can't create part for model element: null"
    I tried to find out where in the xml file is the error, without success.
    Do you have any clue to get it solved?
    If you need some more information, please let me know.
    Thank you very much!
    Rafael

    Hi Rafael,
    What version are you using? I have had similar problems in the past. Worst case I had to recreate the widget and copy the coding across.
    Can you send me the project file, I will understand also if you do not want to, I will try it on my machine.
    Regards
    John

  • Can't create payment for the invoice created by DI Server

    I can not create payment for my invoice that created by DI Server.  The error -2028 appears. I investigated this issue and found that the OINV.CtlAccount is empty. After I filled it manually, I can create the payment for it. Any suggestions? BTW, the version used is SBO2005B.

    It's resolved by apply the patch. Before that, I create a trigger as the work-around

  • FRM-10044 Can not create a file URGENT PLEASE!!

    I installed Oracle 8i and Forms 6i in a pentium 4 changing the symcjit.dll -> symcjit.old.
    Now I want to use the same scripts and Forms that I have saved using my old machine but I can't save new forms or update the old ones.
    FRM 10044 Can not create the file
    I can run the scripts in SQL.
    Please Help me it is urgent.
    I have installed and uninstalled the Data Base many times and I have read previous posts.
    Thank you a lot.

    Hi,
    "Cannot Create File" means forms failed to create/save the file. Check the following
    * Do you have full access to the drive?
    * Did you mark either the form or its directory as read only?
    Regards,
    Momen.
    Hi Helena,
    How are you? We are into Arabic development environment. I am trying to migrate from 6i (CS) to 9i (web). Everything went fine but when I run the report, the browser is displaying junk characters.
    Did you experience this problem?
    If you have any suggestions you can mail me on [email protected]
    Regards,
    Momen.

Maybe you are looking for