Add error causing senior in 4.2.1 when inserting and updating same time

Hi all

I have problems with the top to add a line in a table.

There is already a thread here on how to add the line above in table form in version 4.0.

We have recently upgraded to version 4.2.1 Apex.

Since then we have question while inserting a new line and update an existing line at the same time, and then click Save button causing the error below:

Current version of the data in the database has changed since the user initiated the update process. version of current line identifier = "xxxxxx" line application version identifier = "xxxxxx".

But insert a new record and update an existing record works well separately with an error.


Here's the code to add the line at the top of page header HTML

<script language="javascript" type="text/javascript">
function addRowTop()
{
apex.widget.tabular.addRow();
apex.jQuery(apex.widget.tabular.gTabForm).find(".highlight-row").last()
.insertBefore(apex.jQuery(apex.widget.tabular.gTabForm).
find(".highlight-row").first());
}
</script>

If I use by default addRow so absolutely no problem to insert and update at the same time.

Here is the example of work in the workspace apex.

Looks like a bug to me.

Can any of the Oracle team please see this and let us know if it needs a patch.

Thank you

REDA

Not sure that I consider this a bug since you are somehow hacking the default functionality of the APEX.  Maybe you could add a feature request 'Add Top line' to https://apex.oracle.com/vote

It seems that you hit some enhancments to safety that have been made to the tabular forms. You should be able to work around it by putting the new lines to the bottom of the form before submitting the page.

Create a dynamic action based on the click of the submit button.

Event: click on

Selection type: button

Button: SUBMIT (Submit)

Condition: - no requirement.

Add real action to run the JavaScript Code:

Action: run the JavaScript Code

Fire when the result of the event is: true

Fire on Page load: [disabled]

Code:

apex.jQuery(apex.widget.tabular.gTabForm).find("input[value=''][name='frowid']").closest(".highlight-row")
 .insertAfter(apex.jQuery(apex.widget.tabular.gTabForm).find(".highlight-row").last());

Add a real action to send the page:

Action: send the Page

E: Nam request/buttonSUBMIT

-Jeff

Tags: Database

Similar Questions

  • Silverlight will not install on my computer. I get an error code 659. Silverlight has worked on computer at the same time. Vista in Home Office business management.

    Silverlight will not install on my computer.  I get an error code 659.  Silverlight has worked on computer at the same time.  Vista in Home Office business management.  Can someone help me with this issue?  I installed Vista service pack 2.

    johncoxcpa,
    Well looking at the log you've posted, I came across this article:
    MSI (s) (2 c: D4) [22:29:29:073]: sequence number number for this installation system restore.
    This installation is forbidden by system policy. Contact your system administrator.
    c:\c17e5b6672c37d9f685b\Silverlight.msi

    So it seems that if your system has a software restriction policy installs.  You need to contact your IT Department. to learn about the changes to the policy will be to install Silverlight.
    Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • error 53 on I phone6, I can't restore and update to ios 9.1, there by icloud, but it does not work

    I can't restore and update ios9.1 53 on iphone error 6, I try by icloud, but it does not work

    the screen on the myphone was raplaced, how can I restore phone

  • error code 0x80073cf9 when downloading and updating applications on Windows Store

    Hi all, right now I am facing a problem to download and update of the applications from the windows store after an update of my windows. I am currently using 8 64-bit windows. When I try to download apps I get the 0x80073cf error code. Many thanks if someone can help me solve this problem.

    Hi Yang,

    Thank you for keeping us posted on the State of the computer.

    If everything has been removed from the computer and a Windows.old folder is created, then it is probably a Custom Installation or the reset which took place in the computer. But anyway, let's verify the present question in the computer.

    You said that you are not able to reinstall your apps from the Store. What exactly happens when you try to reinstall your applications on the Store? You get an error code?

    You can view the article at the following link once and see if information in there helps you get the resettlement app issue resolved:

    Why can't find or install the application on the Windows Store?

    http://Windows.Microsoft.com/en-in/Windows-8/why-find-install-app-Windows-store

    Don't answer if you need help with Windows problems, we will be happy to be of assistance.

  • Errors during insertion and update form using the VIEW.

    Here is my opinion:

    CREATE OR REPLACE FORCE 
    VIEW  "SH_ADD_EMPLOYEES_VW" ("EMP_ID", "DEPT_ID", "JOB_DESC_ID", "EMPNO", "EMP_FIRST", "EMP_LAST", "USER_NAME", "USER_INI", "DEPTNO", "DEPT_DESC", "ROLES_ID", "ADMIN", "CREATES", "APPROVES", "QUALITY", "CUST_SVC", "SH_LOCAL", 
    "SH_OFFICE", "SYSTEM") 
    AS
      select
    "SH_EMPLOYEES"."EMP_ID" as "EMP_ID",
    "SH_EMPLOYEES"."DEPT_ID" as "DEPT_ID",
    "SH_EMPLOYEES"."JOB_DESC_ID" as "JOB_DESC_ID",
    "SH_EMPLOYEES"."EMPNO"  as "EMPNO",
    "SH_EMPLOYEES"."EMP_FIRST" as "EMP_FIRST",
    "SH_EMPLOYEES"."EMP_LAST" as "EMP_LAST",
    "SH_EMPLOYEES"."USER_NAME" as "USER_NAME",
    "SH_EMPLOYEES"."USER_INI" as "USER_INI",
    "SH_EMPLOYEES"."DEPTNO" as "DEPTNO",
    "SH_EMPLOYEES"."DEPT_DESC" as "DEPT_DESC",
    "DOC_ROLES"."ROLES_ID" as "ROLES_ID",
    "DOC_ROLES"."ADMIN" as "ADMIN",
    "DOC_ROLES"."CREATES" as "CREATES",
    "DOC_ROLES"."APPROVES" as "APPROVES",
    "DOC_ROLES"."QUALITY" as "QUALITY",
    "DOC_ROLES"."CUST_SVC" as "CUST_SVC",
    "DOC_ROLES"."SH_LOCAL" as "SH_LOCAL",
    "DOC_ROLES"."SH_OFFICE" as "SH_OFFICE",
    "DOC_ROLES"."SYSTEM" as "SYSTEM"
    FROM "SH_EMPLOYEES" "SH_EMPLOYEES", "DOC_ROLES" "DOC_ROLES"
    where "SH_EMPLOYEES"."EMP_ID" = "DOC_ROLES"."EMP_ID"
    /
    
    

    Here's my trigger (note - I do not use the EXCEPTION clause or (declaration of it) because it throws an error msg = >: 'This is my message'.) Here, any help would be great as well.)

    CREATE OR REPLACE TRIGGER bi_ADD_EMPLOYEES_VW
    INSTEAD OF insert ON SH_ADD_EMPLOYEES_vw
    for each row
    declare
    duplicate_info EXCEPTION;
    PRAGMA EXCEPTION_INIT(duplicate_info, -00001);
    begin
    insert into SH_EMPLOYEES
    (EMP_ID, DEPT_ID, JOB_DESC_ID, EMPNO, EMP_FIRST, EMP_LAST, USER_NAME, USER_INI, DEPTNO, DEPT_DESC)
    values
    (:new.EMP_ID, :new.DEPT_ID, :new.JOB_DESC_ID, :new.EMPNO, :new.EMP_FIRST, :new.EMP_LAST, :new.USER_NAME, :new.USER_INI, :new.DEPTNO, :new.DEPT_DESC);
    insert into DOC_ROLES 
    (ROLES_ID, ADMIN, CREATES, APPROVES, QUALITY, CUST_SVC, SH_LOCAL, SH_OFFICE, SYSTEM)
    VALUES (
    :new.ROLES_ID, :new.ADMIN, :new.CREATES, :new.APPROVES, :new.QUALITY, :new.CUST_SVC, :new.SH_LOCAL, :new.SH_OFFICE, :new.SYSTEM);
    EXCEPTION
     WHEN duplicate_info THEN
      RAISE_APPLICATION_ERROR (
       num=> -20107
       msg=> 'Duplicate employee');
    END bi_ADD_EMPLOYEES_VW;
    /
    
    

    ERROR ON UPDATE:

    ORA-20505: DML error: p_rowid = 1001,.
    p_alt_rowid = EMP_ID, p_rowid2 = 2, p_alt_rowid2 = ROLES_ID. ORA-01779: cannot change
    a column that is mapped to a table not preserved key

    ERROR WHEN INSERTING:

    ORA-01400: cannot insert NULL in
    ("SPICE_HUNTER1". "" "" SH_EMPLOYEES '. "" EMP_ID") ORA-06512: at
    "SPICE_HUNTER1. BI_SH_ADD_EMPLOYEES_VW', line 3 ORA-04088: error during execution
    relaxing ' SPICE_HUNTER1. BI_SH_ADD_EMPLOYEES_VW' ORA-06512: at
    'SYS. WWV_DBMS_SQL', line 549 ORA-06512: at "APEX_040000.WWV_FLOW_DML", line 1121
    ORA-22816: feature not supported with RETURNING clause

    Error Impossible to process line on table SH_ADD_EMPLOYEES_VW

    I see you manage emp_id is null, you must assign a value if null sequence... This column cannot be null, where the error, and "Edit" a column of this table the DML to this id value.

  • Error "TypeError: components.classes['@ [cid] is undefined" when opening of Firefox - every time that it is open!

    Since the installation of Firefox 4, I get this error message "type: components.classes['@ [cid] is undefined" whenever Firefox is open and trying to access some Web sites. Very aggravating!

    This indicates that you are using an add-on that is not compatible with Firefox 4. To find out how to solve this to find out what is causing the problem, see https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Error 1606.Could access location %APPDATA%\ network When uninstalling and installing Java for vista

    I get "Error 1606.Could access location %APPDATA%\ network." "When I try unistalling Java (TM) 6 Update 5 and Java (TM) 6 Update 20 and when I try to download the latest version of java (25) Ive tried a lot to get rid of the problem, but nothing I tried seemed to help."

    Windows Vista 64-bit.

    Have you tried:

    1. http://support.Microsoft.com/kb/2258121
    2. http://support.Microsoft.com/kb/886549
    3. Create a new administrator account and try to install using this account.
  • Equium A60-157: error caused by device driver

    Hi all

    I try to write my thesis at the moment and am hampered by my laptop! It keeps randomly, which brings to the top of the blue screen of death, then by restarting; When everything is loaded to the top, I get a "serious error" message that says "error caused by the device driver. As far as I know, all the programs I have are compatible... I was advised to restore the factory settings, which I did a few months ago. And I got the BIOS update for my computer. But it is always the case!

    If it helps, the programs I use daily are Microsoft Word, Access, Powerpoint, Internet Explorer and MSN Messenger. I do not run any games high spec (only Minesweeper occasionally!)

    What can I do? Does anyone else have this problem? Any advice would be much appreciated, because these accidents do not help us to my work!

    Thank you...

    Hello

    It's not easy to tell which device is causing the error.
    What you can do is to check the device drivers. Visit the page of the Toshiba driver and check if there is a new version of driver for example graphic driver.

    Also sometimes this error message appears if the module of memory is faulty.

    What you can do is to use the Microsoft Online Crash Analysis.
    Maybe if you can identify this evil s.
    http://www.Microsoft.com/windowsxp/using/Setup/expert/northrup_03october06.mspx

    Good luck

  • Equium A60 - error caused by the RAM problem - Windows tool does not work!

    Hi all

    When closing my laptop, I got the blue "screen of death" and it restarts, windows came with this analysis of the accident: "error caused by the memory problem to live: run the Windows tool". I downloaded diagnostic tool (mstinst.exe), he opened so I got "windiag.iso" and he burned on a CD like they told me (the use of 'Record Now') and then I put in the CD drive and rebooted my computer. But it did not launch the tool! Does anyone know why it went wrong and how can I make it work? Even if I got the tool to work, I would be able to solve the problems of RAM anyway, just taking my laptop to a repair center?

    Thanks :)

    Hello

    I put t know if you have seen this page http://oca.microsoft.com/en/windiag.asp but there you can find a detailed explanation of how to use the Windows Memory Diagnostic tool.

    Good luck!

  • Error caused by the remote control?

    Hello

    I just got a great help here, and everything worked.  However, now when I run the code, I get error caused by the remote command on my counter (Agilent 34461).  However, when I run in debug mode by clicking on the light bulb, this error occurs.

    The change I made was that I initialized the measure outside the while loop so that I didn't have any initiialize it for each iteration, and I added a reading?

    Any ideas why this would cause this error?

    After reading the Manual , I found that you really want to use "configures: currentC ' for your installation command.  Apparently, the measurement system causes playback to occur.

  • Rounding error causes a strange behaviour in comparisons

    Hi all

    I found a rounding error in my code yesterday, that apparently causes something impossible to happen. A comparison of one number in a superior has the value true, and the same comparison in a less than or equal to is also true. I've attached a zip with a VI test record and the values that produced the problem, in the README file. You only need to define Xa, Xb, newspaper, DEXfp, weight and DEXcon 5 min b/t Xa and Xb. None of the other controls on VariableCluster of importance, you will see when you open rule015 and rule016.

    Well, it is a rounding problem, but it is preventable.

    First of all, some backround. Comma floating itself has rounded up questions that are very well known and are an accepted matter. This is a resource for more information.

    Your problem occurs because you have your computing operations in the same order for each comparison. You have (Wt * 6 * DEXcon_inv) in rule015, but (DEXcon_inv * Wt * 6) in rule016. Correspond to these levels of calculation to the other and see what happens.

    Edit: For later use, you must use subVIs for calculations like that. This normalize the calculation in itself, so you don't meet for problems like this and it makes it also easier to make changes to your calculations in the future.

  • Error: Autochk cannot run because of an error caused by a recently installed software. An error occurred__766f6c756d652e63 3f1 unknown

    Original title: Windows 7 system files is the name of volume NTFS is the operating system. It cannot open volume for direct access. Autochk cannot run because of an error caused by a recently installed software. An error occurred__766f6c756d652e63 3f1 unknown

    I have recently updated from Vista home premium to Windows 7 Home premium and it worked fine, until recently, I'm getting the above message whenever I start my laptop. I can't do a system restore, and this error tells me to do a system restore. I downloaded the upgrade of the internet, so I don't have a copy or a disk to reinstall. Can someone help me solve this problem or do I have to uninstall all the recent software programs?

    Thank you

    Hi Lowey58

    I had exactly the same problem. It worked for me:

    1 uninstall antivirus (mine was AVG free v9)

    2. plan chkdsk on reboot

    3. restart

    4. now, CHKDSK runs and corrects problems of disc he

    5 re-install AVG

    Try it and if it works post a response so that others know that ot worked for you also.

  • Nvstor64 error causes the frequent computer crash.

    I had a problem with Nvstor64 since last week, it causes my computer down for about 1 min and right now I am unable to do anything even open Task Manager, also Firefox and Windows Explorer crash wih him "unresponsive" white wash effect it seems to have.

    It's the event viewer:

    - System
    - Provider of
    [ Nom ] nvstor64
    - Event ID 3
    [ Qualification ] 49374
    Level 2
    Task 0
    Keywords 0 x 80000000000000
    - TimeCreated
    [ SystemTime ] 2010-08-26 T 17: 57:42.709200000Z
    EventRecordID 142961
    Channel System
    Computer Home-PC
    Security
    - EventData
    \Device\RaidPort0
    ST31000528AS
    CC44
    9VP2ABEB
    1
    0000000005002800000000000300 DEC 0000000000000000000000000000000000000000000000000

    Binary data:

    In the words

    0000: 00000000 00280005 00000000 C0DE0003
    0008: 00000000 00000000 00000000 00000000
    0010: 00000000 00000000

    In bytes

    0000: 00 00 00 00 05 00 28 00... (.
    0008: 00 00 00 00 03 00 C0 OF... ÞÁ
    0010: 00 00 00 00 00 00 00 00...
    0018: 00 00 00 00 00 00 00 00...
    0020: 00 00 00 00 00 00 00 00...

    This would occur several times each second leading 6418 errors per day.

    After taking some advice on these forums, I turned off the queue in the Nvidia storage via Device Manager controller, this stopped the Event3 erros but opened Event9 errors;

    - System
    - Provider of
    [ Nom ] nvstor64
    - Event ID 9
    [ Qualification ] 49374
    Level 2
    Task 0
    Keywords 0 x 80000000000000
    - TimeCreated
    [ SystemTime ] 2010-08-28 T 22: 24:17.869800000Z
    EventRecordID 147675
    Channel System
    Computer Home-PC
    Security
    - EventData
    \Device\RaidPort0
    ST31000528AS
    CC44
    9VP2ABEB
    1
    0000000005002800000000000900 DEC 0000000000000000000000000000000000000000000000000

    Binary data:

    In the words

    0000: 00000000 00280005 00000000 C0DE0009
    0008: 00000000 00000000 00000000 00000000
    0010: 00000000 00000000

    In bytes

    0000: 00 00 00 00 05 00 28 00... (.
    0008: 00 00 00 00 09 00 C0 OF... ÞÁ
    0010: 00 00 00 00 00 00 00 00...
    0018: 00 00 00 00 00 00 00 00...
    0020: 00 00 00 00 00 00 00 00...

    These produce somewhat less often with about 47 errors an hour but these always down the computer to a fixed support and in some cases require a hard reboot.

    Usually happens when I play a game like COD:MW2 but don't happen in games such as Mass Effect 2. It also happens if I play Runescape or if I look to multitask (have a game and a web browser open).

    He only began to break over the last week, but is a gene.

    Update the nForce storage driver. "A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • 12 c DBCA: TNS-04414: error caused by file: TNS-04612: RHS Null for the error «...» »

    Oracle DBCA 12.1.0.3 error message: TNS-04414: error caused by file: TNS-04612: Null HHR for "EXTPROC_CONNECTION_DATA."

    -Solution: it takes at least a space between the beginning of the line "(DESCRIPTION ="

    EXTPROC_CONNECTION_DATA =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = CIP)(Key = EXTPROC1))

    )

    (CONNECT_DATA =

    (SID = PLSExtProc)

    (PRESENTATION = RO)

    )

    )

  • Clone host (error caused by the vmdk file)

    Hello

    We try to clone the server to a scsi with resources as:

    ex_photo.pngiscisi07.png


    During the operation of clone, a 'problem' error caused by the vmdk file is thrown and clone to work stoppages. Server uses thin provisioned (40 GB) and thick (250 GB) / place.

    My question is: in target store, is 579 GB free space and space end implemented is 503 GB. While cloning thick storage (250 GB), do we need at least 250 GB of capacity between space free and put into service? If this is not the case, how can I solve my problem of clone?

    Thank you for your attention...

    Yes, you need this amount of free space (at least 250 GB freespace) available between the space free and put into service.

    TM

Maybe you are looking for