My loop is simple but will not work!

Hello. I'm having a lot of trouble.

I have a simple loop which goes through and sets a disabled button if its value is the database. The code is below:

DECLARE
benchmark(loop_count,expression) NUMBER (2): = 1;
seat_count NUMBER (2);
item_id;
Item1 VARCHAR2 (5): = 'SEAT_;
nom_element VARCHAR2 (10);

BEGIN
LOOP
SELECT COUNT (*) IN seat_count
SEAT WHERE showid =: global .showid
AND seatnumber = benchmark(loop_count,expression);
IF seat_count = 1 THEN
nom_element: = item1 | benchmark(loop_count,expression);
item_id: = FIND_ITEM (item_name);
set_item_property (item_id, Enabled, PROPERTY_FALSE);
END IF;

IF benchmark(loop_count,expression) = 99 THEN
EXIT;
END IF;
benchmark(loop_count,expression): = benchmark(loop_count,expression) + 1;
END LOOP;
END;


When I run the form, I get 3 guests in a line saying "FRM-41045: can not find the point: invalid ID '.
If I change the value of
tem_id: = FIND_ITEM (item_name); TO
item_id: = FIND_ITEM ('SEAT_10');
for example, he will work on "SEAT_10" and will disable her, but cannot do through the variable and the loop.

Everyone see anytihng wrong with what I wrote?

Tahnks a lot

Published by: lockmac on May 12, 2009 21:37

Published by: lockmac on May 12, 2009 21:38

Few things:

What is the result of the sql query by operating in sql developer?

From your code, it seems that you must have the items SEAT_1, SEAT_2... SEAT_99 in your form.

Do you have the number of elements in your form?

If the values are not there it will give you "article not found".

You must also maintain in your code, if the element is present or not using something like below after your find_item:

item_id := FIND_ITEM(item_name);
IF Id_Null(item_id) THEN
   Message('No such item: '||item_name);
   RAISE Form_Trigger_Failure;
ELSE
   set_item_property(item_id,ENABLED,PROPERTY_FALSE);
END IF;

It will be useful.

Check the answer as useful / OK, if this can help you

Carole

Tags: Oracle Development

Similar Questions

  • I downloaded the last Adobe Flash - it is said to be successful but will not work. What he says "Manage plugins but the plugin says it is enabled, but it will not work." I have tried disabling and then enabling - without success.

    I downloaded the last Adobe Flash - it is said to be successful but will not work. What he says "Manage plugins but the plugin says it is enabled, but it will not work." I have tried disabling and then enabling - without success. Help, please!

    There are two different versions of Flash. ActiveX for IE version and the version of the Plugin for other browsers. Have you installed the correct version? This forum software is not thing that Flash is installed for Firefox or the Plugin is disabled.

    1. download the file of configuration Flash from here:

    Adobe Flash - Plugin version.

    Save it to your desktop.

    2. close Firefox using file > exit

    Then check the Task Manager > processes tab to make sure that firefox.exe is closed.

    {XP: Ctrl + Alt + Delete, Vista: Shift + Ctrl + ESC process tab =}

    3. then run the Flash configuration from your desktop file.

    4. run Firefox and test your installation here: https://www.adobe.com/software/flash/about/

    • On Vista and Windows 7, you may need to run the installer of plugin as administrator by starting the installation program via the context menu if you do not get a UAC prompt for permission to continue (that is to say that nothing seems to be happening).

    See this:

    http://vistasupport.MVPs.org/run_as_administrator.htm

  • Microsoft fixit downloads but will not work

    Can help any body patch Microsoft it load, accept the license agreement, but will not work

    Hello

    I am glad that you posted the question in the Microsoft Community.

    1 when was the last time you were able to run the FIXIT?

    2. you have any anti-virus installed on the computer program?

    3. do you receive any error messages?

    The computer has other problems in addition to not be able to run Microsoft FIXITs?

    If the problem is related only to not be able to run FixIt, then you can contact the support team Microsoft FIXIT.

    Hope this helps and let us know if you need more assistance. We will be happy to help you.

  • my sidebar is displayed, but will not work. Defender won't come out, can not run safety programs

    My computer seemed a crash with sidebar, adobe Flash Player and security problems.  I can't get out to run and run.  They go out and disappear quickly.

    Sidebar will appear in the selection, but will not work.  Defender will appear just saying quickly extinguished.  Windows Security Essentials appears and extinguishes FST

    saying not up to date and will not be open for the scan.  Adobe said no uo to the latest version of flashplayer.  All it seems to be stuck and not come out.  Internet work

    fine and so email.

    Hi mgm842,

    1. When did you start to question?

    2. you remember to make changes to the computer before this problem?

    3. you receive messages or error codes?

    You can try to run a scan online and check.

    Step 1:

    You can check out the following link and try to download the Microsoft Safety Scanner and perform a full scan on your computer and check.

    Note: When you perform the analysis, there are risks of data loss you can take a backup of important data before performing analysis.

    Check out the link:

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Step 2:

    If you are still facing problems then try creating a new user account and check if the problem occurs:

    Create a user account

    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-user-account

    If the problem is resolved in the new user, then check out the following link to fix a corrupted user account.

    Fix a corrupted user profile:

    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

    Hope this information is useful.

  • I have a SimpleTech #96300-41001-170 standalone hard drive model. I can see it in printers & devices but will not work.

    * Original title: stand alone single Drive & WIN-7

    I have a model of disc hard SimpleTech #96300-41001-170 stand alone. I can see it in the devices & Printers. but will not work. It has been designed

    to work with Vista, XP & 2000. I am running Win - 7. Help, please!

    Thank you!

    Mike

    Hi Mike,.

    Thanks for posting your query in Microsoft Community.

    Since it has been designed to work with Vista, XP & 2000, it may not work in Windows 7 due to incompatibility problem. Therefore, I suggest you to visit the Web site of the manufacturer of the hard drive and download the driver available for the latest operating system.

    If the driver is not available for Windows 7, download the compatible driver for the previous version of Windows and I install it in compatibility mode.

    a. do the driver installation file right click and select Properties and then tap or click on the compatibility tab.

    b. check in the run this program in compatibility mode for: box.

    c. press or click the menu drop down and select a previous operating system, and then tap or click OK.

    d. try to install the driver and verify.

    Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.

  • Installed on the new laptop, but will not work as wireless? It does not support this device?

    I have the new series g of HP Pavilion... running windows 7. installed HP office jet J4680 and works through usb cord but will not work as wireless... will not be in place.

    You are running windows 7 starter edition?

    -to know

    -Right click on computer

    -Select Properties

    -Look for the system type

    Also, what processor do you have?

  • I use Photoshop for 12 years or more on a succession of computers.  It works well on my current machine (Windows 7), but will not work on a computer that is running Windows 10 built for me.  Photoshoppowers upward but then gets off by Win

    Question? I use Photoshop for 12 years or more on a succession of computers.  It works well on my current machine (Windows 7), but will not work on a computer that is running Windows 10 built for me.  Photoshop turns on but gets so turned off by Windows 10. V. frustrating - what can I do?

    What version of Photoshop? have you tried to do a right-click on the icon and selecting run as administrator

  • I have Lightroom on my iMac and MacBook Air, I just new MacBook Pro, all migrated to Pro air but will not work Lightroom until I have disable it on the Air.  HOW CAN I DO THIS?

    I have Lightroom on my iMac and MacBook Air, I just new MacBook Pro, all migrated to Pro air but will not work Lightroom until I have disable it on the Air.  HOW CAN I DO THIS?

    There is no such thing as disabling Lightroom 5.7. Just uninstall the software.

    Looks like you have installed 6 Lightroom on two of your computers (including the MacBook Air). In this case, you must find and launch Lightroom 6 (not Lightroom 5.7 or any other version of Lightroom 5) on the MacBook Air and then in the menu help, select logout.

  • I have a number of games of cards, Word and puzzle that works well with XP but will not work on Windows 7.

    Is there a download of XP compatibility that could solve this problem?

    You can try the comaptibility mode. See: http://windows.microsoft.com/en-US/windows7/Make-older-programs-run-in-this-version-of-Windows for the method.

    If you use Windows 7 Professional, ultimate or enterprise, you can try to use XP mode. See:
    http://windows.microsoft.com/en-US/windows7/products/features/windows-xp-mode for more details.

    If the games are 16-bit and you are running a 64 bit version of Windows 7, the games will not work unless you use an emulator.

    All the answers and suggestions are provided by an enthusiastic amateur and are therefore no explicit or implicit guarantee. Basically, you use my suggestions at your own risk.

  • Flash Player seems to settle down, but will not work

    Flash Player installs but does not work.  When I go to the troubleshooting website (http://helpx.adobe.com/flash-player.html), the box fills the information.  If I right click where the box should be, however, the menu display version information and behaves as if the AFP is installed.  I cannot select parameters, but can select global settings.  The global settings dialog box opens.

    I use version 11.7.700.169, using IE 9 AFP and running Windows 7.  I have 2 other PCs, and both deliver the program very well.  So far, I have tried many things to solve problems with no luck.

    So far:

    -Uninstall complete, using the Adobe uninstaller program.  I deleted the folders and content and, close and tried to reinstall.

    -J' deleted the registry entry and also tried assigning zero value located at the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\ {D27CDB6E-AE6D-11CF-96B8-444553540000}. 

    -J' use Norton 360 and attempted an install with all services stopped (anti-virus, anti-Spam, protect Auto, etc.)

    -J' checked filtering ActiveX is not checked in IE.

    -Active X and the options of script in Internet Explorer > tools > Internet Options are enabled and the selections on both PCs in mirror work.

    -J' tried to uninstall and reinstall an earlier version of AFP with no luck.

    -Shockwave Flash Object Addon is enabled.

    Screenshot is included to show what is happening on the screen to redirect after that I installed AFP.

    I am running out of ideas and would appreciate any help on this.

    Thank you!

    flashplayer.jpg

    I am a little disappointed by the forums - no responses.  I am happy to share, I found the problem and I share the solution in case others have the same problem.  The interesting thing is the setting that I've changed, it's different on the two computers to work.  In IE9, go to tools > Internet Options > advanced and the first graphics acceleration checkbox... check it out.  Restart IE and voila, it's fixed.  The other two PCs that I use have this box unchecked and AFP works fine... weird.

  • I get error code 0 x 80070490. Mr. Fix It is the proposed solution, but will not work.

    I had some problems with my computer and everything seems to work ok except when I use the resolution of problems. I get error code 0 x 80070490. When I search in Microsoft.com it suggests that I run Mr. Fix It but when I click to run it nothing happens. I am running Windows 7 Professional, Service Pack 1, 64-bit. Thank you.

    Hey Dallas Fontenot,

    You can view this issue in Microsoft Fix it Center - NOT for general support questions: http://social.microsoft.com/Forums/en-US/fixitcenter/threads

    Additional information.

    Windows Update, error 80070490: http://windows.microsoft.com/en-in/windows7/windows-update-error-80070490

    Repair installation WARNING: performing a repair installation will restore you the current installation of Windows for the version of the installation DVD. It also requires the installation of all the updates that are not included on the installation DVD. Run a repair installation will not damage files and applications that are currently installed on your computer.

    Thank you.

  • So simple but does not work! Error # 1009

    Doing my first (very simple) interactive chart and am confused as to what could go wrong.

    I have four buttons running from left to right. In the initial screen on the test I can navigate to the second, third and fourth positions on the timeline, but I can't go back. If I select the third button I can move on to the fourth place, but can't go back to 1 or 2. If I test and immediately click the fourth button I can't navigate anywhere.

    Any help would be greatly appreciated.

    *****************************************

    Error

    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at RobberyTrends4_fla::MainTimeline/frame1() [RobberyTrends4_fla. MainTimeline::frame1:12]

    *********************************

    Stop();


    import flash.events.MouseEvent;


    Lossesbtn.addEventListener (MouseEvent.CLICK, showLosses)
    Injuriesbtn.addEventListener (MouseEvent.CLICK, showInjuries)
    Countermeasuresbtn.addEventListener (MouseEvent.CLICK, showCountermeasures)
    Incidentsbtn.addEventListener (MouseEvent.CLICK, showIncidents)


    function showLosses(event:MouseEvent):void
    {
    gotoAndStop ("Losses");

    }

    function showIncidents(event:MouseEvent):void
    {
    gotoAndStop ("incident");

    }

    function showInjuries(event:MouseEvent):void
    {
    gotoAndStop ("Injuries");

    }

    function showCountermeasures(event:MouseEvent):void
    {
    gotoAndStop ("Countermeasures");

    }

    Yes, this could be a way for you to solve this problem.  If your buttons exist permanently along the timeline without interruption of new instances of them, then they will all work when called.

    If you who continue and don't want the buttons to appear in their frames of destination, then you can set the visible property to false and keep the replacement images you already have in place... just to keep them on another layer.  You need to just reset their visible property when you move elsewhere.  The best way to do that is to create a reset function that you call in the destination of all executives just before the line where you set the invisible framework... button meaning first set visible property all the buttons for real, then select that you don't want showing on the right wrong after that.

    Another way, you might be able to get out is to have your functions defined in the first frame of a layer of actionscript that extends along the timeline and have it contain the functions of event handler for the button.  In this way, that the functions are available for the length of the timeline.  The part that needs special attention is you set the headphones of events for the buttons in the keyframes you have along the timeline.  So if interrupt you a button along the timeline with a stand-in image, then all instances of this button in the timeline panel need to have the event be given listener

  • Windows activation - new hard drive and reinstalled Windows, but will not work with the product key

    Hi all

    My hard drive died so I put a new in and installed Windows on a drive, but when I have just activated and put my product key does not work. In fact, I get this day by putting in and then it says character not aloud.

    Please can someone help? All I've done is put a new hard drive in but guess that Windows detects that the product key has been used on the old, which explains why it won't work on the new. What should I do to activate the key?

    Thank you

    Richard

    Thanks a lot for your useful replies. I've got in contact with Microsoft and they gave me a key and it worked!

    Thank you

    Richard

  • Script simple stop will not work - sometimes...

    So I have a couple of flash banner that I do, they are of different sizes of exactly the same thing. I used this script to stop the animation inside a clip called main_ufo on the main timeline:
    _root.main_ufo. Stop();
    _root.main_ufo. Door.gotoAndStop (89);
    _root.main_ufo.outterlights.stop ();
    _root.main_ufo. Lights.Stop ();

    This works on one of the amounts, but won't work on another size. I checked and double checked the publication settings (both are set to Player 6, actionscript 2.0), made sure all movie clips have been appointed properly, and at the time of writing, and I went in every single movie clip if there is no conflict inside them sure scripts. Still nothing. I even copied the video ufo directly from the banner of work and stuck in the banner of non-working and replaced in the library. I tried to change the _root. to this.
    I'm out of ideas. It works on my banner 120 x 600 and does not work on the 728 x 90.
    If I had hair I would officially be out. Open to all ideas/suggestions at all.

    Here's your corrected file: http://www.kglad.com/Files/fov_ufo_728x90_2_4.fla

    you use the same instance name main_ufo on frame 190, at the end of a Tween.

  • App installs in the Simulator, but will not work

    I installed a (bar) AIR app in the Simulator (currently using the default icon), but when you click on it, it does nothing.

    I tried various sovereign wealth funds including extremely simple without success.

    I tried in the card Sim PlayBook. and the card Sim BB10. The only difference in the latter case, it is only after you click the icon, the screen clears before returning to the original state after doing nothing with my application.

    I tried without success AIR 2.5 - 3.2.

    In the command line, I see: blackberry-airpackager version 1.6

    I use Vmware 4.0.4 (after many hours of Assembly and disassembly of the different versions of Vmware)

    It has many old Posts with suggestions on how to package and install AIR applications built in Flash Pro. for use with the PlayBook.

    What is the most recent and correct for PB so BB10 method?

    Thanks to steve_web:

    The problem was that I try to run the SDK/bin folder command line package manager and using full path of the directory for files SWF and xml of th.

    As a result, there is a similar directory structure in the folder of the air in the BAR.

    I did that because I couldn't have the classpath working to run Packager outside the bin folder.

    I got it finally work when I realized it was WAY not the CLASSPATH that needed to be added.

    In short... the app worked, but it didn't load the swf file because he was in a series of subfolders in the BAR.

    Thanks Steve!

Maybe you are looking for

  • AirPrint can't find my HP Photosmart D110a all-in-one printer

    I have the iPhone 4 with ios 5.0, and it does not find my printer HP Photosmart D110a all-in-one and an AirPrint-compatible printer. I have everything set up correctly. I have the current firmware on the printer. I feel, keep printing everything wire

  • icon of the iPhone in missing iTunes on Windows 10

    I have a PC with Windows 10.  I downloaded iTunes, but my iPhone icon does not appear when I connect it via USB.  PC software does not recognize the phone, downloads, photos, etc.  But without the iTunes icon, I can't sync my iPhone, it save or put m

  • Auto update deleted all my files!

    Last night my laptop running Windows 7 Home Premium Edition 64 bit on a Dell Inspirion laptop performed an automatic update. After the reboot, all my personal files, including two 15 page paper that I worked for my diploma have been removed.All my ph

  • Windows suddenly dosen't recongize any player usb

    So I have windows 7 and a problem that started recently, today, this is the second time it happenes, the last time was 2 days ago. all of a sudden while I'm sitting in my pc, anything that uses USB disconnects, I I use a usb router and a usb keyboard

  • Network Store Interface service

    The mouse pointer often turns into an hourglass and the system is slow. I narrowed the problem to the 'Store Network Interface Service'. How can I solve this problem?