Problem commas

Can anyone help with a problem thats new to me.
We collect text in web forms and so far have not had any
trouble. Today we got a report that a page was generating errors.
We could not duplicate the error until the user sent us the text
that was being uploaded to the database.
When I inserted that particular text it generated the error
below
:Syntax error (missing operator) in query expression
'projectid=41 and phase=2 and objectcount='.
I ultimately determined that the error only occurs when the
text includes a comma followed by at least one character.
By putting some debugging code into this script I found that
the comma in the text area is removing the last variable in the
looped cfupdate tag. Other non-looped database update instructions
on the same form allow commas in the text.
I'm buffalowed.

If you're using a comma as a delimiter in some sort of list,
then the list data cannot contain that delimiter (ie comma) or
you'll recieve unexpected results.
Can you post some code?

Similar Messages

  • Problem commit w/intermedia adf struts uix & 1 step submit/commit to user

    JDev 9051, ADF, Struts, ix & Intermedia
    Problem:
    Inserting intermedia data type (ORDSYS.ORDIMAGE) AND wanting the "commit to happen behind the scenes" so the user does not have to press submit and then commit.
    I am having a problem committing a record to the DB when the form contains an intermedia data type. If I do not fill in the image column (using file upload) it works fine. My work around for now is to commit twice.
    To create a new entry that contains intermedia data type (ORDSYS.ORDIMAGE) I am using the following flow of events.
    NOTE: THIS DOES NOT WORK IF I UPLOAD AN IMAGE, HOWEVER, IF I LEAVE THE IMAGE COLUMN BLANK IT WORKS FINE.
    01. start at browseInventory.uix
    02. press create button which triggers event named createInventoryEvent
    03. which gives control to createInventoryFoward
    04. which fires Data Action named createInventoryAction
    05. which forwards to formInventory.uix
    06. user supplies data and presses the submit button which triggers event named commitInventoryEvent
    07. which gives control to commitInventoryFoward
    08. which fires Data Action named commitInventoryAction
    09. which forwards to browseInventory.uix
    NOTE: THIS WORKS IF I DO UPLOAD AN IMAGE (COMMIT TWICE)
    01. start at browseInventory.uix
    02. press create button which triggers event named createInventoryEvent
    03. which gives control to createInventoryFoward
    04. which fires Data Action named createInventoryAction
    05. which forwards to formInventory.uix
    06. user supplies data and presses the submit button which triggers event named commitInventoryEvent
    07. which gives control to commitInventoryFoward
    08. which fires Data Action named commitInventoryAction
    09. which (on success) fires Data Action named commitInventoryAction_2
    10. which forwards to browseInventory.uix
    BTW - is there some codes I can use to display an image (Struts Config - Page Flow) on the OTN forums if I am hosting the image?
    Thanks,
    Bill G...

    Did you ever get a soluction for the duoble commit thingie?
    cause I cuirrently have the smae problem. It seems that it uses the first commit to instantiate the object, and the second commit to actually upload it to the database.

  • Spool to csv file problem--comma included in the data

    Friends,
    i spooled the table's data to csv file.
    when i open it in the excel sheet some of the records are in the different cells.
    below is the record....
    Colonial Street, Ruwanda
    so when i view it in the excel sheet.
    Colonial Street is coming in one cell
    and
    Ruwanda is coming in the next cell.
    but "Colonial Street, Ruwanda" is the single entry in the column.
    so how can i spool the record which is having comma (,) in between the words to get it in the single cell of excel?
    thanks

    Usually putting double quotes around your column values should take care of that:
    select     '"'||column1
           ||'","'||column2
           ||'","'||column3||'"'
    from   your_table

  • Portal Example Server problem: Commit events are not broadcast no JMS

    Hi experts!
    I've installed the Oracle WebLogic Portal 10gR3 (10.3.2) on the Windows XP machine:
    http://www.oracle.com/technetwork/middleware/weblogic-portal/downloads/index-092352.html
    I followed by http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/samples/dvt-sample.html
    - installed the Portal Examples
    - Start > All Programs > Oracle Products > WebLogic Portal > Examples > Start Example Server.
    but my server was staying in RUNNING mode and threw errors....
    <Errors> <Security> <BEA-000000> <Commit events are not broadcast because no JMS Transport is available. Remote L2 caches will be out of sync.>
    What should I do?
    Edited by: Averyanov on Oct 1, 2010 5:40 AM
    Edited by: Averyanov on Oct 1, 2010 5:40 AM
    Edited by: Averyanov on Oct 1, 2010 5:44 AM

    Hi,
    I followed the instructions given under " Configure the RDBMS security store " ( Step 6 ) and restarted my Server. :-
    +6. In the section labeled Server Synchronization Configuration, specify the appropriate settings for JNDI and JMS so that the RDBMS security store can cache database information in memory correctly. If the RDBMS is running in more than one JVM -- for example, the domain has multiple servers, or other Oracle products are sharing the same RDBMS store with the new domain -- these caches must be synchronized to ensure the integrity of the security data.+
    To configure server synchronization:
    +1. Specify a JNDI user name and password. This can be any valid user in the security realm who has access to JNDI.+
    +2. Create a JMS topic. You may reuse an existing one, if desired. For information, see Configure topics.+
    Caution: Failure to configure JMS notifications in a multiserver domain in which the RDBMS security store is configured may result in a security vulnerability.
    +7. Click Save.+
    +8. To activate these changes, in the Change Center of the Administration Console, click Activate Changes.+
    Not all changes take effect immediately—some require a restart (see Use the Change Center).
    However, I still see the same error :-
    *+<Error> <Security> <BEA-000000> <Commit events are not broadcast because no JMS Transport is available. Remote L2 caches will be out of sync.>+*
    Am I missing something ?
    Thanks,
    Sandeep Seshan

  • Storage Performance problem

    Hello,
    Let me ask you for lights troubleshooting this problem ...
    Here we have a database server runing on a M5000, SOL10,
    with Brocade HBAs to SAN and using 2 IBM DS4700 Storage arrays
    (called STOR01 and 02).
    Problem : Commit delays, DB slow in creating tables, ....
    DB DBP @ SUNGZ Global zone.
    Storage info :
    DBP on SUNGZ
    LUN : 01_B_03 (Tower 01, Ctrl B, Array 03) 275GB.
    Testing copies with a test file with File Size 4859109376 Bytes
    My Analyse
    1)     Poor performance. Suspecting STOR01 to be the guilty.
    [root@SUNGZ /DB/DBP/tmp]#time cp temp011.dbf tfd
    real 24m30.857s
    Moving data away To STOR02...
    [root@SUNGZ #]zfs replace ORA-DBP-pool3 OLD NEW)
    Info new LUN : 02_A_06 (Tower 02, Ctrl A, Array 06)
    [root@SUNGZ /DB/DBP/tmp]#time cp temp011.dbf tfd
    real 16m30.857s
    Difference 8 MINUTES. Better but not best.
    2)     Evacuate freed lun 01_B_03. Testing back 01_B_03 LUN from SUNGZ.
    a.     creating pool “zpool create –m none TFDPOOL LUN”
    b.     creating volume “zfs create –o mountpoint=/TFD TFDPOOL:TFD”
    c.     copy STOR02 -> STOR01
    [root@SUNGZ /DB/DBP/tmp]#time cp temp011.dbf /TFD/tfd
    real 4m47.3
    GREAT ! … But it took 24 mins before zfs replace on this lun …
    d.     copy STOR01 -> STOR01
    # ls -l /TFD
    total 18995430
    -rw-r----- 1 root root 4859109376 Aug 13 12:08 tfd2
    # time cp temp011.dbf /TFD/tfd
    real 4m45.2
    GREAT !
    e.     copy STOR02 -> STOR02
    [root@SUNGZ /DB/DBP/tmp]#time cp temp011.dbf tfd
    real 15m59.857s
    WHAT A PERF !
    3)     Other copy tests :
    Copy 01_B_05 (DBD) : 4.8GB in 4m22.
    Copy 02_A_04 (DBA) : 1.2GB in 1:04. (4.8GB in 4m16)
    Conclusions :
    1)     Moving STOR01 -> STOR02, same poor performance. Best but.
    Once moved to STOR02, Same poor performance while writing locally.
    Other DBs on STOR02 are fine.
    Same poor performance behavior with 2 different storage arrays.
    2)     After tower swap, From Same Host, Orignal “SLOW LUN 01_B_03” is not the problem
    Copy from STOR02 to STOR02 -> 16m30 and 15m59 (Test Analyse 1B & 2E)
    Copy from STOR01 to STOR01 -> 4m45
    Copy from STOR02 to STOR01 -> 4m47
    Perf can change depending of storage array workload (diff 10, 15 or 30 secs)
    Slow lun problem moved to STOR02 (who was faster than STOR01)
    As writing to STOR01 makes no difference where the IOread comes from,problem is by consequences at WRITE Level.
    … WRITE level, yes, but now on STOR02...but we had same behavior on STOR01
    Again Same poor performance behavior with 2 different storage arrays.
    Defragmentation ? Same IO speed copying to STOR01.
    Problem is STORAGE ARRAY INDEPENDENT.
    Tested ZFS NO_CACHEFLUSH parameter on Dev and Acc.
    No spectaclular wins.
    Tests on 2 other Sol10 Global zones (Dev on 01_B_05) and (Acc on 02_A_04) are both ok
    SO, it is Hardware platform independent (V490, M4000, M5000)
    If storage array independent then problem is HOST SIDE.
    (For this case, SUNGZ)
    ZFS Problem ?
    Zpool upgrade listed pools to release 15. So we ran ZPOOL UPDATE -A
    ZFS Upgraded pools to latest level, no spectacular win.
    Possible : TFDPOOL is NEWLY created pool while
    ORA-DBP-pool3 has been created while ago …
    Any idea where that performance difference may come from ?
    Thanks
    Thierry
    Belgium
    Edited by: user13397414 on 13-août-2012 5:43
    Edited by: user13397414 on 13-août-2012 5:44

    Sriram,
    Practically speaking , you cannot have a server with a storage ,which is comparable with SAN or NAS.
    In an enterprise , storage ought to be on SAN or NAS. The oerformance issues might be there .But you can imporove by taking care of proper HBA's and switch configurations and also RAID confiuguration at storage array level.
    You cannot get a server ,which is manufactured and have many TB's of storage .Which is impractical.
    Performance wise , take care of above mentioned.
    Sandeep Reddy Enti
    HCC
    http://analytiks.blogspot.com

  • Removing commas from numbers

    his has a couple of items in it....
    In Numbers, I formatted a phone number column imported from a Text file, but it put in commas, like the phone is a number: 4157933161 is 4,157,933,161. Can I get rid of those commas?
    Also, I couldn't import a .txt file (a mailing list from Experian) into Numbers. When I did open the file with Numbers, Numbers put it all in 1 cell - yikes. So I had to go back to my old pc, import the .txt file (easily...) and then take that .xls file and load it on my MAC in Numbers - good golly you have got to be kidding. What am I missing. How do I import a .txt file (it actually is comma seperated but marked as an .txt file - MS Excel had no problem)
    This has to do with printing Pages or say pages from the Web. Can you print just a selection of say a Pages doc. Say I select /highlight one paragraph of a 50 page document and want to just print that, on MS in the Print page there is a box "selection" which commands the printer to only print what you selected/highlighted. Customer Care at Apple said he did not know of anyway to do this...yikes again.

    In Numbers, I formatted a phone number column imported from a Text file, but it put in commas, like the phone is a number: 4157933161 is 4,157,933,161. Can I get rid of those commas?
    Find / Replace is your friend.
    Find "," Replace by nothing.
    Also, I couldn't import a .txt file (a mailing list from Experian) into Numbers. When I did open the file with Numbers, Numbers put it all in 1 cell - yikes. So I had to go back to my old pc, import the .txt file (easily...) and then take that .xls file and load it on my MAC in Numbers - good golly you have got to be kidding. What am I missing. How do I import a .txt file (it actually is comma seperated but marked as an .txt file - MS Excel had no problem)
    Comma Separated Values files are correctly treated if their name extension is .csv.
    This has to do with printing Pages or say pages from the Web. Can you print just a selection of say a Pages doc. Say I select /highlight one paragraph of a 50 page document and want to just print that, on MS in the Print page there is a box "selection" which commands the printer to only print what you selected/highlighted. Customer Care at Apple said he did not know of anyway to do this...yikes again.
    He is perfectly right. There is no such feature.
    As we may print a given range of pages it's not a true problem.
    We may insert temporary page breaks to do the trick.
    And of course, if you prefer MS you may stay with it !
    Yvan KOENIG (from FRANCE mercredi 22 octobre 2008 11:20:29)

  • Re: Premiere Elements 8 NVidia problem

    I can't work with windows seven 64 bits with this new version.
    After few seconds run time error VC++ when i insert video and accept improve mode
    Crash without message in effect module
    I don't know if the problem comme from seven RC version or Premiere Elements 8.

    Heron62 wrote:
    Crash without message in effect module
    This sounds like the nVidia driver problem many of us have had (there are around half-a-dozen threads about this).
    If you have an nVidia graphics card and are running nVidia driver 190.62 then remove (and do not reinstall) the PhysX / Steroscopic3D features from Add/Remove Programs in Control Panel.
    Who knows - this may also fix the VC++ problem. If it does, please let us know as it extends the forums knowledge of this nVidia bug.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • Accès à 3D Curve

    je desire travailler avec une courbe 3D que je trouve dans la boîte de contrôles mais qui ne peut pas être chargée.
    pourquoi ?
    Y-a-t-il une llb que je ne possède pas.
     je travaille avec la version 6.1 de LabView.
    Avec mes remerciement anticipés.
    C.Levain

    Bonjour,
    Quelle package de LabVIEW avez vous, Base, Full Development ou Professional ?
    Vous pouvez tenter une reinstalltion de LabVIEW afin de corriger ce probleme, comme l'indique le thread suivant:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=39372&requireLogin=False
    Cordialement
    Alexandre D 

  • Swf containing my classes not shown when runned on a server

    Hi everyone,
    I hope you can help me!
    I am trying to show my swf on my localhost server, and everyting looks just great when adding a simple box in my main file.
    However, the problem commes when creating the same box in a class and the call that class from the main file. Running it
    locally from my machine everything looks as it should, however when trying to run the swf from my localhost server nothing is
    beeing showed..soo what am I doing wrong here?
    I really hope you can help me!!

    For the first approach you need to have the flv and the swf loaded to the server, and the two javascript files that the html page indicates...
    If the swf file is in a different directory than the html page, then you may need to adjust the url you use to target the flv.  It should be specified as if the swf file is in the same folder as the html page.  So if the html page uses "images/pagepeak2-1.swf" to load the swf, then the swf would have to use "images/pagepeak2_3.flv" to load the flv if the flv is also in the images folder.  The alternative would be to not change the coding and move the flv to the html page's folder.

  • Je ne peux pas activé mes imessages

    Bonjour a tous, et merci de prendre la peine de lire mon message. Voila j'ai un énorme problème d'imessage. Lors de l'activation il y a le térrible "En attente d'activation" qui dure quelque heures, avant de laisser place aux "Erreur suite a l'activation des imessages" j'ai bien entendu tout essayer, restaurer les paramètres réseaux, effacer tout mon iphone crée un autre compte apple, tout les "trucs" comme déconnecter votre compte éteindre et rallumer que me conseiller apple, que j'ai quand même appeler 4fois. Je me suis rendus dans un magasin apple et sa ne marche pas. Toute ma famille a des iphone et les imessage n'ont aucun problème. Puis les imessage on fonctionnaint bizarement suite a rien de spécial, j'avais donc déssidais de ne plus rien toucher. Mais j6mois plus tard j'ai vendu mon iphone pour récupéré l'iphone 5 de ma mère qui fonctionner parfaitement (imessage compris). Et biensur même probleme les imessage ne marche plus et je ne me souviens plus de se que j'avais fait de spécial pour les faire marcher apres avoir refait toute les manipes possible et imaginable d'apple, et des conseil d'internet, mes immages ne fonctionne toujour splus en wifi ou en 3g, Alors j'espere que sur se forum quelqu'un pourra m'aider et me dire quoi faire c'est quand même pas possible un probleme comme ça! Pour toute question sur mon problème qui pourrais vous aider n'hésitez pas!
    Remarque; Parfois il arrive que mes imessages fonctionnent mais avec mon adresse mail pour les destinataires qui recoivent. Et lorsque j'essai de déconnecter et reconnecter mon compte que ça me propose mon numéro ou mon adresse mail mon numéros est bien cocher et vérouiller, mais c'est ensuite dans les adresses des immesage mon numéro est gris et n'est pas coché. Et mon adresse mail si elle n'est pas coché il y écris aucune adresse en gris.
    Enfin je tiens a m'excuser pour le faite que ça na pas du être très claire, et surtout surtout de mes fautes d'ortographes qui ont dû être pénible mais merci d'avoir lu en espérant que vous aurez une solution!

    Tu peux téléphone avec l'assistance d'Apple. Normalement il a besoin de 5-30 minutes. Pardon pour mon francais mauvais.

  • ERRORS grrr!

    hi all,
    i have to use javax.comm api at my project, but i can not use it hitherto..
    i use Oracle's JDeveloper and show the path of comm api to the JDEV. but i cannot use it in the code like;
    import javax.comm.*;
    i can use like this;
    import comm.*;
    but when i compile the code ERRORS came out and says;
    Error(19,12): cannot access class CommPortIdentifier; class file: comm.CommPortIdentifier contains wrong class: javax.comm.CommPortIdentifier
    Error(21,12): cannot access class SerialPort; class file: comm.SerialPort contains wrong class: javax.comm.SerialPort
    Error(59,20): cannot access class CommPortIdentifier; class file: comm.CommPortIdentifier contains wrong class: javax.comm.CommPortIdentifier
    Error(75,29): cannot access class SerialPort; class file: comm.SerialPort contains wrong class: javax.comm.SerialPort
    etc....
    please help meeeee :))

    hi all,
    i have to use javax.comm api at my project, but i can
    not use it hitherto..
    i use Oracle's JDeveloper and show the path of comm
    api to the JDEV. but i cannot use it in the code like;
    import javax.comm.*;
    i can use like this;
    import comm.*;
    but when i compile the code ERRORS came out and says;
    Error(19,12): cannot access class CommPortIdentifier;
    class file: comm.CommPortIdentifier contains wrong
    class: javax.comm.CommPortIdentifier
    Error(21,12): cannot access class SerialPort; class
    file: comm.SerialPort contains wrong class:
    javax.comm.SerialPort
    Error(59,20): cannot access class CommPortIdentifier;
    class file: comm.CommPortIdentifier contains wrong
    class: javax.comm.CommPortIdentifier
    Error(75,29): cannot access class SerialPort; class
    file: comm.SerialPort contains wrong class:
    javax.comm.SerialPort
    etc....
    please help meeeee :))This is certainly a cause for errors:
    The package you include makes the compiler believe that the package is called
    comm and that the classes are called comm.CommPortIdentifier, comm.SerialPort,...
    While the actual classes have been constructed to be in the package javax.comm
    by the line package javax.comm;
    So there is a mismatch between the import-names and the actual classes internal names.
    That is why you get a problem : comm.SerialPort contains wrong class: javax.comm.SerialPort.
    I do not understand why you cannot import the package as import javax.comm.* unless
    your classpath is not correct
    So check your classpath-settings to point to the right jar-file.
    kind regards,

  • Problem with comma and point

    Hello,
    I have a problem with comma and point in a double-digit.
    I use a english driver for HM8142. When I get the values then I only get
    int-digits. How can I change "Use comma as separator" . I tried to change
    the option in LabVIEW.
    I changed it, then I got the window. "To change, restart the programm". I
    have done this. But when I have a look at the option, it is not changed.
    What can I do?
    I am not the admin on the computer.
    Martin

    Hi Martin,
    you do not have to change any system settings neither in LabVIEW nor in your windows.
    All instrument drivers should use a point as decimal separator. You can overwrite the decimal point handling in the string functions "Scan from string" and "Format into string".
    Make a right click on the function and use "Edit Scan String". In the dialog open the ring under "Selected operation", the last entry allows you to set the character for the decimal separator. This separator will be used for all the following floating point numbers.
    From your name and problem I think you are located in central europe. I do not have a german version of LV so I cannot tell you how the elements are named in german.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Problem with sqlldr and commit

    Hi,
    i have a problem with sqlldr and commit.
    I have a simple table with one colum [ col_id number(6) not null ]. The column "col_id" is primary key in the table. I have one file with 100.000 records ( number from 0 to 99.999 ).
    I want load the file in the table with sqlldr ( sql*loader ) but i want commit only if all records are loaded. If one record is discarded i want discarded all record of file.
    The proble is that in coventional path the commit is on 64 row but if i want the same records of file isn't possible and in direct path sqlldr disable primary key :(
    There are a solutions?
    Thanks
    I'm for the bad English

    This is my table:
    DROP TABLE TEST_SQLLOADER;
    CREATE TABLE TEST_SQLLOADER
    (     COL_ID NUMBER NOT NULL,
         CONSTRAINT TEST_SQLLOADER_PK PRIMARY KEY (COL_ID)
    This is my ctlfile ( test_sql_loader.ctl )
    OPTIONS
    DIRECT=false
    ,DISCARDMAX=1
    ,ERRORS=0
    ,ROWS=100000
    load data
    infile './test_sql_loader.csv'
    append
    into table TEST_SQLLOADER
    fields terminated by "," optionally enclosed by '"'
    ( col_id )
    test_sql_loader.csv
    0
    1
    2
    3
    99999
    i run sqlloader
    sqlldr xxx/yyy@orcl control=test_sql_loader.ctl log=test_sql_loader.log
    output on the screen
    Commit point reached - logical record count 92256
    Commit point reached - logical record count 93248
    Commit point reached - logical record count 94240
    Commit point reached - logical record count 95232
    Commit point reached - logical record count 96224
    Commit point reached - logical record count 97216
    Commit point reached - logical record count 98208
    Commit point reached - logical record count 99200
    Commit point reached - logical record count 100000
    Logfile
    SQL*Loader: Release 11.2.0.1.0 - Production on Sat Oct 3 14:50:17 2009
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Control File: test_sql_loader.ctl
    Data File: ./test_sql_loader.csv
    Bad File: test_sql_loader.bad
    Discard File: none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 0
    Bind array: 100000 rows, maximum of 256000 bytes
    Continuation: none specified
    Path used: Conventional
    Table TEST_SQLLOADER, loaded from every logical record.
    Insert option in effect for this table: APPEND
    Column Name Position Len Term Encl Datatype
    COL_ID FIRST * , O(") CHARACTER
    value used for ROWS parameter changed from 100000 to 992
    Table TEST_SQLLOADER:
    100000 Rows successfully loaded.
    0 Rows not loaded due to data errors.
    0 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Space allocated for bind array: 255936 bytes(992 rows)
    Read buffer bytes: 1048576
    Total logical records skipped: 0
    Total logical records read: 100000
    Total logical records rejected: 0
    Total logical records discarded: 0
    Run began on Sat Oct 03 14:50:17 2009
    Run ended on Sat Oct 03 14:50:18 2009
    Elapsed time was: 00:00:01.09
    CPU time was: 00:00:00.06
    The commit is on 992 row
    if i have error on 993 record i have commit on first 992 row :(
    Edited by: inter1908 on 3-ott-2009 15.00

  • Problems with PObject::destroy(void*) and commit after this

    Hi there
    I have some problem with delete garbage objects.
    For example:
    I create my object
    MyObject * o = new (conn,"MY#TABLE") MyObject();
    if (some_condition)
    PObject::destroy(o);
    delete o; //this work well
    //but after this
    conn->commit();
    I have got the error
    OCI-21710: argument is expecting a valid memory address of an object
    help me anybody
    can I delete/destroy object if one has been init over new (conn,table)
    and absent problem with commit after this ?

    Thank you for answer
    but what you mean about this code ?
    MyObject * o = new (conn,"MY#TABLE") MyObject();
    if (some_condition)
    o->markDelete();
    PObject::destroy(o);
    delete o;
    //but after this
    conn->commit();
    This is work without error.
    Message was edited by:
    pavel

  • Problem: trying to update all detail rows on pre-commit (MASTER DETAIL FORM

    Hi:
    I got a MASTER DETAIL form... and I need to update every detail row of this form (if the master was updated) before commiting the changes. the problem is that i cannot do that for instance in PRE-COMMIT or ON-COMMIT... it's an "illegal operation". I achieved part of it by coding KEY-COMMIT... but that did not solve the all problem. first take a look of the kind of code i want execute before commiting.
    form trigger key-commit code is is somehow like this:
    DECLARE
    tot_line NUMBER (3);
    line NUMBER (3);
    begin
    IF NAME_IN ('system.form_status') = 'CHANGED'
    THEN
    GO_BLOCK ('DETAIL');
    LAST_RECORD;
    tot_line := GET_BLOCK_PROPERTY ('DETAIL', current_record);
    FIRST_RECORD;
    line:= 1;
    LOOP
    :detail.quant := :detail.quant + 1;
    EXIT WHEN line= tot_line;
    next_record;
    line:= line+ 1;
    END LOOP;
    FIRST_RECORD;
    GO_BLOCK ('MASTER');
    END IF;
    COMMIT;
    end;
    The problem is for instance when the users close form in the "X" button (right top, near minimize form) ... If they do that Forms ask "Do you want to save changes?" ... and with this i do not execute the update of the detail rows...
    But there are other situations when this happens... for instance if EXECUTE_QUERY when i change a record...
    Anyone help?
    Joao Oliveira

    Use PRE-UPDATE trigger (Master block).
    begin
    update <detail_table>
    set quant + 1
    where <detail_table>.<relaition_column1> = :<Master_block>.<relaition_item1>
    and <detail_table>.<relaition_columnN> = :<Master_block>.<relaition_itemN>
    and <detail_block_WHERE>;
    EXCEPTION WHEN OTHERS THEN NULL;
    end;

Maybe you are looking for

  • Query in MSS

    Hi All,        This is regarding the MSS Salary Planning Module on SAP Enterprise Portal. We have observed the following: a) Salary Planning of ECM Module in SAP MSS Business Package fetches all the fields from the object and data provider framework.

  • How to call specific page of smartforms

    i have smartform in which 5 different pages are there i want to call PAGE1 when my sy-tcode eq tc1 and PAGE2 when sy-tcode eq tc2 like wise... how to pass the page name in function module of smartforms???

  • L7780 scan bar goes all the way across, but the light is only on for the first 1/2 inch

    If one does a scan/copy with the thing open, one can see a bar run from one side to the other, lit in one direction.  On my L7780, that light is no longer lit for the entire trip across, resulting in a mostly black scan/copy.  What do I do?  Repair?

  • SLD configuration to transport Third Party System ID Objects

    Hi expert, I have configured SLD group according to below link . Transport Targets and Groups in the SLD for PI and ECC system i have assigned transport target. we have third party system also defined in SLD there name is same in PI dev ,PI quality a

  • Count() doesn't display 0 values

    Hi everyone, how to display 0 values from query: SELECT TO_CHAR(first_time,'DD-MON-YY:HH24') DAY, COUNT(TO_CHAR(first_time,'MM-DD-YY HH24')) Switches_per_hour   FROM v$log_history   WHERE TRUNC(first_time) BETWEEN TRUNC(sysdate) - 6 AND TRUNC(sysdate