Performing operation on tabular data block

hello guys,
i m designing one tabular data block in orcle 6i form builder form emploee_master table form maintaing the employee personnel details.
i have to perform some operation on this data block like viewing existing records,updatinng the record(s),deleting a purticular record,insrting new record.
is there a shortcut way to perform theses operations so processing shoulg be fast and data shold be updated?
pl tell me and give some demo form to understand these operations if possible.
With Regards
Vishal agrawal

Hello,
All you have to do is to create a block based on the database table. Forms will, then, do everything for you (insert, update, delete) at commit time.
Francois

Similar Messages

  • How to disable any record in a Tabular Data Block

    Hi,
    I have a tabular data block having 10 records, every record has a check box(1 check box on each row). I want to disable all items in that particular record where user checks the check box(check box is UNCHECKED by default).
    Is this possible in WHEN-CHECK-BOX-CHANGED trigger or any other trigger ?, if so, how, please help.
    I hope that, I have illustrated the problem clearly.
    Regards.

    Hi,
    You cannot disable a single row in detail block. Instead You can set the UPDATE_ALLOWED property to FALSE. By this the user can't change the contents.
    IF :<block_name>.<check_box_name> = '<value_when_checked>' THEN
       SET_ITEM_INSTANCE_PROPERTY('<block_name>.<item_name>', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_FALSE);
    ELSE
       SET_ITEM_INSTANCE_PROPERTY('<block_name>.<item_name>', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_TRUE);
    END IF;Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

  • Tabular data block

    I have a tabular data block (records with a scrollbar). I want to add another field (a checkbox) outside the block so that when clicked, it would change the state of all the activated records within the block (also checkbox's). I tried to get the number of existing records, but I failed and didn't understand the posts on this forum.
    Thanks in advance

    Is this a question regarding Oracle Forms? If so, you probably want to ask the question in the Forms. Make sure that you specify what version of Forms you're using if you do post the question over there.
    If this is a question regarding a GUI developed in some other programming language, you probably want to find the appropriate language/ framework/ development environment forum here on OTN to ask the question.
    Justin

  • Testing status of a tabular data block

    When displaying a tabular data block, how can I tell if the user entered data into a blank row, so I know if I can issue a "create_record;" or not.
    Thanks

    Hello,
    Entering a new row fires the When-Create-Record trigger.
    Francois

  • Operate on a Tabular Data Block as a table?

    hi
    i was wondering if it is possible to query a tabular displayed data block like is done with tables. and do updates and inserts. so just to be clear, i dont want to query/insert/update the database table but the values in the form display items. i'm using oracle forms 9i
    the main reason im asking this is because i want to use vaules in different records in the tabular displayed data block to make validations in the same data block... before the form is commited of course
    thanks
    venom_zx

    You cannot query or manipulate blocks like table.
    But you can manually navigate to each record in the block and validate before they are commited to the base table.

  • Problem In Tabular Data Block

    Hi,
    I have to two blocks on a form (1) CONTROL----------------------------------------->CONTROL BLOCK
    (2) DETAIL-------------------------------------------->DATA BLOCK
    DETAIL BLOCK has four items referencing DETAIL TABLE COLUMNS namely ROWNUMBER, ITEMNAME, QTY, PRICE.
    In BLOCK(1) I have three text items to get input from user, and a push button . In this block(1) user inputs ITEMNAME,QTY & PRICE and presses push button.
    In WHEN-BUTTON-PRESS trigger I wrote below mentioned code
    BEGIN
    go_block('detail');
    first_record;
    for a in 1..:control.QTY loop
    create_record;
    :global.rownumber:=:global.rownumber+1; // this :GLOBAL.rownumber variable, I declared & initialized with zero, in WHEN-NEW-FORM-INSTANCE trigger.
    :detail.rownumber :=:global.rownumber;
    :detail.itemname :=:control.itemname;
    :detail.qty :=1;
    :detail.price :=:control.price;
    end loop;
    END;
    If usesr enters QTY 4,,,,, four rows are being created in detail block as four records , if user enters QTY 3, three rows are being created, and so on as per number entered in QTY text item........THE PROBLEM IS THAT, ROWS(RECORDS) ARE CREATING BUT FIRST ROW IN DETAIL BLOCK REMAINS EMPTY AND IT STARTS CREATING RECORDS FROM 2ND ROW.
    An help please.
    Regards,

    Hello,
    Well, if you think that the code you wrote with global variable its working for you then for the problem you mentioned the below code should work.
    BEGIN
    go_block('detail');
    first_record;
    clear_block;
    for a in 1..:control.QTY loop
    :global.rownumber:=:global.rownumber+1;
    :detail.rownumber :=:global.rownumber;
    -- :detail.rownumber :=:SYSTEM.TRIGGER_RECORD; -- this line should work also. So, no need for global variable
    :detail.itemname :=:control.itemname;
    :detail.qty :=1;
    :detail.price :=:control.price;
    create_record;
    end loop;
    END;-Ammad

  • Query on data block and Operating system block

    Hi ,
    Does data base requests data in term's of Data blocks or operating system block's . If data block's , how an data block get accessed the operating system block . what are the advantages over separating the data blocks from the operating system block's . can any one please explain the what happens once the data base requests the data ?
    Thank You

    sybrand_b wrote:
    This place is called 'Oracle Forum' It does not offer the Oracle University curriculum for free, nor does it offer free abstracts of the Oracle Concepts Manual.
    Kindly read the Concepts Manual of your unmentioned version yourself.
    Thank you.
    Sybrand Bakker
    Senior Oracle DBADear Sybrand
    As you said, this place is called Forum. If you know answer, then answer the question. If you know the documentation, then refer to documentation. If you don't know the answer, then don't answer in such rough manner! Just stop. Just don't type anything. Just be polity

  • Need advice on ORA-01578: ORACLE data block corrupted

    We have a development database server version- 10.2.0.3 with materialized views refresh as complete every morning. Yesterday we had a power failure and the server went down and database was shutdown unexpectedly.
    When we restarted the database after the server restarted, we found some of the datablocks got corrupted . Following were the exceptions that we saw in the alert.log.
    Errors in file /i01_01/app/oracle/product/10.2.0/db_1/admin/orcl9/bdump/orcl9_smon_7547.trc:
    ORA-01578: ORACLE data block corrupted (file # 11, block # 257712)
    ORA-01110: data file 11: '/i01_01/app/oracle/product/10.2.0/oradata/orcl9/ts_gen_data_02.dbf'
    ORACLE Instance orcl9 (pid = 8) - Error 1578 encountered while recovering transaction (9, 38) on object 54463
    I tried the following query to see the segment type.
    select owner, segment_name, segment_type from dba_extents where file_id =11 and 257712 between block_id and block_id + blocks - 1;
    OWNER
    SEGMENT_NAME
    SEGMENT_TYPE
    VISH
    INVENTORY_TXN
    TABLE
    where " INVENTORY_TXN " is a materialized view that was using the block that got corrupted. I can always recreate the MV by dropping and recreating it. Will it solve the problem???
    If not, how can I recover/repair the block.???
    Can anyone advice on this. Thanks very much in advance.

    To recover a corrupted block,the best way out is to use Blockrecover command of RMAN. So you would need RmAN backup to perform the operation.But first ypu you need to ensure that this is a persistent error or not? Is this error is coming repeatedly or just once it happened?
    About Blockrecover command,read here,
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmrecov005.htm#BRADV157
    HTH
    Aman....

  • COMMIT_FORM  per one DATA BLOCK at a time

    Hi,
    Please guide for the following:
    I have 3 data blocks (tabular) on 3 tables, with three radio buttons on the form. I want to insert records in a table as per the radio button value:
    For example
    (1) if user has selected rdbtn1 then COMMIT_FORM must insert record in table 1 only.
    (2) if user has selected rdbtn2 then COMMIT_FORM must insert record in table 2 only.
    (2) if user has selected rdbtn3 then COMMIT_FORM must insert record in table 3 only.
    Is it possible with COMMIT_FORM, if so, how, please guide.
    Regards.

    Here is the fundamental problem. The Commit_Form built-in will save all pending transactions in the entire Forms session. Therefore, in order to save incrementally (one block out of many) you have to use autonomous transactions. In essence you have to create a new session, perform your changes and save the changes outside of the current Forms session. This is typically done using Dynamic SQL. However, you can’t use the EXECUTE_IMMEDIATE Native Dynamic SQL (NDS) command in Forms. You could use FORMS_DDL (which allows you to execute dynamic SQL from Forms) but Forms_DDL issues an implicit COMM IT which will COMMI T the entire Forms Session. Therefore, the best way to accomplish this would be to call a database procedure that uses NDS to perform the needed DML and issue the COMM IT.
    The other alternative would be to do what I think "user8937305" is suggesting; depending on the Radio Button selected, you clear the other two data blocks so only the data in the selected data block (radio button) is saved through the FORMS_C OMMIT.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Relationship between a data block and latch

    Hello Experts,
    I have just read an article about indexes and full table scan by Richard Foote. http://richardfoote.wordpress.com/2009/04/16/indexes-on-small-tables-part-i-one-of-the-few/
    I thought each block required only one latch for each operation. However, I don't undersand that why a single block required 2 latch? The qoute is the following,
    Note that yes indeed, there were 4 consistent gets performed and that none of the consistent gets were the “cheaper” consistent gets examinations. Therefore, the 4 consistent gets used in performing the FTS of the one block table required 4 x 2 = 8 latches.
    Can anyone explain the above quote please?
    Thanks in advance.

    Jonathan Lewis wrote:
    Solomon Yakobson wrote:
    Read Concepts manual. Database Buffer Cache in particular:Every buffer has an access mode: pinned or free (unpinned).
    I hope the manual doesn't use the word "free" as a synonym for "unpinned", since a buffer (header) with state = "free" is one that doesn't hold a copy of a datablock and is therefore immediately available for re-use.
    Regards
    Jonathan Lewis
    Hello Sir,
    I have just read Memory Architecture document, buffer states part, I know the meaning of dirty buffers. However, when we just SELECT any table, the corresponding data blocks that read into memory from disk, are they considered as clean buffers? Because as far as I understand from dirty buffers, these are modified buffers. And maybe the manual should have used "clean" instead of "free"?
    The database uses a sophisticated algorithm to make buffer access efficient. Pointers to dirty and nondirty buffers exist on the same least recently used (LRU) list, which has a hot end and cold end. A coldbuffer is one that has not been recently used. A hot buffer is frequently accessed and has been recently used
    Also the above statement is excerpt from Oracle Memory Architecture document, does the nondirty buffers refer to data blocks that move to the memory in SELECT query?
    Thanks a lot for your remarkable thoughts.

  • How to overcome from Data block corruption error

    Hi,
    I am using one table when i was deleting one row, i encountered "Data block corruption error".
    Kindly suggest solutions for the same.
    Regards,
    Abhishek

    If you have a recovery manager backup, then you can perform a block recovery operation, after the information shown on the error message where the file# and the block# are displayed you can perform the block recovery operation.
    Syntax for the block recovery operation can be found here : BLOCKRECOVER
    In case of an index block, it is enough to rebuild the index.
    In case you have a regular backup with archivelog enabled you can restore the damaged datafile and perform a simple file recovery operation.
    One more additional tip that can be used, you may be interested in using the DBMS_REPAIR package unit.
    Finally, I suggest you to check the complete datafile using dbv (Database Verifier) utility to find out if there are more corrupt blocks in your datafile, and proactively run this utility as a maintenance task.
    ~ Madrid

  • The Finder can't complete the operation because some data can't be read or written. (Error code -36)

    Since the upgrade to 10.9 I have the most annoying issue when copying files. I have a secondary drive for media in which I keeo my media on / Samples / Video etc. I keep an exact copy on 2 external drives.
    95% I can't copy the the new media across my drives without a few restarts. I get the following:
    The Finder can’t complete the operation because some data can’t be read or written.
    (Error code -36)
    This is not a permissions issue. I've checked every folder down the the exact file it calls on. Everyone has READ & WRITE. If I restart the computer after getting this message it will do a little bit more then get stuck on another folder or file and pop the message.
    If I do smaller chuncks, it seems to do better but not all the time.
    PLEASE someone, tell me you have seen this before and you have a workaround. This is killing me,
    All HD are OS Extended Journaled - No FAT
    MacBook Pro I7
    16GB RAM
    250SSD
    450SSD
    2TD Lacie FW800 External
    is the equation right now
    thanks in advance for any help

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Thunderbolt file copy - the Finder can't complete the operation because some data in  can't be read or written.

    I have a Promisse 4 disk Thundebolt enclosure. To this I did install 4 new 2TB Samsung disks. (it had 512GB disks before). After the disks were replaced a randomly get messages like "the Finder can’t complete the operation because some data in  can’t be read or written". If I retry it sometimes work - sometimes dont work.
    To close down on the problem I have mounted one disk as a single partition, and it still happen. Then I take the disk out, mount it in an USB enclosure and I have no problem. (I have more than once written the disk completly full using USB without any problem).
    To me it seems like OSX has some weird problem with these big disks on thunderbolt. Any ideas?

    Pretty sure it`s not the promise. It could of course be the FW in the Promise having problem with 2TB disks or the Samsung brand in some way.
    Had 4 Toshiba disks in it until quite recently. No problem. They were running in RAID 0 for about 6 months.
    I have right now 2 x 2TB disks in a RAID 0 in it with no problem. So - I am down two 2 possible answers
    a) OSX don´t handle copy correct (or actually finder - have not tested cp from command line)
    b) I have been unlucky and got 2 similar disks that have the same problem (2 of 4 disks - all brand new 3 weeks ago)
    The one thing a find most annoying is OSX lack of telling what`s going on. The "Failed to read or write" error is stupid - tell me what`s the problem. Like "could not write to block XXXX". An os is also supposed to re-allocate bad blocks. However I see no way in OSX to see number of bad blocks etc. Is this possible?
    When googling the error -36 it seems like this is something that has been troubling OSX for some time, but not that many users that have problems after 10.7 was released.
    I think what I will do is to send in the disk for replacement - that will at least give some answers.

  • External HD issue. Finder cannot complete the operation because some data..

    Last night I had a drive throw the error "finder cannot complete the operation because some data in "<file>" could not be read or written. Error code-36". I thought it was a bad disk. Then tonight I plugged in a flash drive, formatted it on the machine and now I am getting the same error on that disk as well. Any thoughts???

    Yes, you can have bad blocks or other physical damage on a usb drive, the same as a firewire, or eSATA. Just because you can reformat the drive, doesn't mean the drive is okay. You reformat, yet the problem recurs. That is a sign of a bad drive. If it were an OS issue then the reformat should fix it.
    You might want to check the drives with a utility from Prosoft called DriveGenius It's the "Swiss Army Knife" of utilities, including the ability to repartition "on the fly" (A little scary for my tastes). But Prosoft is a trusted software manufacturer. Downloaded the trial (it has more bells & whistles than you can believe) But the trial will run all hardware tests without the repair feature, and give you a report.
    Also, you can download and use Applejack for repair.
    -mj

  • How to query two data blocks simultaneously?

    Dear all,
    Need your inputs on the following problem statement...
    Existing Functionality:
    We have two data blocks A (Parent) and B (Child) in a relationship. Both data blocks refer to different tables.
    Data block A is the query data block and for a single record in block A we can have multiple records in block B. Multiple records in block B are shown one at a time after executing a query, this is implemented by using a list item C (belongs to a third block).
    For example
    Let us say block B can have 5 different types of entries for each record in block A. In this case the list item C will have 5 values corresponding to these entries. Once the query is executed, block B will show the default entry for the queried record in block A. To see other entries for the record user can select the required value in list item C and corresponding entry in block B will be fetched.
    Requirement:
    Our requirement now is to enable querying upon both data blocks A and B simultaneously. To implement this I replaced data blocks A and B with a single data block X which is based on the join of the two tables referred by the Data blocks A and B earlier. As the fields should allow insert, update, delete operations we did not use a view here.
    Issue:
    Now the problem is, each record in block A for which block B had multiple entries earlier is now getting listed multiple times because of the join.
    I have tried but could not find any solution for this. I would appreciate if any of you can suggest how we can query both blocks simultaneously without affecting the existing functionality.
    Thanks,
    Amit

    I don't understand your requirement in detail. I try to repeat what i understood so far.
    You have a master-block A based on a table A and a detail-block B based on a table B. So far so good. You can now query based on conditions just the datablock A, because B is a detail and therefore can only be queryied in context of block A.
    Your reuirement is to query on both blocks A and B and find block in B also without giving conditions for the relevant block A.
    Is it that ?
    What i don't understand, what is block C used for?
    An idea for the querying of block B's data: Create Non-database-items items in block A for the search-criteria you need on block B and make them Queryable.
    In the PRE-QUERY-trigger on block A build a WHERE-condition if that search-criteria is entered, something like
    IF :BLOCK_A.SEARCH_CRITERIA_FOR_BLOCK_B IS NOT NULL THEN
      SET_BLOCK_PROPERTY('BLOCK_A', ONETIME_WHERE, 'WHERE PKVALUE IN (SELECT FKVALUE_TO_A FROM TABLE_B WHERE FIELDVALUE=' ||:BLOCK_A.SEARCH_CRITERIA_FOR_BLOCK_B)');
    END IF;This would query also records to A for which you want to have the B-records. So you could keep block-structure up to master-detail.

Maybe you are looking for

  • Issue while adding Help Link using personalization

    Hi... i am adding a help links on all the iRec pages using personalization. Requirment:- Need to have a help link on all the pages of iRec at the left corner of the page So i made the following changes to do this... 1. Created a new Region(This regio

  • Can I improve PDF OCR accuracy and compression ratio by running it through Acrobat X Std or Pro?

    I scanned a book and stored the PDF file with minimal OCR and low compression using mp ex navigator v1. Can I use Acrobat X Standard or Acrobat X Pro to take that PDF file and improve both the OCR accuracy percentage AND the compression ratio, and th

  • 4.0EA2 - PDF of diagram Truncated

    I may have run into a possible bug. I am running 4.0.0.820 and when I run a report that includes diagrams, the resulting pdf is truncated.  By truncated I mean that not all the tables are visible and some of the tables are cut off vertically (I can s

  • Game issues

    Obviously this is not as serious as issues involving apps need for work, but since installing SL and upgrading to 10.6.1 I have had issues on a few online game sites -- certain things not showing up on the screen although the actions are still happen

  • SQL : Can u print the numbers 1 upto 10 using SQL only

    Hi Friends, I want to know is there a possibility to print all the numbers between 1 upto 10 using a sql statement only. An earlier reply is appreciated. Thanks in Advance Sriram