I have a trigger to post to the data block request...

I have a trigger to post to the data block request...
BEGIN
     IF :SECTION IS NOT NULL THEN
          SELECT DESCRIPTION INTO :BOROUGH FROM C_LOV_BOROUGH WHERE :SECTION = SECTION;
     END IF;
END;
Table C_LOV_BOROUGH has many lines

When I scroll quickly after querying data...
I get the error ORA-01403, after than scrolling up and down... it disappears... someone can help?

Use a slider instead of direct SQL SELECT as if you can't find all the lines, would not raise an exception, or use an exception handler to handle all exceptions silk-screened - found.

DECLARE
 CURSOR c_get_desc IS
   SELECT DESCRIPTION
     FROM C_LOV_BOROUGH
   WHERE SECTION = :SECTION;
BEGIN
IF :SECTION IS NOT NULL THEN
  OPEN c_get_desc;
  FETCH c_get_desc INTO :BOROUGH;
  CLOSE c_get_desc;
END IF;
END;

Second method:

BEGIN
  IF :SECTION IS NOT NULL THEN
    SELECT DESCRIPTION INTO :BOROUGH
      FROM C_LOV_BOROUGH
   WHERE SECTION = :SECTION;
  END IF;
EXCEPTION
  WHEN NO_DATA_FOUND THEN NULL;
END;

Cursor is safer than direct SELECT SELECT because maybe meet TOO_MANY_ROWS exceptions too... but if you use the slider, he realized the first found line extraction and populate the BOROUGH and if it does not find anything, it won't throw an exception.

Tags: Oracle Development

Similar Questions

  • I have a VBA application that fills the data in an Acrobat form.  Do I have to distribute a complete Acrobat on each machine that uses this application (it will be disastrous) or is there a way I can use the software Acrobat reader only.  I am using the f

    I have a VBA application that fills the data in an Acrobat form.  Do I have to distribute a complete Acrobat on each machine that uses this application (it will be disastrous) or is there a way I can use the software Acrobat reader only.  I use the next AcroExch.App and AcroExch.PDDoc object to the form.  I hope there's a distribution object, I can use the full application and not because I don't want users to have access to forms and to keep the cost down.

    It is important to realize that the Acrobat SDK kit is a marketing tool for Acrobat. So, Yes, certainly you need a copy for each system. There is no redistributable components.

  • Update of the data block on the table

    Hello

    I have a table that already exists with the data. I got another set of spreadsheet data to update the date on the table. The table name is EMPLOYEE.

    The table structure is like this

    > > EMP_ID, FIRST_NAME, LAST_NAME, ADDRESS, PHONE_NUMBER

    Most of the files is not in the data table ADDRESS or PHONE_NUMBER, worksheet contains the updated information that needs to be updated on the EMPLOYEE table.

    Please suggest me a method to update the data.

    I intend to create a temporary table upload the data in the table. and then update the data using tables. Is this right approach please suggest

    Thank you
    Sudhir

    This means that your UNIQUE_ID is truly UNIQUE...

  • How to get the date of request for a date column

    I have a requirement where I need to filter the data between two guests to date. I have only a single column of date and the date in the guests should be chosen by the calendar.
    I saw may approaches to do this, and I have one where two columns of fictitious date must be declared in the repository and used to define the guests of the date.

    but by using other methods I couldn't schedule option in the command prompt.

    but y at - it another way to get the guests with calndar selection without set dummy columns in the repository

    Thank you

    Try adding a column of similar date first and then edit the formula in the column

  • RESTRICTING THE SIZE OF THE DATA BLOCK REGISTRATION

    I have a form with a main block and details. MY requirement is as follows:

    The number of records that will allow the bulk of RETAIL data entry should depend on the selection of a certain text value in the header block.

    For ex: if I select A value in the header, data can be resumed for only 6 records block details. If you try to enter data in the record of the 7th, then system should display an error message.


    Is this possible. Help, please.

    Hello
    This one, you have to do manually. Create a synthesis item to get total retail entered and records at the top of WHEN-CREATE-RECORD , check if the total number of records exceeds the desired lines.

    Kind regards

    Manu.

  • Validate the data block

    Hello
    I have a block of data with editable fields. If the user changes some data in these fields and click on a button in a different block, then I need to display a message asking the user to save changes (similar to the message when the data is not stored and user tries to close the window). How do validate us this on a click of a button?

    Kind regards
    Suresh

    This code on your button

    if :system.form_status = 'CHANGED' then
    message('Save your changes'); pause;
    end if;
    
  • Variable presentation for between the date of request

    Hello

    I have a requirement where I need to pass the value to the variables of presentation for "Between" date guests.

    Basically, a user can select two dates in the same column and see revenue between these two dates.

    The problem is that I can use a single column only once and if I do 'In between' then the 'set the variable' option disappeared.

    Kindly help me with the problem.
    Thank you.

    Vinay

    With regard to feeding guests, you don't have to use the same column. It is only when you filter your date column becomes important. With this, follow these steps:

    Place two columns in quick work space and use case WHEN 1 = 0 THEN... effectively dummy columns columns. Use the drop down menu to make the two guests "Edit box." Value of operand ' is equal to ' and prompts PVs: StartDate and EndDate. You can create session variables to set the default values. This method ignores the date columns and typed by the user to the value. Default dates show that the format users should use.

    Now in your request, click on the filter of your date column, convert the filter SQL and type:

    'Table Date.' ColumnName > = ' @{StartDate} "AND" table Date ".columnname"<=>

    It will work, but there are other options. If you want the user to select a date from a list drop-down, just use another date column that has dates available for the user to select. Once again you are simply feeding the Pvs in the guests. It is not necessary for the second column to be the same as the first.

  • disable the data block smartbar menu navigation.

    Hi all
    I use forms 9i, at my request, I'll have 10 Web stack and each containing different data blocks with about 10-15 pieces of data on each to view.
    with the connection credentials, I use to turn on or off certain blocks of data by setting the enabled property of the canvas to true/false. but I realized that even if I turn off the Web, it can be activated by the arrow navigation of oracle smartbar default menu next block there is option to disable the block of data element but what I want doesn't want do not display them at all even not the canvas that is not necessary. definition of each element of data visible and enable property is very repetitive task. so is there another way or what should I do on the other I can stop to navigate to data blocks.

    Thank you
    Rahul

    create KEY-NXTBLK and KEY-PRVBLK triggers at the level of the form with just

    NULL;
    

    as a code.

    To disable the functionality of menu as well as the keyboard navigation.

  • Regarding the authorized request property if the data block is the database no.

    I'm now a project located on Oracle Forms 10g.

    There is a DataBlock with certain properties such as

    1 block of data in the databases: No.
    2 query allowed: Yes
    3 interrogate the Data Source Type: table
    4 insert authorized: Yes
    5 update allowed: Yes
    6. Remove allowed: Yes

    If the DataBlock is not database data block are then properties no. 2 to 6 relevent?
    I think these properties must be set to NO and the query data Source Type must be None.
    Can someone help me please.

    Yes... The block of database property must be "NO"... I made the mistake of typo... You can also change other properties... No problem in that

  • Save the record before moving on to the next line in the data block

    Hello

    Form 10g, I have a block of retail, in the block of retail, I want the user first save the current line and then move to the next line, in the validate_record trigger, I checked the system.block_status = new but its does not work and the user is still able to move around the lines below without saving it in the upper rows.

    any tips?

    Ouadi wrote:
    Hello

    Form 10g, I have a block of retail, in the block of retail, I want the user first save the current line and then move to the next line, in the validate_record trigger, I checked the system.block_status = new but its does not work and the user is still able to move around the lines below without saving it in the upper rows.

    any tips?

    Yes. You can make commit automatic when changing the line.

    When-new-folder-instance trigger writing

    commit_form;
    

    I hope this helps...

  • Test the data block in an OPA

    Hello

    We have developed a rules engine that has more than 6000 + test cases with permutations and different combinations. Could someone please suggest a method to generate the test data for the same thing and also test on the engine of the OPA. Tried to do with the document analysis-If-persists but this does not cover everything.

    Thank you!

    Kind regards

    Varsha

    Tried to use processing batch and it worked. Exit A in a few seconds.

  • Get the serial number automatically in the data block

    How can I get the serial number automatically in the block of data after executing the query statement

    use: blk.slnumber: =:system.trigger_record; in the trigger after change.

  • Remove the date block impressions

    I have problem where I put a button on a block table several as you saw in the number shown



    and how the button to remove the contents of a tuple? !

    CLEAR_RECORD will be only 'hide' the line of the display without actually deleting.

    If you want to delete the row from the database, you must use DELETE_RECORD;

  • On the freedom of Navigation in the element of the data block

    Hello everyone.

    I use Forms 9i and oracle 9i database.

    Case: I make a form in which table I use to have all the fields declared as NOT NULL
    forms required of each item property is set to Yes.

    After running the form I can't navigate the fields unless theres something entered in it.

    I tried to adjust the property necessary move, it makes browsing but it doesn't then search fields empty and error comes that once it is sent to the database.

    I want to be like I can freely navigate the fields taking care that they are declared not null in the database
    and I can stop sending data from database if none of them are left blank

    you have 3 options with the 'Reporter required order' 'Yes', 'No' and '4.5 '.

    No is the default.

    If the value "Yes" law enforcement will take place as soon as the form validation and you can move freely on the elements. But in this case WHEN-VALIDATE-ITEM triggers won't shoot up to save the form.

    So together "4.5" you will be able to navigate freely AND WHEN-VALIDATE-ITEM triggers will fire when the element is valid even if the element is empty. This will be useful if you have calculations that you need to perform.

    Tony

  • Firefox 3 crashing - have to use FF3 because of the ALPS scroll does not work in anything else

    Had to stay with FF3, as everytime I try again updated the version of the ALPS scrolling touchpad does not work on my Acer 5738Z. I've made sure the drivers are all to date and everything else is in order but no luck. Have tried different methods posted on the forums, but still no luck.

    Now, all of a sudden, FF3 now crashes every 10 minutes or more.

    I prefer FF, but this disadvantage is too and I'm going to need IE for now, until someone can tell me a solution. Here are a few crash IDs Ive seen lately.

    Finally!

    This fixes the problem for anyone else run into this problem:

    For those who have problems with the standard driver for the ALPS touchpad in firefox 4. Here's a quick check difficulty: 1) open registry with regedit 2) search for the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Alps\Apoint) 3 ScrMethod 1 game 4) Reboot

    The ALPS/FIREFOX tri!

Maybe you are looking for

  • X 61: Bluetooth device is not detected in Windows 7 64 bit

    When I tried to install the bluetooth (vista 64 bit) driver and directly from Broadcomm, both were still stuck in the same place: No Bluetooth device was detected. Someone knows how can I activate my bluetooth device, then install the driver? Thank y

  • PROBLEM connection TV with HD casing

    I tried to log into wifi from my computer doesn't 986KO my network in the networks available were in the bottom right of my screen. I located him and so I tried to me y connector but failed (I had removed the cable ethernet...) I therefore put the et

  • Large outgoing message stuck in Outlook Express 6.

    I tried to send a message out with too many photos.  It is now stuck and I can't do anything.  I tried 'work offline' and restart Outlook.but still cannot delete the outgoing message.  It freezes just straight up. Thanks for any help you can provide!

  • CSA CSA

    Contracting IM for the USAF and we are currently assessing the product of CSA. A rule can be created to refuse all TCP or UDP connections from a computer, unless she has CSA installed? Ive looked through the docs and I can't find anything that mentio

  • Unreadable USB key

    I use Windows 7. I've never used external devices that have been used on other computers. I have a memory of 16 GB usb stick and the computer will read is no longer. It simply does not show on the screen. How can I recover the files?