Cannot perform insert/update on tabular form, because of dynamic action

Hello all,
I have created dynamic action which computes value from several tabular form cells.
This functionality works nice, when I change value in associated cell then the computed value is changed by the dynamic action.
But I am not able to insert or update the row in tabular form when the dynamic action is enabled. When I set condition to "Never", then the row is inserted or updated without any problems.
Any guess where is the problem?
Apex version: 4.1.1.00.23
Jiri

Ok, below are details related to my DA. Sorry for the poor description in previous posts.
Triggered by: Chnage event
Selection type: jQuery Selector
jQuery Selector
td[headers='SPECIESCODE'] input,td[headers='MEASURETYPE'] input,td[headers='TRUNKLOGID'] input,td[headers='LOGCLASS'] input,td[headers='LENGTH'] input,td[headers='PIECES'] input,td[headers='DIAMETER'] inputTrue Actions:
*1.*
//get element id which was changed by user
var v_elementid = (jQuery(this.triggeringElement).attr('id'));
switch(v_elementid.substr(0,3))
  case "f05":
   //assign value from triggered element to hidden field     
   $s("P210_HIDDEN_SPECIES",jQuery(this.triggeringElement).val());   
   //assign actual values also to other hidden elements     
   $s("P210_HIDDEN_MEASURE",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='MEASURETYPE'] input").val());
   $s("P210_HIDDEN_TRUNKLOGID",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='TRUNKLOGID'] input").val());
   $s("P210_HIDDEN_LOGCLASS",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='LOGCLASS'] input").val()); 
   $s("P210_HIDDEN_LENGTH",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='LENGTH'] input").val()); 
   $s("P210_HIDDEN_PIECES",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='PIECES'] input").val()); 
   $s("P210_HIDDEN_DIAMETER",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='DIAMETER'] input").val()); 
   break;
  case "f06":
   $s("P210_HIDDEN_MEASURE",jQuery(this.triggeringElement).val());
   //assign actual values also to other hidden elements     
   $s("P210_HIDDEN_SPECIES",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='SPECIESCODE'] input").val());
   $s("P210_HIDDEN_TRUNKLOGID",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='TRUNKLOGID'] input").val());
   $s("P210_HIDDEN_LOGCLASS",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='LOGCLASS'] input").val()); 
   $s("P210_HIDDEN_LENGTH",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='LENGTH'] input").val()); 
   $s("P210_HIDDEN_PIECES",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='PIECES'] input").val()); 
   $s("P210_HIDDEN_DIAMETER",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='DIAMETER'] input").val());      
   break;
  case "f07":
   $s("P210_HIDDEN_TRUNKLOGID",jQuery(this.triggeringElement).val());
   //assign actual values also to other hidden elements     
   $s("P210_HIDDEN_MEASURE",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='MEASURETYPE'] input").val());
   $s("P210_HIDDEN_SPECIES",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='SPECIESCODE'] input").val());
   $s("P210_HIDDEN_LOGCLASS",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='LOGCLASS'] input").val()); 
   $s("P210_HIDDEN_LENGTH",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='LENGTH'] input").val()); 
   $s("P210_HIDDEN_PIECES",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='PIECES'] input").val()); 
   $s("P210_HIDDEN_DIAMETER",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='DIAMETER'] input").val());
   break;
}*2.*
//get element id which was changed by user
var v_elementid = (jQuery(this.triggeringElement).attr('id'));
switch(v_elementid.substr(0,3))
  case "f09":
   $s("P210_HIDDEN_LOGCLASS",jQuery(this.triggeringElement).val());
   //assign actual values also to other hidden elements     
   $s("P210_HIDDEN_MEASURE",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='MEASURETYPE'] input").val());
   $s("P210_HIDDEN_TRUNKLOGID",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='TRUNKLOGID'] input").val());
   $s("P210_HIDDEN_SPECIES",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='SPECIESCODE'] input").val());
   $s("P210_HIDDEN_LENGTH",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='LENGTH'] input").val()); 
   $s("P210_HIDDEN_PIECES",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='PIECES'] input").val()); 
   $s("P210_HIDDEN_DIAMETER",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='DIAMETER'] input").val());      
   break;
  case "f12":
   $s("P210_HIDDEN_LENGTH",jQuery(this.triggeringElement).val());
   //assign actual values also to other hidden elements     
   $s("P210_HIDDEN_MEASURE",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='MEASURETYPE'] input").val());
   $s("P210_HIDDEN_TRUNKLOGID",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='TRUNKLOGID'] input").val());
   $s("P210_HIDDEN_SPECIES",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='SPECIESCODE'] input").val());
   $s("P210_HIDDEN_LOGCLASS",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='LOGCLASS'] input").val());
   $s("P210_HIDDEN_PIECES",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='PIECES'] input").val()); 
   $s("P210_HIDDEN_DIAMETER",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='DIAMETER'] input").val());
   break;
  case "f13":
   $s("P210_HIDDEN_PIECES",jQuery(this.triggeringElement).val());
   //assign actual values also to other hidden elements     
   $s("P210_HIDDEN_MEASURE",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='MEASURETYPE'] input").val());
   $s("P210_HIDDEN_TRUNKLOGID",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='TRUNKLOGID'] input").val());
   $s("P210_HIDDEN_SPECIES",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='SPECIESCODE'] input").val());
   $s("P210_HIDDEN_LENGTH",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='LENGTH'] input").val()); 
   $s("P210_HIDDEN_LOGCLASS",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='LOGCLASS'] input").val());
   $s("P210_HIDDEN_DIAMETER",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='DIAMETER'] input").val());  
   break;
  case "f14":
   $s("P210_HIDDEN_DIAMETER",jQuery(this.triggeringElement).val());
   //assign actual values also to other hidden elements     
   $s("P210_HIDDEN_MEASURE",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='MEASURETYPE'] input").val());
   $s("P210_HIDDEN_TRUNKLOGID",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='TRUNKLOGID'] input").val());
   $s("P210_HIDDEN_SPECIES",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='SPECIESCODE'] input").val());
   $s("P210_HIDDEN_LENGTH",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='LENGTH'] input").val()); 
   $s("P210_HIDDEN_PIECES",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='PIECES'] input").val()); 
   $s("P210_HIDDEN_LOGCLASS",jQuery(this.triggeringElement).parents("tr:first").find("td[headers='LOGCLASS'] input").val());
   break;
}*3.*
call PL/SQL function (values from hidden fields are used as input params)
begin
:P210_HIDDEN_VOLUME :=  function(:P210_HIDDEN_SPECIES,:P210_HIDDEN_MEASURE,:P210_HIDDEN_TRUNKLOGID,:P210_HIDDEN_LOGCLASS,:P210_HIDDEN_LENGTH,:P210_HIDDEN_DIAMETER,:P210_HIDDEN_PIECES, :G_USERLANG);
end;*4.*
here I want to set computed value from hidden field to VOLUME cell in tabular form. And it seems there is some problem, because not only the corresponding VOLUME cell is changed, but also several other cells. I realized that also several cells which are hidden to user has same value as computed VOLUME field. Including ROWID and then the insert/update operations are not done.
// find the VOLUME-Field and set it to the computed value
jQuery(this.triggeringElement).parents("tr:first").find("td[headers='VOLUME'] input").val($v("P210_HIDDEN_VOLUME"));I hope I have provide more information and somebody will be able to he help me. maybe the problem is clear, but with my poor jQuery knowledge i am not able to find it.
Thanks in advance!
-Jiri
Edited by: Jiri N. on Aug 10, 2012 3:24 AM

Similar Messages

  • Set value in tabular form field with dynamic action

    Hi Guys,
    I have a dummy field in a tabular form which I am trying to use to populate another field in the tabular form when it is changed.
    In the tabular form I have an ITEM_ID field. Each item_id has an ITEM_NAME which is the dummy field as it is not a field in the database table.
    When the user enters an item name, I would like something like a dynamic action to fire, populating the ITEM_ID.
    e.g User enters part no ABC into the dummy field. When they tab out, I want the value to the item_id field on the tabular form row to be populated based on a SQL query in a similar fashion to how it can be done with dynamic actions on text items on a form.
    I am using APEX v4.0.0
    Thanks in advance
    Chris

    Hello Chris,
    Why can't you use Select List Item on tabular form, which will display all item_names and return item_ids?
    If the list is huge and you need users to type & search, then you can use Pop-up LOV item.
    Regards,
    Hari

  • How to perform insert, update and delete in a table component

    hi all,
    i am using a table component in my page. I want to retreive data from multiple tables as well as perform insertion, updation and deletion operation.The changes should be affected in the corresponding tables. can anyone provide a solution for my problem.
    Thanks in advance
    regards,
    prasant

    There is a great tutorial for insert, update and delete records in a table.
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/inserts_updates_deletes.html
    Hope it helps.
    Thanks,
    Moumita

  • My MacBook Pro OS X 10.5.3 cannot perform software update

    My MacBook Pro OS X 10.5.3 cannot perform software update. Installation freezes at "configuring installation" stage. I have tried installing OS X 10.5.4, 10.5.6, and 10.5.8 combos. Disk utility says my HD is OK. ???????

    Greetings,
    If you haven't done so already, backup all your important data: http://support.apple.com/kb/HT1553
    Unplug any peripherals (printers, hard drives, cameras etc.) from the computer leaving only the power cord.
    Try repairing disk permissions if you haven't already: http://support.apple.com/kb/HT1452
    Put your computer into Safe Boot: http://support.apple.com/kb/HT1455 -- STOP -- Check your available hard drive space while in  Safe Boot.  If you do not have at least 10 GB free (and really more is better) then you need to free up some space (copy movies off to an external drive, delete the 30 GB of music you never listen to, etc.)  If you have 10 or more GB available on disk proceed.
    Install the Mac OS X 10.5.8 combo update while still in Safe Boot.
    If you still can't install try reseting the PRAM (very occasionally disk cacheing issues can prevent large installations for succeeding): http://support.apple.com/kb/HT1379
    If the issue persists at this point and you have plenty of free hard drive space then your next step would be an Archive and Install: http://support.apple.com/kb/HT1710 -- You want a backup for safekeeping before you do this (see step 1)
    Hope that helps.

  • I cannot install an update on Photoshop 11 because it says I have programs running that must be closed.  I have no programsa of any kind running and I have shut down and restarted my computer twice and I still can't install the update.  Also, the tutorial

    I cannot install an update on Photoshop 11 because it says I have programs running that must be closed.  I have no programs running and I have restarted my computer twice and am unable to install this update.  Also, I need the update because the tutorial for 11 shows a completely different screen than I have on my version of 11.  Please advise.

    Garbage which operating system are you using?  Have you tried using the Task Manager/Activity Monitor to close the offending application/process?

  • I cannot perform security update with Mac OS X v10.411

    I cannot perform security update with Mac OS X v10.411.  My Mac Book Pro is super behind concerning updates and security.

    Yes, I too have that problem.  And, I have actually been hacked into, had all of my files, folders, photos, applications, sys pref, (in-other-words) EVERYTHING copied and recopied.   It has been a nightmare.  My identity was completely stolen.  What makes it worse is that when I told apple ~ I was told by 1 Apple Supervising Technician that I was out of my mind and that it wasn't possible.  He was very dismissive and treated me if I were some kind of idiot.  Well, check out below.  This is since Saturday or Sunday last.  I didn't authorize this and I sure as **** don' know who any of these people are. 
    I installed the 10.5 disk.  And I too, like many Macbook Pro users had the "Black Screen" bug.  So I had to go back to 10.4.  I went back and this is what I inherited.   I now rarely have control over the computer, never my printer and I my security has been and is constantly being compromised.  I believe that Apple needs to own up to this and, perhaps, do something about it?  Am I asking too much?
    Last login: Wed Sep 14 20:28:35 on console
    Welcome to Darwin!
    localhost:~ cat$ who
    cat      console  Sep 14 20:28
    cat      ttyp1    Sep 14 20:28
    localhost:~ cat$ whois
    usage: whois [-aAbdgiIlmQrR6] [-c country-code | -h hostname] [-p port] name ...
    localhost:~ cat$ finger
    Login    Name                 TTY  Idle  Login  Time   Office  Phone
    cat      catherine ronalds   *con    56  Wed    20:28
    cat      catherine ronalds    p1         Wed    20:28
    localhost:~ cat$ whois *con
    Whois Server Version 2.0
    Domain names in the .com and .net domains can now be registered
    with many different competing registrars. Go to http://www.internic.net
    for detailed information.
       Server Name: CON.ZZBB.COM
       IP Address: 203.231.42.121
       Registrar: INAMES CO., LTD.
       Whois Server: whois.inames.co.kr
       Referral URL: http://www.inames.co.kr
       Server Name: CON.VENUS.ORDERBOX-DNS.COM
       IP Address: 74.54.56.236
       IP Address: 74.54.56.227
       IP Address: 74.54.56.231
       Registrar: DIRECTI INTERNET SOLUTIONS PVT. LTD. D/B/A PUBLICDOMAINREGISTRY.COM
       Whois Server: whois.PublicDomainRegistry.com
       Referral URL: http://www.PublicDomainRegistry.com
       Server Name: CON.TOM.RU
       Registrar: REGIONAL NETWORK INFORMATION CENTER, JSC DBA RU-CENTER
       Whois Server: whois.nic.ru
       Referral URL: http://www.nic.ru
       Server Name: CON.MERCURY.ORDERBOX-DNS.COM
       IP Address: 67.15.253.251
       IP Address: 67.15.47.189
       IP Address: 67.15.253.220
       Registrar: DIRECTI INTERNET SOLUTIONS PVT. LTD. D/B/A PUBLICDOMAINREGISTRY.COM
       Whois Server: whois.PublicDomainRegistry.com
       Referral URL: http://www.PublicDomainRegistry.com
       Server Name: CON.MARS.ORDERBOX-DNS.COM
       IP Address: 74.52.140.84
       IP Address: 74.52.140.82
       IP Address: 74.52.140.83
       Registrar: DIRECTI INTERNET SOLUTIONS PVT. LTD. D/B/A PUBLICDOMAINREGISTRY.COM
       Whois Server: whois.PublicDomainRegistry.com
       Referral URL: http://www.PublicDomainRegistry.com
       Server Name: CON.MAIYEUBE.NET
       IP Address: 207.218.250.214
       Registrar: MELBOURNE IT, LTD. D/B/A INTERNET NAMES WORLDWIDE
       Whois Server: whois.melbourneit.com
       Referral URL: http://www.melbourneit.com
       Server Name: CON.MAFIAWORLDCONFLICT.COM
       IP Address: 96.125.168.211
       Registrar: DOMAIN.COM, LLC
       Whois Server: whois.domain.com
       Referral URL: http://www.domain.com
       Server Name: CON.KONKAK.COM
       IP Address: 67.214.175.71
       Registrar: TUCOWS.COM CO.
       Whois Server: whois.tucows.com
       Referral URL: http://domainhelp.opensrs.net
       Server Name: CON.KANGX.COM
       IP Address: 210.118.234.6
       Registrar: YESNIC CO. LTD.
       Whois Server: whois.yesnic.com
       Referral URL: http://www.yesnic.com
       Server Name: CON.JCSMEDIA.COM
       IP Address: 216.199.69.35
       Registrar: WILD WEST DOMAINS, INC.
       Whois Server: whois.wildwestdomains.com
       Referral URL: http://www.wildwestdomains.com
       Server Name: CON.HNIP.CO.KR
       Registrar: INAMES CO., LTD.
       Whois Server: whois.inames.co.kr
       Referral URL: http://www.inames.co.kr
       Server Name: CON.ETVILLE.COM
       IP Address: 112.220.108.114
       Registrar: ASADAL, INC.
       Whois Server: whois.asadal.com
       Referral URL: http://www.asadal.com
       Server Name: CON.EARTH.ORDERBOX-DNS.COM
       IP Address: 67.15.253.252
       IP Address: 67.15.47.188
       IP Address: 67.15.253.219
       Registrar: DIRECTI INTERNET SOLUTIONS PVT. LTD. D/B/A PUBLICDOMAINREGISTRY.COM
       Whois Server: whois.PublicDomainRegistry.com
       Referral URL: http://www.PublicDomainRegistry.com
       Server Name: CON.DIABLOIII.PRO
       Registrar: OVH
       Whois Server: whois.ovh.com
       Referral URL: http://www.ovh.com
       Server Name: CON.DELDC.COM
       IP Address: 210.91.181.71
       Registrar: YESNIC CO. LTD.
       Whois Server: whois.yesnic.com
       Referral URL: http://www.yesnic.com
       Server Name: CON.CONFESIONESDESOFIA.COM
       IP Address: 174.121.246.152
       Registrar: MYDOMAIN, INC.
       Whois Server: whois.namesdirect.com
       Referral URL: http://www.namesdirect.com
       Server Name: CON.CAUTO.COM
       IP Address: 12.31.226.135
       Registrar: NETWORK SOLUTIONS, LLC.
       Whois Server: whois.networksolutions.com
       Referral URL: http://www.networksolutions.com
       Server Name: CON.BLAZINGREALMS.COM
       IP Address: 68.67.78.230
       Registrar: OVH
       Whois Server: whois.ovh.com
       Referral URL: http://www.ovh.com
       Server Name: CON.BELLSFERRY.COM
       IP Address: 216.199.69.35
       Registrar: WILD WEST DOMAINS, INC.
       Whois Server: whois.wildwestdomains.com
       Referral URL: http://www.wildwestdomains.com
       Domain Name: CON.NET
       Registrar: UNIVERSAL REGISTRATION SERVICES INC. DBA NEWDENTITY.COM
       Whois Server: whois.newdentity.com
       Referral URL: http://www.newdentity.com
       Name Server: NS1.SEDOPARKING.COM
       Name Server: NS2.SEDOPARKING.COM
       Status: clientDeleteProhibited
       Status: clientTransferProhibited
       Status: clientUpdateProhibited
       Updated Date: 04-may-2011
       Creation Date: 03-may-2003
       Expiration Date: 03-may-2012
       Domain Name: CON.COM
       Registrar: TUCOWS.COM CO.
       Whois Server: whois.tucows.com
       Referral URL: http://domainhelp.opensrs.net
       Name Server: NS1.CON.COM
       Name Server: NS2.CON.COM
       Status: clientTransferProhibited
       Status: clientUpdateProhibited
       Updated Date: 05-nov-2010
       Creation Date: 05-dec-1993
       Expiration Date: 04-dec-2011
    >>> Last update of whois database: Thu, 15 Sep 2011 04:25:10 UTC <<<
    NOTICE: The expiration date displayed in this record is the date the
    registrar's sponsorship of the domain name registration in the registry is
    currently set to expire. This date does not necessarily reflect the expiration
    date of the domain name registrant's agreement with the sponsoring
    registrar.  Users may consult the sponsoring registrar's Whois database to
    view the registrar's reported date of expiration for this registration.
    TERMS OF USE: You are not authorized to access or query our Whois
    database through the use of electronic processes that are high-volume and
    automated except as reasonably necessary to register domain names or
    modify existing registrations; the Data in VeriSign Global Registry
    Services' ("VeriSign") Whois database is provided by VeriSign for
    information purposes only, and to assist persons in obtaining information
    about or related to a domain name registration record. VeriSign does not
    guarantee its accuracy. By submitting a Whois query, you agree to abide
    by the following terms of use: You agree that you may use this Data only
    for lawful purposes and that under no circumstances will you use this Data
    to: (1) allow, enable, or otherwise support the transmission of mass
    unsolicited, commercial advertising or solicitations via e-mail, telephone,
    or facsimile; or (2) enable high volume, automated, electronic processes
    that apply to VeriSign (or its computer systems). The compilation,
    repackaging, dissemination or other use of this Data is expressly
    prohibited without the prior written consent of VeriSign. You agree not to
    use electronic processes that are automated and high-volume to access or
    query the Whois database except as reasonably necessary to register
    domain names or modify existing registrations. VeriSign reserves the right
    to restrict your access to the Whois database in its sole discretion to ensure
    operational stability.  VeriSign may restrict or terminate your access to the
    Whois database for failure to abide by these terms of use. VeriSign
    reserves the right to modify these terms at any time.
    The Registry database contains ONLY .COM, .NET, .EDU domains and
    Registrars.
    No match "*con."
    localhost:~ cat$

  • Does anyone know a way of making primary keys updatable in tabular forms

    Is there a way i can make my primary key updatable in a tabular form.
    I have two tables one called proposal details and one called student current details. Bascially you select one of your proposal details to become your current project this is done via the proposal id. The problem is that i cannot make this field editable in a tabular form. Does anyone know how i could make this primary key updatable?

    Hi Dan,
    One suggestion, perhaps, would be to base the tabular form on a View rather than directly off of the table. The view could include two instances of the proposal id field - the actual field and a second field called, say, PROPOSAL_ID_EDITABLE. You can then use an INSTEAD OF trigger on the view to update the actual table data with the value entered/selected in this second field.
    The reason why Apex will stop you updating primary keys is that it needs to be able to use these to get back to the original record to apply any changes. If you use a view instead, ensure that the primary key fields are not editable but allow the user to change a dummy field instead, the pk fields are available for Apex to get back to the data but the trigger will change the value instead.
    Regards
    Andy

  • How to identify rows to update on tabular form?

    Application Express 3.2.1.00.10
    Hello!
    I have a tabular form in my application that I created through the wizard. The form is based on a table with a primary key and a trigger to populate the next key upon insert, so as a result going through the wizard was not a problem. It created page processes for ApplyMRU, ApplyMRD, AddRows, etc. I'm curious how APEX knows which row is updated without the user having to select the checkbox and clicking Submit. It seems the checkbox is only for cases where the user wants to delete a record.
    I want to be able to replicate this in another tabular form page which I am manually creating, although it will be based on a view without a PK (which I had to "fake" by concatenating unique identifying columns). In this form page, when I make attempt to make an update to a record, nothing happens in the database, unless I actually check a checkbox and click on Submit. How do I get around having the user to click off records to update? I want the form to just accept changes, and "know" which records to update in the table, similar to how APEX does it out of the box.
    Any ideas? Thanks!

    Denes,
    I tried as you have suggested, but for some reason, it doesn't seem that any action is taking place. Either the column arrays are empty or apex_application.g_f01(i) does not have a value. I've verified that none of the records in the database have changed. Any ideas?
    The Process Success Message is set to:
    Changes successful. &P7_REC_UPDATE_COUNT. records updated.  &P7_REC_INSERT_COUNT. records inserted. ... and it shows Changes successful. 0 records updated. 0 records inserted.
    This is the Page Process executed on submit of the "Submit" button:
    DECLARE
      v_return  NUMBER;
      v_msgcode NUMBER;
      v_message VARCHAR2(250);
      v_row     BINARY_INTEGER;
      v_insert_cnt INTEGER := 0;
      v_update_cnt INTEGER := 0;
    BEGIN
       FOR i IN 1..apex_application.g_f01.COUNT  LOOP
          IF  apex_application.g_f10(i) IS NOT NULL             -- CHECKSUM FIELD
             AND wwv_flow_item.md5 (apex_application.g_f01(i),   -- PK_COLUMNS
                                    apex_application.g_f05(i),   -- org_code
                                    apex_application.g_f07(i),   -- access_flag
                                    apex_application.g_f08(i),   -- external_flag
                                    apex_application.g_f09(i)   -- confid_ind
                                   ) != apex_application.g_f10(i)
          THEN
          ROLLBACK;
          RAISE_APPLICATION_ERROR(-20001,'Current version of data in database has changed '||
                                   'since user initiated update process.');                      
          RETURN;
        END IF;
      END LOOP;
      FOR i IN 1..apex_application.g_f01.COUNT LOOP
       IF apex_application.g_f01(i) IS NOT NULL THEN
         -- update existing record if PK value exists
         USER_SEC_UPDATE (I_ACTION        => 'U',
                          I_WK            => apex_application.g_f02(i),
                          I_USER_ID       => apex_application.g_f03(i),
                          I_ORG_CODE      => apex_application.g_f05(i),
                          I_ACCESS_FLAG   => apex_application.g_f07(i),
                          I_EXTERNAL_FLAG => apex_application.g_f08(i),
                          I_RPT_LEVEL     => NULL,
                          I_CONFID_IND    => apex_application.g_f09(i),
                          O_RETURN        => v_return,
                          O_MSGCODE       => v_msgcode,
                          O_MESSAGE       => v_message);   
         v_update_cnt := v_update_cnt + 1;
       ELSE
         -- insert new record if PK value doesn't exist
         USER_SEC_UPDATE (I_ACTION        => 'I',
                          I_WK            => NULL,
                          I_USER_ID       => apex_application.g_f03(i),
                          I_ORG_CODE      => apex_application.g_f05(i),
                          I_ACCESS_FLAG   => apex_application.g_f07(i),
                          I_EXTERNAL_FLAG => apex_application.g_f08(i),
                          I_RPT_LEVEL     => NULL,
                          I_CONFID_IND    => apex_application.g_f09(i),
                          O_RETURN        => v_return,
                          O_MSGCODE       => v_msgcode,
                          O_MESSAGE       => v_message);   
         v_insert_cnt := v_insert_cnt + 1;              
       END IF;
      END LOOP;
      :P7_REC_UPDATE_COUNT :=  v_update_cnt;
      :P7_REC_INSERT_COUNT :=  v_insert_cnt;
    END;

  • Multi Row Update for Tabular Form

    1) I'm trying to understand how the built-in MRU works for tabular forms: While running through every row, does it check for changes before issuing an UPDATE or does it blindly UPDATE every row in the current pagination range?
    2) If I need to write my own Multi Row Update process for tabular forms, could someone give me some tips on how to do that?
    Thanks,
    Pavel

    1) It stored a checksum for each row that it renders. It calculates the checksum again before processing the rows. The UPDATE statement it issues has a predicate like where old_checksum!=new_checksumSo, it only updates the rows that have at least 1 column value that is different (causing the row checksum to be different)
    2) See the howto at http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html

  • HTTP 400 - Bad request Page cannot be found while submitting tabular form

    Hi,
    My Apex application has sql report for summary and tabular form in a single page.
    This page is working fine when the number of rows per screen is upto 130.
    When we sets the maximum number of rows as more than 130, it displays the record but if we click button to submit the page to save
    it shows page cannot be found.
    HTTP 400 - Bad request
    URL shows apex URL followed by /wwv_flow.accept
    Is there any maximum limits to show number of records in a page in apex.
    Since number of rows selection is not there in tabular form I created a select list with submit item with values 10,20,50,100,500,1000.
    default value is '15'.
    My tabular form has 15 columns and out of them 12 are editable.
    Apex version is 3.1.

    Sounds like you're submitting too many parameters (15 * 130 = 1950), very close to 2000
    Check this post our regarding PlsqlMaxParameters
    "Page cannot be found" error when submitting tabular form
    Scott

  • How to update Manual Tabular Form

    Hi There,
    I have a manual tabular form on an apex 4.1 page and I would like to update the records when I click on a submit button.
    Below is the query of the form:
    SELECT '#ROWNUM#' sno,
    apex_item.checkbox(01, wo_line_id) del,
    apex_item.hidden(02,wo_line_id)||apex_item.hidden(03,wwv_flow_item.md5(adjusted_amount)) wo_line_id,
    apex_item.text(17, adjusted_amount, 10, 10,'onchange="set_innerHTML(this);"','f17_' ||'#ROWNUM#') adjusted_amount
    from work_order_lines
    where wo_header_id = :P302_WO_HEADER_ID;
    Below is the code in the "After Submit" process
    DECLARE
    v_header_result VARCHAR2(1);
    v_line_result VARCHAR2(1);
    v_error_count NUMBER:= 0;
    BEGIN
    FOR i in 1..apex_application.g_f02.COUNT
    LOOP
    BEGIN
    update_wo_lines_prc(:APP_USER
    ,:P302_WO_HEADER_ID
    ,APEX_APPLICATION.G_F02(i)
    ,APEX_APPLICATION.G_F17(i)
    ,v_line_result);
    END;
    END LOOP;
    COMMIT;
    END;
    Somehow the LOOP doesn't get executed.
    Please advise.
    Thanks
    Yogi

    Hi,
    I found the reason for this.
    For the column wo_line_id the show option in the report attributes was not checked.
    Thats why apex_application.g_f02.count is returning 0 and the loop was never executed.
    Thanks
    Yogi

  • How can perform insert /update /delete in one single mapping.

    Hi,
    I want to is there any logic by which we can create 2-3 pipeline in a mappings like pipelines will work for insert / update /delete or storing soem rejected data according to conditional flag.
    I tried it in a mapping but problem is that when target load order is like ins then upd then delete/reject . if new rec will come then control will pass through ins target . but if rec needs to update or delete then again control is going to ins target not update / delete target.
    We have already given the all conditional flags in filter after lookup and before target .
    all possibilities we checked but didnt got success.
    last option is separate the mappings for insert / update/delete.....etc.
    Is there any solution for this type of problem.
    reply plz if any body have solutions.
    ---Umesh

    Hi Umesh,
    I understand from your query that you want to load target with insert, update and delete rows after runnng the mappping...
    If you are looking for the same then you can use one of the Oracle fetures Oracle Streams: Change Data Capture.
    the Url is:
    http://www.oracle.com/technology/products/bi/db/10g/pdf/twp_cdc_cookbook_0206.pdf
    If any other help required do reply.
    Regards
    Tarang Jain

  • Change column to update on Tabular Form

    Hello
    I created a tabular form on a table and when creating it, I made one of the columns not updateable. Is there a way I can change the properties of this column to updateable without having to delete the tabular form and start again.
    Regards
    Craig

    Hello
    I created a tabular form on a table and when creating it, I made one of the columns not updateable. Is there a way I can change the properties of this column to updateable without having to delete the tabular form and start again.
    Regards
    Craig

  • Problem in tabular form based on dynamic view and pagination

    Hi All,
    I have a manual tabular form based on a dynamic view. The view fetches the records based on search criteria given by the user in all cases. But this view fetches ALL records when user clicks on pagination, without considering the search criteria. This is the problem I am facing.
    I am doing the following:
    Since tabular form does not support pl/sql function returning query, I cannot use a table directly. I need my results based on search criteria selected by user. Hence I created a dynamic view and used a "INSTEAD OF UPDATE" trigger to update the table.
    I use a set bind variables procedure, on load before header for setting the variables.
    This view fetches the correct data based on user search always. It creates a problem only in one situation, when using pagination in the report.
    The example can be found at:
    http://apex.oracle.com/pls/otn/f?p=19399:1:
    username = [email protected]
    pwd = kishore
    Here if "manager name" is entered as test, we get 5 records in "Summary of requests" report and 5 records in "Inactive Requests" report. When user clicks on Pagination in any of the reports, ALL the 7 records get fetched in "Summary of Requests" and 6 records in "Inactive Requests". How can I overcome this problem?? The report must consider the search variables even when pagination occurs.
    Is this because, the inbuilt "html_PPR_Report_Page" executes the region query once again by considering all search variables as NULL?
    Backend Code is at:
    http://apex.oracle.com/pls/otn/
    workspace: sekhar.nooney
    Username :[email protected]
    pwd: kishore
    application id = 19399
    My region code is something like:
    select *
    from regadm_request_v
    where access_type = :F110_REGADM
    and status <> 'INACTIVE'
    order by request_id
    My view code is:
    CREATE OR REPLACE VIEW REGADM_REQUEST_V
    AS
    SELECT *
    FROM REGREGOWNER.REGADM_REQUEST
    WHERE upper(employee_name) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_EMPLOYEE_NAME),'%')||'%'
    AND upper(manager_name) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_MANAGER_NAME),'%')||'%'
    AND upper(employee_sunetid) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_EMPLOYEE_SUNET_ID),'%')||'%'
    AND upper(manager_sunetid) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_MANAGER_SUNET_ID),'%')||'%'
    AND upper(request_date) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_REQUEST_DATE),'%')||'%'
    AND upper(USAGE_AGREEMENT_RECVD) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_USAGE_AGREMNT_RECVD,'~!@',NULL,REGADM_REQUEST_PKG.GET_USAGE_AGREMNT_RECVD)),'%')||'%'
    AND upper(STATUS) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_STATUS,'~!@',NULL,REGADM_REQUEST_PKG.GET_STATUS)),'%')||'%'
    AND upper(REQUEST_APPROVED) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_REQUEST_APPROVED,'~!@',NULL,REGADM_REQUEST_PKG.GET_REQUEST_APPROVED)),'%')||'%'
    AND upper(nvl(APPROVAL_DATE,sysdate)) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_APPROVED_DATE),'%')||'%'
    AND upper(APRVL_REQUEST_SENT) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_EMAIL_APPROVERS,'~!@',NULL,REGADM_REQUEST_PKG.GET_EMAIL_APPROVERS)),'%')||'%'
    AND upper(NOTIFY_APPROVED) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_APPROVAL_NOTIFICATION,'~!@',NULL,REGADM_REQUEST_PKG.GET_APPROVAL_NOTIFICATION)),'%')||'%'
    I would be glad for any suggestions.
    Andy/Varad any ideas? You both helped me a lot on my problems for the same application that I had faced before in More Problems in Tabular form - Please give me suggestions.
    Thanks,
    Sumana

    Hi Andy,
    The view and the package for setting bind variables work properly in my entire application other than the pagination. A pity that I came across this only now :(
    I have used this same method for holding variables in another application before, where I needed to print to PDF. I used this approach in the other application because my queries were not within the APEX character limit specified for the "SQL Query of Report Query shared component".
    In this application, I initially had to fetch values from 2 tables and update the 2 tables. Updateable form works only with one table right? Hence I had created a view. Later the design got changed to include search and instead of changing the application design I just changed the view then. Still later, my clients merged the 2 tables. Once again I had just changed my view.
    Now, I wanted to know if any method was available for the pagination issue (using the view itself). Hence I posted this.
    But as you suggested, I think it is better to change the page design quickly (as it would be much easier).
    If I change the region query to use the table and the APEX bind parameters in the where clause as:
    SELECT *
    FROM REGADM_REQUEST
    WHERE upper(employee_name) LIKE '%'||nvl(upper(:P1_EMPLOYEE_NAME),'%')||'%' .....
    I also changed the ApplyMRU to refer to the table.
    Here the pagination issue is resolved. But here the "last Update By" and "Last Update Date" columns do not get updated with "SYSDATE" and "v(APP_USER)" values, when update takes place. Even if I make the columns as readonly text field, I am not sure how I can ensure that SYSDATE and v('APP_uSER') can be passed to the columns. Any way I can ensure this? Please have a look at the issue here: http://apex.oracle.com/pls/otn/f?p=19399:1:
    I have currently resolved the "last update" column issue by modifying my view as:
    CREATE OR REPLACE VIEW REGADM_REQUEST_V
    AS
    SELECT *
    FROM REGADM_REQUEST
    I modified my region query to use APEX bind parameters itself as:
    SELECT *
    FROM REGADM_REQUEST_V
    WHERE upper(employee_name) LIKE '%'||nvl(upper(:P1_EMPLOYEE_NAME),'%')||'%' .....
    And I use the "INSTEAD OF UPDATE" trigger that I had initially written for update. The code is:
    CREATE OR REPLACE TRIGGER REGADM_REQUEST_UPD_TRG
    INSTEAD OF UPDATE
    ON REGADM_REQUEST_V
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    BEGIN
    UPDATE REGREGOWNER.REGADM_REQUEST
    SET MANAGER_EMAIL = :NEW.MANAGER_EMAIL
    , EMPLOYEE_EMAIL = :NEW.EMPLOYEE_EMAIL
    , STATUS_UPDATE_DATETIME = SYSDATE
    , USER_UPDATE_ID = (SELECT v('APP_USER') FROM DUAL)
    WHERE REQUEST_ID = :OLD.REQUEST_ID;
    END;
    Please let me know how I can resolve the "last update" column issue using the table itself. (Just for my learning)
    Thanks,
    Sumana

  • Insert / Update from Oracle Forms -- URGENT Please thanks

    Hello All,
    I need to create form which can be use for two purposes. i.e insert and update
    I have one table called emp which has 50 columns.
    Only four columns has not null constraint.
    I need to insert values in only these columns.
    From SQLPLUS it can be cone as below:
    insert ito emp values ('333','2222','007','AA','01-JAN-2007','','','','','','','','','',........);
    After that I need to update one of the coulmn with the value as
    update emp
    set zipcode = 'Y'
    where empt# = 007;
    How could I achive this from Oracle form.
    Any help will be appricated.
    D

    Why handle updates in the On-Update trigger? Oracle Forms already handles this for you. You update a data value in a field and click on the SAVE button (assuming you have a Save button) and the Oracle Forms handles the Update. The On-Update trigger is provided so you can perform processing in addition to the default UPDATE.
    Craig...

Maybe you are looking for