Hierachical table in FORMS 10g

Hi,
Anybody knows how I can represent the results of the following query in a block???
SELECT tcn.TEMPLATE_COMPONENT_ID_IN, tcn.TEMPLATE_COMPONENT_ID_CONTAINS
        FROM   template_component_nesting tcn
        CONNECT BY PRIOR tcn.TEMPLATE_COMPONENT_ID_IN = tcn.TEMPLATE_COMPONENT_ID_CONTAINSThanks for the answers,
Marc.

Have you got access to metalink?
Document Note:69884.1 How to use From Clause Query in Forms
details how to use them in detail.

Similar Messages

  • Pivot table in forms 10g

    Hello All,
    I have seen Pivot table as one of the ocx control in forms 6i ...but in forms 10g ocx controls are not supported ..instead of that it is recommended to go for equivalent PJC ...i tried to find it out, but could'nt locate any ...
    Pls guide if some one knows some thing about this.
    I m new to forms 10g and Java.
    Pls help to get such PJC or show me some guide line.
    Thanks and Regards,
    Jinesh

    Hello all,
    I am in urgent need of this kind of solution ...some one pls guide me how can i achieve this functionality in forms 10g.
    hoping to get some help from forum.
    Regards,
    Jinesh

  • Record not inserting into the table through Forms 10g

    Hi all,
    I have created a form in 10g(10.1.2.0.2) based on just one table that has 4 columns(col1, col2, col3, col4).
    Here col1, col2 and col3 are VARCHAR2 and col4 is date and all the columns are not null columns(There are no primary and foriegn key constrains, which means duplicates are allowed).
    My form contains 2 blocks where block 1 has one text item (col1) and 3 buttons (Delete, Save, Exit).
    And block2 is a database block and has col2,col3,col4 which are in tabluar layout frame displaying 10 records.
    When the form is opened the cursor has to be in block1.col1 for querrying. Here i enter a value in col1, and then when I click on col2 in the block2, then I put execute_query in new_block_instance of block2, which displays the records.
    The block2 properties are not updatable, insertable and query is allowed.
    Everything is working good until here. But here in the block2 when I want to insert another record into the table, by navigating all the way down to the last empty record and entering the new values for col2, col3 and col4 And then Ctrl+S will display the message "*FRM-40400: Transaction complete: 1 record applied and saved.*" But actually the record is not inserted into the table.
    I also disabled the col4 by setting the Enabled property to No, since while inserting new record the date have to be populated into it and it shouldnt be changed by the user. And im populating the sysdate into the new record by setting Intial Value property to *$$DATE$$*.
    And another requirement which I could not work arround here is that, the col3 also should be populated with the username of the user while inserting.
    please help me...

    Hi Sarah,
    I do not want to update the existing record. So I kept Udate Allowed to No in property palette for the items in block2.
    Do I have to do this property at block level also?
    I'm inserting a new record here.
    Edited by: Charan on Sep 19, 2011 8:48 AM

  • Record is not inserting into the Table thourgh forms 10g

    Hi All,
    I have the form built in 10g(10.1.2.0.2).
    Basically the form has 2 blocks.
    Block 1 with only one item, where we enter some value and hit enter(this will navigate to block2 and execute the query).
    Block 2(tabular) will fetch the records. Now this block2 have 3 columns(caseid, userid, date).
    Now when I insert a new record, I just need to enter the caseid only. And userid and date have to be automatically populated.
    I can populate the USERID and DATE fields.
    And when I enter some value in caseid item of block 2, and then do Control+S(to insert the record and Save the transaction),
    i get the message saying FRM-40400: Transaction complete: 1 records applied and saved.
    But when I query again for the same, I dont se the record inserted into the table.
    Why is this happening?
    Help please...

    @ Inol
    There is no promary or foriegn key relation ship. The form is fetching records from just one table. As I said block1 has col1. and Block2 has col2,3,4.
    @Andreas
    Yes I did select * from table, select count(*) from table in SQL*Plus. Nothing is inserted.
    And one thing I have to tall here is, I have a ON-INSERT trigger in block2.
    The code in ON-INSERT trigger is
    --  :BLOCK2.DATE := TO_DATE(:DATE,'DD-MON-YYYY') ;
    /* commented since I was populating date by assigning $$DATETIME$$ to the Initial value property of the data item. */
    :BLOCK2.SOURCE_CASE := :BLOCK1.SOURCE_CASEID;Forgot to tell you,
    Since I was inserting the record from block2(3 columns), to the table which has 4 columns, there is another item in block 2 which has the visible property No.
    So the block 2 has 4 columns. And the hidden column will hold the value that is in the item of block1. This is what i'm pushing in the ON-INSERT trigger.
    Edited by: Charan on Sep 20, 2011 1:51 PM

  • How to populate data from table into Radio button group in Form 10g

    Hi,
    I have a table with 2 columns, i.e. criteria and weight.
    The weight column will contain either 5 or 4 or 3.
    I want to design a form (10g) as follows:
    CRITERIA----------------------------WEIGHT------------------
    ------------------------HIGH----------MEDIUM-------------LOW
    Cost-------------------o
    Duration-------------------------------o
    Maintenance-------------------------o
    If the criteria contains 5, it will show as HIGH, MEDIUM for 4, LOW for 3.
    Do I need one radio group for each CRITERIA column?
    How can I populate the table and display as above programatically in the form?
    Edited by: srtusar on 26-Mar-2009 04:49
    Edited by: srtusar on 26-Mar-2009 06:48

    Not exactly. I want to enter input from form and the user can have all options to choose i.e. HIGH, MEDIUM or so on.
    Suppose, you have option to select HIGH, MEDIUM or LOW and you can see all these options together. You select LOW and when you save, it is saves in the table as a value. So when you view the table again, it will show LOW as active and HIGH and MEDIUM are null.

  • Storing an Excel File in the Oracle Table through Oracle Form (10g)

    Hi,
    We have the below requirement in the Oracle Forms (10g).
    Database: 11g
    Application: R12
    We need to provide an upload functionality to the user, so that he can upload an excel file into the form (from the local system), this is achived.
    Now what we need to do is that we need to capture the path of the document (in the local system) and we need to store the document in a Oracle table.
    Next we need to validate the records that are being loaded and the error records should be written into one more file and that file also we need to store in an Oracle table, this is because, i need to query this error file from the table later and need to send to the user as an e-mail.
    Basically i started off with the below code just for the POC. but iam facing the error. Please help. I did not put this code in my form.
    Create Table Email_Attachments(Id_Pk Integer Primary Key,Fname Varchar2(50),Image Blob);
    Create Or Replace Directory Temp As 'C:\';
    Create Or Replace Procedure Load_File(Pi_Id In Integer, Pfname In Varchar2) Is
    Src_File Bfile;
    Dst_File Blob;
    Lgh_File Binary_Integer;
    Begin
    Src_File := Bfilename('TEMP', Pfname);
    Insert Into Email_Attachments (Id_Pk,Fname,Image)
    Values (Pi_Id,Pfname, Empty_Blob())
    Returning Image Into Dst_File;
    Dbms_Lob.Open(Src_File, Dbms_Lob.File_Readonly);
    Lgh_File := Dbms_Lob.Getlength(Src_File);
    Dbms_Lob.Loadfromfile(Dst_File, Src_File, Lgh_File);
    Dbms_Lob.Close(Src_File);
    Commit;
    End;
    begin
    Load_File(1,'test.txt');
    end;
    ERROR
    ORA-22288: file or LOB operation FILEOPEN failed
    No Such file or directory
    ORA-06512: at "SYS.DBMS_LOB", line 1014
    ORA-06512: at "SYS.LOAD_FILE", line 10
    ORA-06512: at line 2
    How to capture the Path from which he has loaded the file?
    How to Write the error records it to the file and store it in an Oracle table?
    Will the below table be of use to me?
    fnd_lobs_document
    fnd_lobs
    fnd_documents
    Please share your ideas as to how to acheive this.
    Thanks and Regards
    Srinivas

    When you want to process the file, them it depends on the format. "Excel file" is a term that is used for a variety of file formats, mostly simple CSV, binary (true) XLS and XLSX.
    So to get help you have to give us more information. Since the file is already in the db you might get better answers at {forum:id=75}. The forum has a FAQ that has a whole section {message:id=9360007}.
    Regards
    Marcus

  • How to format table columns in Forms 10g

    Hi Friends,
    I have payment table in the format
    col1 col2
    1 dell
    2 HP
    3 Compaq
    4 Acer
    i want to show this info in forms 10g
    Payment has to be made tomorrow- DELL,HP,Compaq,ACER

    Hi Francois,
    I have create the from based on that data block only but it is coming sequentially, for example
    Label - Payment for items tomorrow-Dell
    HP
    Acer
    Compaq
    But i need the same thing in
    Payment for items tomorrow- Dell,HP,Acer,Compaq
    please advice how i can make this, contect of the column should come with comma

  • TABLE_FROM_BLOCK is not working in forms 10g ??????

    Hi all,
    How to use TABLE_FROM_BLOCK in forms 10g. its working in forms 6i .
    the same form is not working in 10g . i got this error.
    frm-40933 Cannot populate table because datatype is incorrect.
    pls help me
    Regards
    Gopinath M

    According to Metalink's Developer 2.1 Release Notes (Doc ID #90090.1), section 4.2.1, "TABLE_FROM_BLOCK Built-In":
    DO NOT use the TABLE_FROM_BLOCK built-in described in the
    documentation. It is reserved for internal use only. No support
    for this built-in will be provided under any circumstances.
    If you used this built-in, you will need to recode your from(s) for 10g.
    Message was edited by:
    Mark Roberts

  • Batch procedure in Forms 10g, calling rdf and send by mail

    Hi all,
    I need your advice regarding my task: i have a table with invoices of some clients. I have created a report in Oracle Reports 10g R2, so to have a pdf with all the data from this table.
    I have created a form in Forms 10g R2, displaying in a screen one field, where the user can choose the date of invoice. Then i will query by that date all my invoices in that table, and then i want to create a procedure in Forms, so that for every line in that table with the invoice date just chosen i will run HOST(rwrun ... all my parameters).
    My questions:
    1. I need to read some more about how to create a custom xml so to pass to my rwrun, and depending on the records fetched in my cursors in Forms 10g, i will pass a xml variable to my reports, so i will get the data from Forms 10g in the report created in Oracle Reports 10g. Is there any way that i can grep the errors? I need to create some insertions based on succes on failure, how can i accomplish this?
    2. Is the above described scenario way to complicated to loop throuh a cursor, create a pdf, and mail the pdf until the cursor is totally fetched? Do you recommend me a simpler way to accomplish this task?
    Thank you so much,
    Michael.

    Hello,
    I have a report with all my clients, with their email addresses in the same report. Each client as unique account number or invoice number.
    So i want to burst and distribute each invoice to the corresponding client:
    1. I have set REPEAT ON: INVOICE in oracle reports.
    2. From Oracle Reports, i click on Distribution list, and in the DESNAME i type email_address (which is the column from the table with the invoices).
    3. Then, File >> Distribute. Says: distribution completed succesfully, but nothing happens.
    Question:
    1. Where am i mistaking?
    2. Is there any log activity file that i could see what the application is doing, step by step?
    Thank you,
    Michael

  • Cascade update in forms 10g

    I have a master-detail block in my form. My question is When I update one record in master block and commit the corresponding child table records should be updated. I know there exists an integrity constraint between the tables and I am getting an error of "Integrity constraint exists and child record found". Is there any way we can do a work around for this in forms 10g. Your help is appreciated.
    thanks
    marcbhar

    When one record is updated in Master table the corresponding records in child table should also get updated.
    For example,
    Master Table: Tbl_Mast has colums m_id, s_code, name, sub_name
    Records : m_id s_code name sub_name
    1 M008.01 sales valid
    2 K009.02 marketing invalid
    Detail Table: Tbl_Detail has colums detail_id, s_code, name, subname, sale_no
    Records : detail_id s_code name subname sale_no
    48 M008.01 sales valid 1111
    49 M008.01 sales valid 238
    50 M008.01 sales valid 400
    Now my question is, If I update sub_name = "invalid" where s_code="M008.01" in Tbl_Mast then all the records in detail table Tbl_Detail should be updated as follows
    48 M008.01 sales invalid 1111
    49 M008.01 sales invalid 238
    50 M008.01 sales invalid 400
    Now I am getting this following error.
    ORA-02292: integrity constraint (A.S_SDC_FK) violated - child record found

  • Display NCLOB in FORMS 10g

    Hi,
    I have an NCLOB field in a table that I have to DISPLAY in FORMS 10g. I think a have to use the to_CLOB function to be able to display the content correctly.
    Can somebody tell me if this is the right way to do it. If so, at what point (which level and trigger) will i use the TO_NCLOB function?
    Thanks in advance,
    Marc.

    Thanks for the reply....
    I never did any Java bean coding, but I want to learn it. Is it hard to start with it?
    Do you have an example of the code, and the steps to take for me to start coding it?
    Any links that can provide me with some answers would be appriciated.
    Thanks,
    Marc.

  • View XML in forms 10g

    How to view XML in forms 10g?
    I have a message in XML/HL7 format and display information a end user.
    Thanks you all.
    Dario

    There are many options to do this. From creating additional "locking" table to keep track of what users are doing, to simply use forms built-in Lock_Record in when-new-record-instance.
    One option is to use dbms_application_info in when-new_record-instance and set action to the customer_id.
    DECLARE
      CURSOR c_action IS
      select username
      from v$session
      where action = :customers.customer_id;
      v_user varchar2(50);
    BEGIN
    OPEN c_action;
    FETCH c_action INTO v_user;
    CLOSE c_action;
    IF v_user is NOT NULL THEN
         message ('User '||v_user||' is working with customer '||:customers.customer_id);
         set_block_property  ('customers',UPDATE_ALLOWED,PROPERTY_FALSE);
    ELSE
         set_block_property  ('customers',UPDATE_ALLOWED,PROPERTY_TRUE);
         dbms_application_info.set_action (:customers.customer_id);
    END IF;
    END;You may add check for record status, or use set_item_property instead of block property etc.

  • Saving a PDF or DOC file into Oracle 9i using Developer Forms 10g

    Hi guys,
    I want to save a pdf or doc file into oracle 9i. I am using Developer 10 g. Please help me;
    1. What datatype field should be in database table to store such file.
    2. Which code should I use in Forms 10g to display open file dialog, get the name and save that into database table.
    Thanks in advance

    WEBUTIL is a library used with forms to interact with the client. With Forms10G the library comes shipped with the developer suite, for forms 9i i'm not sure, check the forms-page at otn if there is any download available. For documentation about how to do a file-upload, simply search the forum, there are lots of examples.

  • Error While Running the form 10g

    Hi,
    I have a prob while running the form.
    Since the day I installed Form 10g at my home pc. Every time after i make any changes in the form, if i try to run the form after compiling and saving. It keeps asking me to enter scott/tiger@anthony to run the form.
    Even after running the form if i close it and to run the form again i have to enter scott/tiger@anthony.
    Wht culd be the prob plz help ?
    Rgds
    Anthony J
    Hi,
    I have all my tables in the scott schema also b4 running the form for the 1st time I do connect to the database thru File -> connect.
    Plz confirm what shld be the setting the preference option in the menu.
    Message was edited by:
    Anthony J

    Do you have a logon statement in the ON-LOGON trigger in your form? Do that, and it won't ask you to logon each time you run the form.
    Also make sure you connect to the database in Forms Builder by going to File -> Connect...

  • Exception when calling web service from Oracle forms 10g

    Hi All,
    I am trying to integrate Oracle Forms 10g(V 10.1.2.0.2.) with Web Services.
    There is a java class named 'authenticate' which is generated using Oracle JDeveloper.
    This class is included in the forms application by using "Import Java Class" feature.
    Forms built the following funtion based on that class:
    -- Method: authenticate (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    FUNCTION authenticate(
    obj ORA_JAVA.JOBJECT,
    a0 VARCHAR2,
    a1 VARCHAR2) RETURN VARCHAR2 IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(2);
    JNI.ADD_STRING_ARG(args, a0);
    JNI.ADD_STRING_ARG(args, a1);
    message('here1');
    RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'mypackage/AuthenticatorWebServiceServiceStub',
    'authenticate', '(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;', args);
    message('here2');
    END;
    However when the above code is invoked it shows the message 'here1' on the form and then throws the following exception: java.lang.Exception: java.lang.ClassCastException
    Please suggest me what's wrong with the code. I appreciate your time and help.
    Thanks,
    Scott.

    My primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
    I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
    Thanks

Maybe you are looking for