Having problem with trigger.(help needed)

HI all,
i m totally new to the PL/SQL.... hope someone can help me with this.....
i am now using trigger to block inserting into "attendance99" table when the record reach the maximum limit and insert the record to the "waiting_list" table.
The problem i face is by using RAISE_APPLICATION_ERROR, it will block the insertion to the "waiting_list" table as well.....
i had try to use only DBMS_OUTPUT.PUT_LINE instead but end up >>> inserting record into both table "attendance" and "waiting_list" tables.
CREATE OR REPLACE TRIGGER trig_attendance
Before insert on attendance99
referencing new as new
for each row
DECLARE
maxstud NUMBER(2);
currstud NUMBER(2);
Begin
SELECT COUNT(*) INTO currstud FROM attendance99 WHERE offering_id=:New.offering_id;
SELECT max_no_students INTO maxstud FROM offering WHERE offering_id=:New.offering_id;
IF currstud >= maxstud
THEN
insert_waitinglist(:New.offering_id, :New.student_id, :New.evaluation, :New.amount_paid);
RAISE_APPLICATION_ERROR (-20500, 'Sorry, this Offering ID has reach maximum students, you will be placed into waiting list!');
END IF;
END;
CREATE OR REPLACE PROCEDURE insert_waitinglist
(v_offeringid IN waiting_list.offering_id%TYPE,
v_studentid IN waiting_list.student_id%TYPE,
v_evaluation IN waiting_list.evaluation%TYPE,
v_amountpaid IN waiting_list.amount_paid%TYPE)
IS
BEGIN
     INSERT INTO waiting_list (offering_id, student_id, evaluation, amount_paid)
VALUES (v_offeringid, v_studentid, v_evaluation, v_amountpaid);
END insert_waitinglist;
-----------------------------------------------

SQL> create table a (x number);
Table created.
SQL> create table b (x number);
Table created.
SQL> ed
Wrote file afiedt.buf
  1  create or replace procedure insert_b(x in number) is
  2    pragma autonomous_transaction;
  3  begin
  4    insert into b values (x);
  5    commit;
  6* end;
SQL> /
Procedure created.
SQL> ed
Wrote file afiedt.buf
  1  create or replace trigger trig_a
  2  before insert on a
  3  for each row
  4  declare
  5    v_cnt NUMBER;
  6  begin
  7    select count(*) into v_cnt from a;
  8    if v_cnt >= 5 then
  9      insert_b(:new.x);
10      raise_application_error(-20500, 'Limit exceeed.  Inserted to B instead');
11    end if;
12* end;
13  /
Trigger created.
SQL> insert into a values (1);
1 row created.
SQL> insert into a values (2);
1 row created.
SQL> insert into a values (3);
1 row created.
SQL> insert into a values (4);
1 row created.
SQL> insert into a values (5);
1 row created.
SQL> insert into a values (6);
insert into a values (6)
ERROR at line 1:
ORA-20500: Limit exceeed.  Inserted to B instead
ORA-06512: at "SCOTT.TRIG_A", line 7
ORA-04088: error during execution of trigger 'SCOTT.TRIG_A'
SQL> select * from a;
         X
         1
         2
         3
         4
         5
SQL> select * from b;
         X
         6
SQL>

Similar Messages

  • I am having problem with airprint and need to talk to hp techincal support team

    I have HP laserjet printer model M175nw windows 7.0 operating system and having problem to wirelessly connect to wireless network

    Hi JK,
    Here is the information to call Cloud Services for help with AirPrint in the US and Canada:
    When to call HP Cloud Services and When to Call HP Tech Support
    Kind Regards,
    Dragon-Fur

  • A student having problem with search help.

    Dear All,
    I'm studying from a book about search help.
    I have a field of a dictionary structure. From now on, I will call this field 'Field A'.
    In the book that I read, it is said that if Field A refers to a check table, then the contents of the check table are automatically offered as the Field A's input help. Furthermore, if the check table has a search help, then the search help is used as Field A's input help instead of the key fields of the check table. The search help is also used as input help for any field that refers to the check table I mentioned previously.
    Are the last 2 sentences true?
    Curiously, I created a dictionary structure of several fields. One of the fields refers to a check table. I also created a simple screen with fields that refer to the dictionary structure I mentioned earlier to test each field's input help. When I tried the field that refers to the check table, it is true that the contents of the check table are offered as the possible values. Later, I created a search help for the check table in a way that makes me easily notice that the search help is actually used as the input help, not the standard input help of check table contents. When I tested my screen again and tested the input help of the field that refers to the check table, the shown possible values were not changed. It still used the standard input help that shows the contents of the check table instead of my search help.
    Could I do something wrong or is the statements in my book incorrect?
    Regards,
    Haris

    Dear Suman,
    Thank you for the help. However, there are still some doubts in me. To improve tha clarity of my question, I'll rewrite it:
    Let 'CT' is the name of my check table.
    Currently there are many dictionary objects that refers to CT as their check table. Therefore, the contents of CT are offered as possible values / input help of those dictionary objects.
    Later, I created a search help.
    Let 'SH' is the name of my search help. SH is attached to the check table CT.
    Now, does this means SH is automatically used as the input help of all the dictionary objects that refer to CT as their check table,
    Or
    I still have to attach SH to all the dictionary objects that refer to CT in order to use SH as their input help?
    Regards,
    Haris
    Edited by: harissahlan on May 3, 2011 12:42 AM

  • Anyone else having problems with iPad 3 needing to restarted?

    This is happening a lot recently with my new iPad! I go to click into something and doesn't register it. The only way for me to get it to act normal is by powering it down and powering it back on. Super annoying especially if I am in a worry to respond to something for work. It wouldn't even recognize the new update until I powered it off and then back on! I so badly want my money back.  Should have just went with gen 2 iPad.

    Don't get discouraged, that's not the norm. It's possible the upgrade didn't go as seamless as it should. Try a simple reboot first (hold down the home and sleep buttons at the same time until you see the Apple logo) then let it boot. If that doesn't work, try a reset. Once you get it sorted out, you will be very glad you opted for the new iPad as opposed to the iPad2.

  • Having problems with rendering clipls

    I am new to Premier elements, and am having problems with my clips needing frequent rendering.  Clips that have been rendered go from green (line) to red when a transition is added or if it is trimmed and must be rendered again.  Also rendering seems to take a very long time, sometimes going fast, sometimes going a frame per second or slower.  One possible problem is that I am mixing clips from two different cameras, one a HD and the other a standard def camera. I don't know if this is a factor or not.

    If your clips are initially importing with a red line your project preset may be wrong - what preset are you using?
    After applying transitions or effects it is normal for those segments to go red line.
    It doesn't help to use two different types of video in one project. What is your final output intent - DVD or BluRay? If DVD then it would be better to convert your HD material to DV-AVI. See the Gspot link below - analyse both types of clip you are using and post the screen images here.
    Some basics:
    Install all Windows Updates.
    Install latest version of Apple QuickTime (v7.6.7 at time of writing). Even if you don't use QuickTime, PRE relies heavily on it.
    Install most recent graphics and sound drivers from the manufacturers web sites.
    Run Disk Cleanup.
    Run Defragmenter.
    Temporarily disable any anti-virus realtime scanning.
    Use the GSpot Codec Information Utility to analyse the file and post screen image.
    Post back here with the necessary information described here: Got a Problem? How to Get   Started
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • TS1702 Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

    Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

    Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

  • I am having problems with my after effects. It says that quicktime needs to be installed but it is already installed. help

    i have tried everything but its not working!!! @

    1. Download the .dmg file and save it to a folder on your computer.
    2. Quit After Effects CS6 if it is running.
    3. Double-click the .dmg file to open it, and then double-click the AdobePatchInstaller.app file to launch the patcher.
    4. Follow the on-screen instructions. There might be a slight delay before the update progress meter starts moving.
    im having trouble updating after effects.
    im having problems with the third step. help me please

  • Can't start laptop - problems with automatic repair, need acces to admin account but there is none. HELP! :(

    Hello,
    I'm having problems with my windows 8 laptop.
    This afternoon I shut it down, and went to work. A few hours later when I came back home I noticed the little blue lights on the keyboard (showing me that the pc was charging and that my wifi is on) were still on. Normally these are off when the pc is turned
    off.
    I tried starting the laptop but nothing happened, the screen stayed black. I held down the 'on' button to force it to turn off, and turned it on again.
    I then got a textmessage on the startup loading screen that there were problems with my C drive (only drive the laptop has), so it went to automatic repair.
    *my laptop's language is set to Dutch so I'm translating everything :)*
    It gave me 2 options:
    1: Restart computer
    2: Advanced options.
    I tried option 1, didnt work ofcourse, it just restarted and I got back to this screen, so I checked what option 2 had to offer.
    I got to a screen with 3 options: 
    1: Continue to windows 8
    2: Solve Problems 
    3: Shut down
    When I tried option 1 the computer just restarted and went back to the same screen.
    When I tried option 3 it shut down as it should.
    Option 2 gave me 3 other options:
    1: Renew PC
    2: Factory reset
    3: advanced options
    Option 1 just restarted my pc and took me back to screen 1.
    Option 2 I havent tried yet, because it erases all of my files. This is a last resort.
    Option 3 gave me 6 other options:
    1: Systemrepair
    2: Repair with installationcopy
    3: Startuprepair
    4: CMD
    5: UEFI firmware settings
    6. Startupsettings.
    I can't use option 1,2,3,4 because I need to log in to an administratoraccount.
    The bad part is: the laptop doesn't have an administratoraccount.
    It was my parents laptop, and theyve set it up. I always assumed the account was an admin because
    I had acces to everything and didn't need a password to run things as admin and such.
    Turns out it isn't.
    I get this message (translated) when I try to acces one of these:
    'You have to log in as administrator to continue, but this pc doesn't have an administratoraccount'.
    I can't believe microsoft added a check to see if the pc has an admin account on it, and even added a specific message to show when it doesn't, but they didnt add the option to just use these tools when there is no admin account present? What were they thinking!
    Option 5 I havent tried yet, when I click it it says I have to restart to acces these settings, but I dont want to mess with something I know nothing about.
    Option 6 gives me a few options like run the pc in safety mode, run windows repair and disable auto-restart after something has gone wrong with windows. But when I select one of these options it doesnt work. It just takes me back to auto repair. It just doesn't
    doe anything.
    There are no other options. Nothing I can do. My pc is stuck like this. The only thing I *might* be able to do is a factory reset, but I havent tried, and that could also just give me an error about me not being admin.
    Some backstory of what I think caused this problem:
    I believe the problems started a week ago, last friday.
    I'm using a program called 'AVG TuneUp'. This program gave me a message telling me it was 3 months since it had checked my C drive for defects or anything. And it asked me if I wanted it to do so. Unknowing of the problems that would follow, I pressed 'ok'
    (or whatever it was). 
    I had to restart my pc for it to begin, because it could only check the drive during startup. It went to 12% and stayed there for like half an hour, after which I decided to google (on my phone) if that was normal. It turned out that that option doesn't work
    well with windows 8 and that lots of people's computers got ruined after using it. I stressed and I tried to shut it down, but since I was still in startup the only thing I could do was force the pc to shut down, so I held down the power button and it shut
    down. I restarted and managed to abort the proces. The laptop started fine and everything worked.
    A few days later a game/program I use called League of Legends started to act weird, because I could not log in on my account (for the game) anymore. Some error with IE settings, which I was unable to fix. For more info about that go to http://boards.eune.leagueoflegends.com/en/c/help-support-en/8Eoz315J-cant-log-in-to-lol-and-cant-log-in-to-steam-either-weird-coincidence.
    Although I doubt it will help. 
    That forum post also contains a link to a post I made on the Steam forum about not being able to log into steam anymore. (Steam is another program I used). I wasn't able to log into steam anymore about 1-2 days after I wasn't able to log into LoL.
    Also at the same time my Norton sortof stopped working. It showed up as active in my task manager and AVG TuneUp program manager, but it wasn't in my task bar and I couldnt acces the control panel.
    Then yesterday I checked my pc for errors with AVG TuneUp's 1-click maintenance tool, and it told me my C drive was fragmented badly, so I defragmented it using the tool. Laptop still worked fine after that.
    And then today I got the error on startup about my C drive having errors.
    Long story shot: Problem is probably caused because I stopped the repair of my C drive with the avg tuneup tool before it was done, however its weird that I'm only experiencing (big) problems a week after that happened.
    Hardware info: 
    It's a Samsung Ativ book 6  (google it for all the specs :) )
    RAM: 8 GB DDR3 
    CPU: intel 3230M @ 2.60 gHz 
    GPU: AMD Radeon HD 8850M
    HDD: 1 TB S-ATAII hard disc 
    I've found this page:
    http://answers.microsoft.com/en-us/windows/forum/windows_8-system/windows-8-taking-me-to-automatic-repair-but-no/6cbc995e-9ecb-4e28-8d6c-adabdecb8374?rtAction=1424369231072
    But I don't really understand what the answering person is saying, and my laptop doesn't have a CD drive..
    I really, REALLY hope someone can help me with this, because my laptop is basically 100% 'destroyed'.
    Kind regards,
    Christian Collaert

    Hello,
    Perhaps the operating system is incorrectly powering down or shifting the wireless adapter to a low power state in order to improve run time while on battery?
    Try going into the Device Manager (filename: DEVMGMT.MSC), locate the wireless adapter under the Network Adapters tree, view its Properties, and on the Power Management tab, disable (un-check) the Allow the computer to turn off this device to save power option.
    Please let us know if that makes any difference (or not).
    Regards,
    Aryeh Goretsky
    I am a volunteer and neither a Lenovo nor a Microsoft employee. • Dexter is a good dog • Dexter je dobrý pes
    S230u (3347-4HU) • X220 (4286-CTO) • W510 (4318-CTO) • W530 (2441-4R3) • X100e (3508-CTO) • X120e (0596-CTO) • T61p (6459-CTO) • T43p (2678-H7U) • T42 (2378-R4U) • T23 (2648-LU7)
      Deutsche Community   Comunidad en Español Русскоязычное Сообщество

  • I had already update mi new factory unlocked iPhone 4S to iOS 5.1.1 and I still having problems with "invalid sim". I'm from Argentina and here we don't have official service. PLEASE HELP ME, WHAT CAN I DO??? In Argentina is too expensive an iPhone 4S.

    I had already update mi new factory unlocked iPhone 4S to iOS 5.1.1 and I still having problems with "invalid sim". I'm from Argentina and here we don't have official service. PLEASE HELP ME, WHAT CAN I DO??? In Argentina is too expensive an iPhone 4S. Please I need help to continue believing in Apple. Thanks a lot. If anybody speak spanish better.  

    Was it purchased from an official Apple Store, not a reseller?  Only Apple Stores sell official factory unlocked phones.  The others sell hacked to unlock phones, and the unlocking is unstable.
    Try these steps, as needed:
    1. Reset phone - press both home and on/off buttons for at least 10 seconds until the Apple logo appears.
    2. Settings > General > Reset > Reset Network Settings.
    3. Replace SIM card (and reset network settings again)
    4. Restore Phone in iTunes using a backup
    5. Restore in iTunes as new, without using a backup

  • Can you help I was having problems with my iPod so I restored it but I accidentally set it up as a new iPod is there any way to restore it from an old  backup when I right click iPod in iTunes there isn't one anyway to recover one or find it on computer

    Hi can you help I was having problems with my iPod so I restored it but I
    accidentally set it up as a new iPod is there any way to restore it from an old
    backup when I right click iPod in iTunes there isn't one anyway to recover one
    or find it on computer

    The following says how to restore from backup.
    iOS: How to back up
    If you go to iTunes>Preferences>Devices you can see if you have an iTunes backup. You need one dated before or the exact time you started the restore.

  • I'm still having problems with XUL Runner - please help am getting desperate!

    I recently sought help over a problem I am having with FF. When I try and load it, I get a message telling me that XUL runner 1.9.2.11 is not compatible with 1.9.2.12. The advice I received was to do a clean install. I have done this a number of times - using the Uninstall option in Control Panel as well as running the uninstall utility in the Firefox program folder. Each time I reinstall, and get the same problem. The only difference is that a few days ago I was installing FF 3.6.10, and that gave the error message that XUL runner 1.9.2.11 was not compatible with 1.9.2.10.
    I have FF set as my default browser, so when I click on links in e-mails, etc. I get the same failure to load symptoms. However, I found by chance that FF works OK in conjunction with System Mechanic 10 - a maintenance utility I have on my machine. If I select the on-line help option from that Menu, FF loads and runs OK. I can open new tabs and have no problem loading other pages. However, even with FF open, if I click a link in an e-mail, I get the XUL Runner error message.
    Although not all symptoms are the same, I am also having problems with IE8. When I run the program it loads, shows a 'connecting' message in the tab header, then closes. If I uninstall FF, then System Mechanic selects IE8 as the default browser, and as with FF, loads OK.
    Chrome and Safari both run OK (thankfully). there must be someone out there who knows what this all points to - is that person you?!
    Note: Trouble shooting information retrieved using FF when opened with System Mechanic.

    If you have such problems then you need remove the Firefox program folder before installing a new copy of the full Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.

  • Having Problem with JSP In Netscape!HELP!!!

    HI to all! I�m having problem with the jsp that i have :( If i use the Internet explorer it works but at Netscape... it doesn�t work :( The value of "PTE" is null... I need help !!!Please! I think the HTML IS NOT HELPING ...
    the code is :
    <html>
    <head>
    <!--tp001_transferencias_oic_POR.jsp-->
    <title>BBVA - Transfer&ecirc;ncias - Transfer&ecirc;ncias OIC</title>
    <LINK rel=STYLESHEET type='text/css' href="estilos/tablas.css">
    <!--script language="javascript" src "js/dynlayer.js"></script-->
    <script language="Javascript" src="js/banner.js"></script>
    <script language="Javascript" src="js/tp_oic.js"></script>
    <script language="Javascript" src="js/utilidades.js"></script>
    <script language="javascript" src="js/limpar.js"></script>
    <script language="javascript" src="js/tiempo.js"></script>
    </HEAD>
    <body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" class="pag-contenido" onLoad="controlSesion();">
    <%@ include file ="includecbtf.jsp" %>
    <% String s = (String)datos.get("dt");
    java.util.StringTokenizer str = new java.util.StringTokenizer(s, "-");
    String anoServer = str.nextToken() ;
    String mesServer = str.nextToken() ;
    String diaServer = str.nextToken() ;
    %>
    <!--1�form-->
    <form method="post" name="captura" action="<%=urls.get("action")%>">
    <center> <!--1�center-->
    <br>
    <!--1�table-->
    <table border="0" cellpadding="0" cellspacing="0" width="500"> <!--table das transf e nome-->
    <tr>
    <td colspan="3"><img src="images/linea.gif" border="0"></td>
    </tr>
    <tr>
    <td width="250"><img src="images/traspasos.gif" border="0"></td>
    <td width="82"><img src="images/titular.gif" border="0"></td>
    <td width="169" class="fondotitular"><font class="texttitular"><%=datos.get("usuario")%></font></td>
    </tr>
    <tr>
    <td colspan="3"><img src="images/linea.gif" border="0"></td>
    </tr>
    </table> <!--Fim do 1� table-->
    <br><br>
    </center> <!--Fim do 1� Center-->
    <center> <!--2� Center-->
    <!--Conteudo do table 2-->
    <table cellpadding="3" cellspacing="1" border="0" align="center" width="500"> <!--table referente a mensagem-->
    <tr>
    <td class="cabeceratitulo" colspan="2"><p class="titulotabla">Nota : As Transfer&ecirc;ncias para outras Institui&ccedil;&otilde;es de Cr&eacute;dito decorrem de acordo com os hor&aacute;rios da Compensa&ccedil;&atilde;o Interbanc&aacute;ria, n&atilde;o se responsabilizando o BBVA pela sua realiza&ccedil;&atilde;o fora das regras em uso.</p></td>
    </tr>
    <tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
    </table> <!--fim do table2-->
    </center> <!--Fim do 2� Center-->
    <center> <!-- Inicio 3� Center-->
    <!--Conteudo da table Combo-->
    <!--Table3-->
    <table cellpadding="3" cellspacing="1" border="0" align="center" width="500">
    <tr>
    <td class="cabeceratitulo" colspan="2"><p class="titulotabla">Transfer&ecirc;ncia Conta a Conta para outras Institui&ccedil;&ocirc;es de Cr&eacute;dito</p></td>
    </tr>
    <tr>
    <td class="formgrisosc" width="100">
    <p class="dato">Conta Ordenante:  </p></td>
    <td class="formgrisosc" width="300">
         <%
    java.util.Vector v = (java.util.Vector)(datos.get("ListaCuentas"));
    java.util.Hashtable elem;
    java.util.Enumeration e = v.elements();
    %>
    <!--1� Select-->
    <select name="conta" size="1" class="formgrisosc">
    <%
    while (e.hasMoreElements()){
    elem = (com.ibm.dse.base.Hashtable)(e.nextElement());
    String cuenta = ((String)elem.get("s_banco")).trim() + "-"+((String)elem.get("s_oficina")).trim()+((String)elem.get("s_dcontrol")).trim()+((String)elem.get("s_num_cuenta")).trim();
    out.println("<option value=\"" + ((String)elem.get("s_tipo")) + "$" + ((String)elem.get("s_clave_asunto")) + "\">" + cuenta + "</option>");
    %>
    </select> <!--Fim do 1� Select-->
    </td>
    </tr>
    <tr>
    <td class="formgriscla" width="100"><p class="dato">Data de Processamento:</p></td>
    <td class="formgriscla">
    <input type="text" name="dia" size="2"class="formgriscla" value="<%=diaServer %>" maxlength="2" class="formgriscla"> / 
    <input type="text" name="mes" size="2"class="formgriscla" value="<%=mesServer %>" maxlength="2" class="formgriscla"> / 
    <input type="text" name="ano" size="4"class="formgriscla" value="<%=anoServer %>" maxlength="4" class="formgriscla"></td>
    <input type="hidden" name="dact" size="2"class="formgriscla" value="<%=diaServer %>" maxlength="2" class="formgriscla">
    <input type="hidden" name="mact" size="2"class="formgriscla" value="<%=mesServer %>" maxlength="2" class="formgriscla">
    <input type="hidden" name="aact" size="4"class="formgriscla" value="<%=anoServer %>" maxlength="4" class="formgriscla"></td>
    </tr>
    <tr>
    <td class="formgrisosc" width="100"><p class="dato">Moeda: </p></td>
    <td class="formgrisosc"><p class="dato">
    <!--Select 2�Ver este bem-->
    <select name="Moeda" size="1" class="formgrisosc">
    <option value="PTE" selected>Escudos</option>      
    <option value="EUR">Euros</option>
    </select> </p>
    </td>
    </tr>
    <tr>
    <td class="formgriscla" width="100"><p class="dato">Import&acirc;ncia:</p></td>
    <td class="formgriscla"><input type="text" name="importancia" size="20" maxlength="15" class="formgriscla"></td>
    </tr>
    <tr>
    <td class="formgrisosc" width="100"><p class="dato">Ref&ecirc;rencia:</p></td>
    <td class="formgrisosc"><input type="text" name="ref" size="15" maxlength="10" class="formgrisosc"></td>
    </tr>
    <tr>
    <td class="formgriscla" width="100"><p class="dato">NIB Benefici&aacute;rio:</p></td>
    <td class="formgriscla"><input type="text" name="nibBeneficiario" size="30" maxlength="21" class="formgriscla"></td>
    </tr>
    <tr>
    <td class="formgrisosc" width="100"><p class="dato">Descri&ccedil;&atilde;o p/ Conta D&eacute;bito:</p></td>
    <td class="formgrisosc"><input type="text" name="debito" size="45" maxlength="45" class="formgrisosc"></td>
    </tr>
    <tr>
    <td class="formgriscla" width="100"><p class="dato">Descri&ccedil;&atilde;o p/ Conta Cr&eacute;dito:</p></td>
    <td class="formgriscla"><input type="text" name="credito" size="45" maxlength="45" class="formgriscla"></td>
    </tr>
    <tr>
    <td class="cabecera" colspan="2"><img src="images/1x1.gif" width=1 height=3 border="0"></td>
    </tr>
    </table> <!--Fim do table 3-->
    </center> <!--Fim do 3�center-->
    <center> <!--Inicio do 4� Center-->
    <!--Inicio da table 4�-->
    <table border="0" cellspacing="2" cellpadding="0">
    <tr>
    <td valign="top"><img src="images/limpar.gif" border="0" alt="Apagar"></td>
    <td valign="top"><img src="images/continuar.gif" border="0" alt="Continuar"></td>
    </tr>
    </table> <!--Fim do 4� Table-->
    </form> <!--Fim do FORM-->
    </center> <!--Fim do 4� Center-->
    </body> <!--Fim do BODY-->
    </html> <!--Fim do Html-->
    Thanks pepole!

    thanks people! when i try to validate the action "PTE" he gaves me (if i put a ALERT...) null.
    the js code is : (Moeda is coin )
    //testa amount
    // var ent = (f.amount.value);
    var tamanho = f.amount.value.length;
    var valor = f.amount.value;
    decimals = 2; // Apenas pode ter duas casas decimais?
    if (((tamanho == 0) || (valor == 0)) && ok)
    alert ("A import�ncia tem de ser maior que zero.");
    f.amount.focus();
    f.amount.select();
    ok = false;
    else
         alert(f.Moeda.value);
    if((f.Moeda.value=="PTE") && ok)
    for (j = 0; j < tamanho; j++)
    xx = valor.charAt(j);     
         if ((!(xx.match(numeroER)) && ok))
    alert ("O Campo Import�ncia deve ser num�rico inteiro.");     
         f.amount.focus();
         f.amount.select();
         ok = false;
              //if para limitar valor dos Escudos      
         if (ok)
         if (eval(valor) > 1000000)
         alert ("The field amount must be maxium 1 000 000 Pte.");     
         f.amount.focus();
         f.amount.select();
         ok = false;
    else
         if (ok)
              //function checkDecimals(f.amount, f.importancia.value) {
              if (isNaN(valor)) {
                   alert("O Campo Import�ncia deve ser num�rico e como separador decimal, o ponto.");
                   f.amount.select();
                   f.amount.focus();
                   ok = false;
              else {
                   timeshundred = parseFloat(valor * Math.pow(10, decimals));
                   integervalue = parseInt(parseFloat(valor) * Math.pow(10, decimals));
                   if (timeshundred != integervalue)
                   alert ("Apenas pode ter " + decimals + " casas decimais. Por favor tente outra vez.");
                   f.amount.select();
                   f.amount.focus();
                   ok = false;
              if (ok)
              {  //if to limit the value of the  Euros
         if(eval(valor) > 4988)
    alert ("The field amount must be maxium 4988 Eur.");     
         f.amount.focus();
         f.amount.select();
         ok = false;
    }//end of amount

  • Still having Problems with yamaha USB UX16 midi device can anyone help??

    I have setup drivers on my computer which have installed successfully. In logic I have setup environment so Physical input sequenser and keyboard are all connected up in Click and Ports layer.
    When I am trying to play keyboard I still have no input or outport signal in transport window I am stuck on what to do??
    please can someone help???

    I take back all I said. After reading reviews of this product, take it back to wherever you bought it and buy something else, anything else, everyone hates this thing, and is having problems with it. get a midisport instead.
    http://www.midiman.com/index.php?do=products.list&ID=usbmidiinterfaces
    here are a couple of reviews:
    Dec 12, 2006 - It is hit or miss as far as compatability goes and you don't know until it is too late if the full instruction set is going to be sent/recieved intact. Tried it on various Macs, PCs and inconsistent in every situation. Yamaha needs to issue a full recall on this POC called the UX-16.
    Nov 6, 2004 - The first Yamaha UX 16 that I bought worked okay for a day, then started to cause a buzzing noise. The next day, it was not recognized at all by my laptop. I returned it to the retailer, hoping to find a competitive portable USB/MIDI interface at another store. After failing to find an alternative at the other store, I bought the Yamaha UX16 again, hoping that the first dud was a fluke.
    The second UX16 also worked for one day before giving out.
    Avoid the UX16.
    Apr 12, 2004 - This thing only works for a short period of time then quits being detectable to windows for random periods of time. Totally unreliable.

  • I just bought an AirPort Extreme system over this weekend and I am having problem with setting it up. I plugged the cable as explained in the manual but there is no way I can get a steady green light. I all see is flashing amber light. Can anyone help me,

    I just bought an AirPort Extreme system over this weekend and I am having problem with setting it up. I plugged the cable as explained in the manual but there is no way I can get a steady green light. I all see is flashing amber light. Can anyone help me,

    Think you need to provide some more details about what you are connecting

  • I am having problem with my sound, after i updated to ios 6, apple please help

    i am having problem with my sound, after i updated to ios 6, i can hear music with headphone only, apple please help

    Try going into your settings and 'reset all settings'
    You will need to retweak your device but it's been said to help with sound issues.

Maybe you are looking for

  • Problem with EAP and RADIUS

    Hi *,   I have the following problem with RADIUS and EAP authentication. Radius server sends an "Access-Accept" packet to my AP, but the station does not authenticate. I've tried with different encryption configuration and with different authenticati

  • First shipment date of a particular material

    Hi all, I would like to know if there is a transaction or table where I could find the "First Date of Shipment"  based on Material Code. I need it to find whether that material is new or not. Also we can build the first arrival date by looking at "Fi

  • Automatic Payment Pogramme

    Dear Friends, I have a doubt in Automatic payment programme,. My client Requirement is Ex:- Total 5 vendors   and assigned 5 different bank accounts in Master data Now we want to pay amounts through only one particular  bank. Total line items 2000 Sa

  • Bridge (CS5) stopped previewing avi Files.

    All of a sudden can't preview avi files (dv-avi mainly) in bridge. Other files show ok. I get the thumbnails but no preview. Bridge is a part of CS5 Production Premium. Used to be ok. Haven't made any changes to the PC (Win7 Pro 64bit) Any idea? Than

  • SP2-0915: Cookies may have been disabled

    Hi folks: I am getting an error "SP2-0915: Cookies may have been disabled" when I try to run a query using iSLQ*Plus. My configuration is the following: Browser: Netscape 7.1 or IE 6.0 SP1 O/S: Windows 2K Workstation SP4 Oracle Database: Oracle 9i Pe