Forms6i ..... table_from_block

Can somebody tell me how table_from_block works in forms6i.

Hi ,
Please go through this.
1. Set block property 'Key Mode' to 'Updateable' on the block related to the
index organized table.
2. Set block property 'Enforce Primary Key' to 'Yes'
3. Set item property 'Primary Key' to 'Yes' for all primary key items.
Hope that this will help you

Similar Messages

  • How to use TABLE_FROM_BLOCK in forms 10g ??????

    i have use the procedure below code in when-validate of a database item in forms6i its working fine ,but the same form i have compiled in forms10g and then when the when validate is fired it gives following error
    frm-40933 Cannot populate table because datatype is incorrect.
    CODE :-
    PROCEDURE CHK_DISB_DT(RECNO NUMBER) IS
    LOAN_DISB_TBL_TYPE ITEMS_IN_BLOCK;--DECLARE A VAIRIABLE OF TYPE ITEMS_IN_BLOCK
    TYPE LOAN_DISB_REC IS RECORD(LNA_DISB_DATE DATE);     
    TYPE LOAN_DISB_TABLE IS TABLE OF LOAN_DISB_REC INDEX BY BINARY_INTEGER;
    LOAN_DISB_TBL LOAN_DISB_TABLE;
    I NUMBER;
    DT DATE;
    BEGIN
    LOAN_DISB_TBL_TYPE(2):='LNA_DISB_DATE';
    TABLE_FROM_BLOCK(LOAN_DISB_TBL,'PT_EMP_LOAN_ADV_DISB',1,ALL_RECORDS,LOAN_DISB_TBL_TYPE);          
    DT:=TRUNC(LOAN_DISB_TBL(RECNO).LNA_DISB_DATE);
    END LOOP;

    You've specified the lna_disb_date item to be the stored in the second field in the record but only 1 field has been defined for the record.
    TryLOAN_DISB_TBL_TYPE(1):='LNA_DISB_DATE';Since you're only using the data from 1 record in the table you could make the code more efficient by using "recno, recno" instead of "1, all_records" and then reference the date as "dt := trunc(loan_disb_tbl(1).lna_disb_date)". Note that doing this might give a different error message to what you previously may have seen when recno is greater than the number of records in the block. So if recno could ever be too large then you should test to find the error which is generated.

  • Can not connect from Forms6i to PO8i.

    Hi,
    My PC is a NT named 'oracle'. I have first installed Forms6i in DEFAULT_HOME, c:/orant.
    PO8i is installed as:
    Oracle Home: ora8i
    Full Path: c:\orant\ora8i
    Choose Typical Install
    Global Database Name: ora8i.oracle.master.com.au
    SID: ora8i
    Then I added an entry in c:\orant\net80\admin\tnsnames.ora as:
    test.world
    (DESCRIPTION
    (ADDRESS_LIST
    (ADDRESS
    (PROTOCOL = TCP)
    (Host = 127.0.0.1)
    (Port = 1521)
    (CONNECT_DATA = (SID = ora8i)
    I can connect to PO8i from SQL*Plus using scott/tiger or scott/tiger@ora8i.
    When I tried to connect to PO8i from Forms6i using scott/tiger@test or scott/tiger@ora8i. I got ORA-12154: TNS:could not resolve service name.
    If I use scott/tiger@test from SQL*Plus, I got the same error.
    If I use scott/tiger from Forms6i, I got ORA-12203: TNS:unable to connect to destination.
    Help please.
    Sue
    null

    Try taking off the .world in the NET80 tnsnames.ora file
    Jason Pepper
    Snr Product Manager
    Oracle Enterprise Internet Tools

  • 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

  • How can I call my chart in Forms6i on When Button Press Trigger?

    Hi Friends,
    I have make a chart in Graphic Builder 6i and save on path C:\graph\test.ogd
    Now I want to run this Chart from Form6i on When Button Press trigger.
    I have call my report in forms using this command on When Button Press trigger.
    Run_Product(reports,'C:\Cheema\Qdir_store\reports\pmms\sec_backlog',asynchronous,runtime,filesystem,TO_CHAR(NULL));
    So tell me How can I call my chart in Forms6i?
    Please reply me on urgent.
    Thanks,
    Shahzad

    Just to recall after a long break of couple of years..... Pls check out if not wrong.
    First of all you need to embeed the chart object on your layout window and make it visible = FALSE. This is a design time work. In the button press event, show the chart object by setting the visible property = TRUE.
    Note, i could not paste u the sample code as i don't have forms installation on my PC. The above states is a logic you can apply.

  • How to call a Forms6i file from Forms10g

    Dear all,
    Can any one help me on how to call a x.fmb in FORMS6i version from a y.fmb in FORMS10G version.I used CLIENT_HOST( ) buitin for calling a 6i version x.fmb from 10G version y.fmb,but its not working.I gave this CLIENT_HOST( ) built in in when-button-pressed trigger.when i gave the string that is given as parameter to CLIENT_HOST( ) in command prompt the 6i fmb opens...and similarly i need to open a fmb in FORMS10G verison from FORMS6i version fmb

    Hi,
    Forms 6i modules only run on Forms 6i runtime and Forms 9i modules run on Forms 9i runtime. If you want to bring together two of these module into one application you have to upgrade from Forms 6i to Forms 9i or call it on a separate runtime using a hiost command. If you run it on the web, which Forms 9i runs only, then you use web.show_document() to call the Forms 6i release installed on Oracle Application Server 9.0.1
    Frank

  • How to use PL/SQL & Forms6i for a logon screen

    i am new user to oracle. just wanna now how to create a user logon screen using SQL and Forms6i. well, i have created a table for logon with data item of username and password. in the form, i hava successfully created the data blocks but i don't know how to link them using PL/SQL or triggers or etc.
    ur concern will be very grateful. TQ.

    Hi MatrixMan
    Just create button and write the follwing inside
    trigger when_button_pressed :\
    begin
    logout;
    LOGON(:USER_NAME,:PASSWORD );
    IF FORM_SUCCESS THEN
    MESSAGE('Login Successful');
    MESSAGE('Login Successful');
    ELSE
    MESSAGE('Check username or password');
    MESSAGE('Check username or password');
    GO_ITEM('USER_NAME');
    :USER_NAME:=NULL;
    :PASSWORD:=NULL;
    END IF;
    end;
    Thanks
    Mohammed Al-shake

  • Error while using row_num function in forms6i

    Oracle forms6i
    Hai
    While using row num function in my forms i had a error.
    My coding is
    declare
    pin_no varchar2(16);
    pin_date date;
    pin_time varchar2(25);
    mstr varchar2(200);
    m_file TEXT_IO.FILE_TYPE;
    m_file_path varchar2(100) := :global.filename;
    line_count number;
    M_BARCODE VARCHAR2(16);
    M_BARDATE DATE;
    M_BARTIME varchar2(25);
    M_No number;
    Cursor c1 is
    select barcode,bardate,bartime,
    row_number() over (partition barcode order by bartime) as RN-------------------the error at this line
    from temp_attendance
    group by barcode,bardate,bartime
    order by bardate;
    begin
    If m_file_path is not null then
    m_file:= TEXT_IO.fopen(m_file_path, 'r');
    --DELETE FROM temp_attendance;     
    Loop
    begin
    TEXT_IO.get_line(m_file,mstr);
    mstr := ltrim(rtrim(mstr));
    M_barcode :=substr(mstr,1,16);
    M_bardate := to_date(substr(mstr,17,8),'DD/MM/YYYY');
    M_bartime := (substr(mstr,25,4));
    INSERT INTO temp_attendance(BARCODE,BARDATE,BARTIME,RN) VALUES(M_BARCODE,M_BARDATE,M_BARTIME,M_No);
    Exception
    when no_data_found then
    text_io.fclose(m_file);
    exit;
    End;
    End loop;
    go_block('TEST_MS1');
    clear_block(no_validate);
    For r1 in c1 loop
         :barcode := r1.barcode;
         :bardate := r1.bardate;
         :bartime := r1.bartime;
         next_Record;
    end loop;
    first_record;
    end if;
    exception
    when others then
    forms_ddl('ROLLBACK');
    message (sqlerrm);
    end;
    Thanks & Regards
    Srikkanth.M

    Hi,
    Try using:
    row_number() over (partition BY barcode order by bartime) as RN
    If that wasn't the problem, what is the error you are getting?
    Regards.

  • How do I dial a phone number from Forms6i ?? OLE2,DDE??

    How do I dial a phone number from Forms6i ?? OLE2,DDE??
    Is it do-able??
    I have a contact form that has the contacts phone number, etc... I would like to add a button to dial the number which would open the phone line (probably through my modem) and dial the number ... where I would pickup the receiver and wait for connection...
    I need an example or a "How to" link or something where if I take the time I can get it working....
    IF not, is there software to do it?
    Thanks, Bill

    Yes, great! I will check into my modem... but I remember years ago have a c program that I used to send error messages through the modem to my alpha-numeric pager. With that I started with that c program being called from REXX IBM language and it spoke modem language...
    Is there another forum that would handle this type of request? what do you call telephone support? telephony? communication links? ....
    Thanks for the input!

  • Table_From_Block Build-in Package is not working in Oracle 10G

    Hi
    Table_From_Block Build-in Package is not working in Oracle 10G
    Kindly advice..

    user648759 wrote:
    Hi
    Table_From_Block Build-in Package is not working in Oracle 10G
    Kindly advice..Provide a little more information. Forms version OS version, more information about your problem and question.
    --and explain what on earth Table_From_Block* mean's--
    Tony
    PS: TABLE_FORM_BLOCK is a built-in for internal use, usually auto generated by forms. For a moment I didn't get what that meant, need more coffee.
    Edited by: Tony Garabedian on Aug 29, 2008 12:39 PM

  • Genareting a xml file from Forms6i..

    I want to generete a xml file from database with using forms6i.
    The procedures of XSU generate a xml file output on the server
    which database has been loaded.And it works on SQL Plus..How can
    I gAnerate xml file from database on clint side with using
    Forms6i and XSU??
    Thanks for your helps..

    You can use the PLSQL xdk. This way you can use PLSQL to create
    and transform your XML.
    succes

  • Forms6i crashes on Windows 7

    I have installed Forms6i - 6.0.8.11.3 on Windows 7 SP 1 and it works fine but at times Form Builder crashes in middle of everything.
    Is there any patch I need to apply for this? I looked the Patch 18 but it tries to install it in a new home/folder than existing 6i installation.
    Your help would be really appreciated.
    Thanks,
    Zaafran

    Hi,
    See this
    {message:id=9978052}
    regards
    Yoonas

  • ORA-00164 Autonomous and Distributed Transactions in Oracle 8i - Forms6i

    Hi, in Forms6i I'm using Autonomous transactions (insert and update), and I want to use also a database link to make a query in a remote database (Distributed transaction). Even when this request are done in different PL/SQL within Forms6i, I get the error message ORA-00164 Distributed transactions disallowed within autonomous transactions. Is there a way to avoid this error message?
    Thanx

    Hello,
    I had a similar Problem, when I tried to log errormessages while selecting by db-link.
    I use pipes now to send the errormessages. The pipe is read at regular intervals and then I can Insert without using autonomous transactions.
    I hope, this will help you
    Marcus

  • Forms6i - Object Libraries

    Having "inherited" a Forms6i module from a departed developer, I obtain a "FRM-18108 Failed to load the following objects ..." error when opening the form in Forms Builder.
    The file 'fees.olb' referred to by the above error message is actually present in the same Windows directory that the form's own .fmb source is located.
    Please can someone kindly explain a workaround for the above error ?
    Thanks, Andrew.

    More than likely, your FORMS60_PATH registry (or environment) entry is incorrect. Verify that this value is the same directory as the location of the OLB and it should load up fine.
    null

  • How to Connect Oracle Forms6i with oracle 10g

    Hi,
    I'm using oracle 10g database in my xp operating system.. I installed forms6i on my system and edit the tnsname.ora file in the forms installation folder (C:\orant\NET80\ADMIN\tnsnames.ora) with local database tnsnamesora details..
    But still I cant connect from forms with local database.. it shows the error ''Oracle Forms Designer has encountered a problem and needs to close. We are sorry for the inconvenience.''
    pls anyone help me

    Yes. Long time ago I knew that this is not supported. See metalink/support if there is now any patch for this.

Maybe you are looking for