Tabular form - Client side Clone Row on apex 4.1 not work

Hi all,
j have a tabular form page where i have implemented Vika's clone row solution.
(See http://htmldb.oracle.com/pls/otn/f?p=24317:49)
Now, after migrating my application from Apex 3.2 to Apex 4.1 this feature not work.
Clicking the Copy icon copies the row and puts it right below.
Now, if I change some values in the new row and click Save, the MRU process updates does not insert the row in the database
Apex 4.1
rdbms 11.2.0.4
win xp
chrome browser
Any help?
Thanks in advance.
lukx
The "clone row" function is
</script>
     <style type="text/css">
     img.clone {
     cursor:pointer;
     </style>
     <script type="text/javascript">
     var g_this;
     function fn_delete(pThis)
     var l_tr=$x_UpTill(pThis,'TR');
     l_tr.parentNode.removeChild(l_tr);
     function fn_CloneRow(pThis){
          g_this=pThis;
          l_tr=$x_UpTill(pThis,'TR');
          l_table=$x_UpTill(l_tr,'TABLE');
          l_tbody=$x_UpTill(l_tr,'TBODY');
          l_clone=l_tr.cloneNode(true);
          html_RowHighlight(l_clone,"pink");
          l_inputs=l_clone.getElementsByTagName('input');
          for (var j=0;j<l_inputs.length;j++) {
          l_this=l_inputs[j];
          if (l_this.type=="hidden") l_this.value="";
          if (l_this.name=="fcs") l_this.value="zzzz";
          if (l_this.type=="checkbox") l_this.parentNode.removeChild(l_this);
          // Change Clone functionality to Delete
          var l_img=l_clone.getElementsByTagName('img')[0];
          l_img.src="/i/delete.gif";
          if (document.all) l_img.onclick=function(){fn_delete(this)};
          else l_img.setAttribute("onclick","fn_delete(this)");
          l_tbody.insertBefore(l_clone,l_tr.nextSibling?l_tr.nextSibling:l_tr);
     </script>

I have't looked at the specific clone-row sample code you mentioned in your post, but just wanted to point out that we've introduced client-side add-row functionality in APEX 4.0, so if you're using this code to add new rows on the client-side, then using the built-in functionality might be easier. Of course if you actually want to get a copy of an existing row, that might not be sufficient. As for the MRU process, the way APEX identifies new rows is by looking at the primary key or ROWID column value, which needs to be NULL. APEX also looks at the apex_application.g_fcud array, which holds information for each row on whether to do an create, update or delete. This array was introduced in APEX 4.0, and that's what could potentially be causing your example to fail after the upgrade.
Regards,
Marc

Similar Messages

  • Clone Rows - Tabular form - Client side add rows

    Hello all,
    I feel in love with this particular Tabular form, http://htmldb.oracle.com/pls/otn/f?p=24317:49 because of the Capabilities it has to create a "clone row".
    a very advance feature I like a lot.
    The trouble is when I go under >Report> and select which columns I would like to view, some will be hidden with default values.
    the default values I would like to keep hidden are: a Time Stamp, and :APP_USER.
    So when the user decides to clone a row the first original row will stay intact with all the information including the hidden values, but as for the cloned rows the hidden values are missing.
    Is there something missing in the javascript that permits this from happening?
    Please Help.
    <script type="text/javascript">
    var g_this;
    function fn_delete(pThis)
    var l_tr=$x_UpTill(pThis,'TR');
    l_tr.parentNode.removeChild(l_tr);
    function fn_CloneRow(pThis){
    g_this=pThis;
    l_tr=$x_UpTill(pThis,'TR');
    l_table=$x_UpTill(l_tr,'TABLE');
    l_tbody=$x_UpTill(l_tr,'TBODY');
    l_clone=l_tr.cloneNode(true);
    html_RowHighlight(l_clone,"D0D0E0");
    l_inputs=l_clone.getElementsByTagName('input');
    for (var j=0;j<l_inputs.length;j++) {
    l_this=l_inputs[j];
    if (l_this.type=="hidden") l_this.value="";
    if (l_this.name=="fcs") l_this.value="zzzz";
    if (l_this.type=="checkbox") l_this.parentNode.removeChild(l_this);
    // Change Clone functionality to Delete
    var l_img=l_clone.getElementsByTagName('img')[0];
    l_img.src="/i/delete.gif";
    if (document.all) l_img.onclick=function(){fn_delete(this)};
    else l_img.setAttribute("onclick","fn_delete(this)");
    l_tbody.insertBefore(l_clone,l_tr.nextSibling?l_tr.nextSibling:l_tr);
    </script>

    I have't looked at the specific clone-row sample code you mentioned in your post, but just wanted to point out that we've introduced client-side add-row functionality in APEX 4.0, so if you're using this code to add new rows on the client-side, then using the built-in functionality might be easier. Of course if you actually want to get a copy of an existing row, that might not be sufficient. As for the MRU process, the way APEX identifies new rows is by looking at the primary key or ROWID column value, which needs to be NULL. APEX also looks at the apex_application.g_fcud array, which holds information for each row on whether to do an create, update or delete. This array was introduced in APEX 4.0, and that's what could potentially be causing your example to fail after the upgrade.
    Regards,
    Marc

  • Forms client-side pl/sql procdures run in DB or Forms server?

    Hi,
    Does anyone know where Forms client-side pl/sql procdures and pll actually run?
    We plan to convert forms application to web-based application. We want to take out and re-use only business logic in forms procdure/pll and still want to keep them in pl/sql language.
    Our first option is to put the business logic as pl/sql stored procedures in DB server. But my clients worry about the DB server performance. My clients think that forms procedures run in forms server and moving them into DB server will result in additinal workload in DB server.
    Every body says that the best place to execute pl/sql is
    in the database. However if Forms client-side pl/sql procdures run in Forms server, is my client right?
    If so, does anybody know how to make pl/sql procedure in a client-side PL/SQL package and call it from other language (Java or else)?
    Hyunsu Kim

    Forms PL/SQL will run in the Forms Server - if y want to share business logic accross multiple applications you could put it onto the database as you mention. You won't know if performace will be good or bad until you do some tests but its a pretty common scenario - and remember - what you MAY lose in terms of slower processing because of load, you will gain by eliminating network transfers between the Forms server and the database.
    Regards
    Grant Ronald
    Forms Product Management

  • My mail forms created by muse 2014.0.1.30 do not work. PHP 5.4 is enabled by hoster, so they should work. Can anyone help me, for these forms are crucial for my business.

    My mail forms created by muse 2014.0.1.30 do not work. PHP 5.4 is enabled by my hoster, so they should work. Can anyone help me, for these forms are crucial for my business. The forms confirm delivery, but the mails are not recieved. No spam filters enabled.
    Meanwhile, I was able to narrow the problem down: PHP seems not to accept a re-directed mail address as sender of the mail in some cases. So, it has nothing to do with the mail form itself.

    Hi Ingo,
    Please refer to this document, Troubleshooting Muse Form Widgets Used on Third-Party Servers
    Last section, "I've uploaded my new Muse form, and tried submitting it in the browser, but I never receive an email with the form data. What's wrong?"
    - Abhishek Maurya

  • "Include Header Row in Subsequent Pages" is not working for table

    Hi,
    I'm using version 8.1.2.3337.1.509884.
    The pagnation feature "Include Header Row in Subsequent Pages" is not working for any table in my design. ( the check-box can not be checked no matter how many times I clicking it)
    I put such table already in a flow bodypage.
    Any similar issue reported?
    Any suggestions?
    Thanks.
    -Vicky

    Hi Raghu,
    Appologies that I uploaded a wrong version of xdp file yesterday.
    Here is the correct one.
    https://acrobat.com/#d=jr0XffvBZWXd0cVhL0OQ3A
    I totally understand that I have to check the checkbox "Include Header Row in Subsequent Pages".
    My problem is that, although I can see that checkbox, and it's not grey-out, I can not tick it. See below screenshot, with the red-cycle mark.
    You can try with above file.
    Just wondering why such weird behavior happened.
    -Vicky

  • Bottom row of the keyboard is not working in a vertical orientation on the iPhone 3Gs. the "slide to unlock" and all keys on the calculator on both orientation works fine. I can use the keyboard on horizontal orientation.

    Bottom row of the keyboard is not working in a vertical orientation on the iPhone 3Gs. the "slide to unlock" and all keys on the calculator on both orientation works fine. I can use the keyboard on horizontal orientation. The tabs on bottom of all apps also work fine.
    I have already tried holding down the power button and home button for 10 seconds, but no difference.

    I've had this problem on and off for the last few weeks (around, but not directly related, to upgrade to 6.1...can't remember if was before or after)....I'm very convinced it's a software problem (as there have been times when the bottom row works perfectly, without any need to "press" differently or anything).
    However, it seems to be a rather resilient software issue, as a full restore does not consistently fix it, and it applies to more than just the keyboard; if I open a drawing app, there's definitely a row (about 4mm up from the edge of the screen closest to home button) where I cannot draw.
    It's happened 4 times now.  Originally it went away with a restore from backup, then worked for 2 more days.  The second and third times, it went away with a full restore (although I did two full restores in between those two restores that did nothing, so restore didn't consistently fix it)....and it seemed to return in the most random of circumstances. 
    I paid very close attention to what apps I was using the last time it was working so that I could spot which app, if any, might be causing the issue.  I deleted several apps, I stopped using the games and many other apps.   I only used three apps between it working fine and starting up as a problem again: mail, safari and messages.
    I was convinced it was mail, as it happened this morning when I picked up my phone off the bedside table to respond to a new email.  It was working when I went to bed.  I picked up the phone when it buzzed, hit the email app, hit reply and started to type....**** bottom row wasn't working again.
    However, tonight I did 2 things....one of them worked because it went back to normal (sorry, I don't know which as I was exasperated and trying a number of things). 
    The two things I did between a broken keyboard and a working keyboard were:
    1) adding a second keyboard (English(Canada)), changing to this keyboard, and changing back
    2) disabling Siri...and then turning it back on...and then disabling Siri's "Raise to Speak"
    In retrospect, I wonder if it actually was the "Raise to Speak" that was putting the phone into a weird state, and might explain why the phone would just "suddenly" start behaving strangely when I picked it up.  Of note, the "raise to speak" hasn't actually triggered Siri to come on in months anyway.
    Regardless, the keyboard is back to normal now...and I'm just going to leave "Raise to Speak" off.  I've put the keyboard back to just "English" with no alternates and Siri remains on otherwise without issue.

  • Tabular Form to insert multiple rows at once

    Reading the forum I see I should use a tabular form to create an insert page to create multiple records at once. However is there a way to do this without loading records from the table so it will just be a plain create page?
    Any help is appreciated, thank you

    Hi Marc,
    That tutorial was pretty useful. And I have it somewhat working.
    Right now I have it auto displaying blank rows by default which is good and my collection is being created and everything. However, where I am having the problem now is updating the collection with the values from each field.
    Here is my script I am using:
    declare
    c pls_integer := 0;
    begin
    for c1 in (
    select seq_id from apex_collections
    where collection_name = 'INSERT_BLANK'
    order by seq_id)
    loop
    c := c+1;
    if apex_collection.collection_exists(p_collection_name => 'INSERT_BLANK') then
    for i in 1..apex_application.g_f01.count
    loop
    APEX_COLLECTION.UPDATE_MEMBER(
    p_collection_name => 'INSERT_BLANK',
    p_seq => c1.seq_id,
    p_c001 => nvl(apex_application.g_f01(c),''),
    p_c002 => nvl(apex_application.g_f02(c),''),
    p_c003 => nvl(apex_application.g_f03(c),''),
    p_c004 => nvl(apex_application.g_f04(c),''),
    p_c005 => nvl(apex_application.g_f05(c),''),
    p_c006 => nvl(apex_application.g_f06(c),''),
    p_c007 => nvl(apex_application.g_f07(c),''));
    end loop;
    end if;
    end loop;
    end
    I made a process On Submit Before Computation with this and another one that inserts the data in to the table:
    for i in 1..apex_application.g_f01.count
    loop
    if apex_application.g_f02(i) is not null then
    insert into pinfo_t
    (id,
    name,
    start_date,
    end_date,
    value,
    database_id,
    host_id)
    values
    (apex_application.g_f02(i),
    apex_application.g_f03(i),
    apex_application.g_f04(i),
    apex_application.g_f06(i),
    apex_application.g_f07(i),
    apex_application.g_f08(i),
    apex_application.g_f09(i));
    end if;
    end loop;
    It keeps coming back with "ORA-01403: no data found "
    Any ideas?

  • Oracle apex popup using java script in tabular form select list(Am new to apex help me out... )

    Hi ...
      i have a tabular form
      have two columns in that form, kept as a select list by selecting that 1st select list data the related datas has to be popup after selecting that it has to be displayed in the  2nd column by using
    java script
    eg:
    1st column empno-----by selecting the empno the related empname has to be popup
                     dept no....by selecting the deptno the related deptname has to be popup 
    thanks in advance,
    kishore

    This is a very common question, see
    https://forums.oracle.com/thread/2359498

  • Client Side Validations in Visual Composer possible Or Not?

    Hi All,
    I Want To Know Client Side Validations Possible in Visual Composer.
    Because I Write Validate Code For input Field.They Give Only Red Color Message To inputField WhatEver I Gave In Condition Error Message.They Do N't Validate the InputFileds.But They give Suggession Only.
    Please Respond ASAP.
    SubbaRao Chinta

    Hi SubbaRao,
    Although the WebDyn Pro runtime of VC does not perform "true" client side validations, the conditions that a modeler enters on a given control can prevent unnecessary requests to the back end. In order to add such a rule to a control you need to:
    1. Choose Configure on the context menu of the control you want to validate
    2. Select Rules in the Validation group of the task panel. This will open the Define Validation Rules dialog box.
    3. Click the Add Row button, and then open the Condition drop down list, and add the condition you want (to prevent).
    4. In the Error Message column, enter the text you want to display when this condition occurs.
    If you have an action defined in the same view, it will not be carried out if the condition is true.
    If your action is defined in a different view, you need to change the action's validation scope - go into the Define Action dialog and the validation tag, and change the validation scope to "window"
    If none of this helps, try to describe what you have done and I'll see if I can help.
    Good luck,
    Eyal

  • Oracle APEX page is not working from cloned APPS

    Dear Gurus
    The APEX page is working fine in our PROD APPS, but having done the successfull cloning of APPS, now if we try to access the APEX page , it is not coming up, is there any config change we need to make???
    following is the APEX which is working fine...
    http://appsprod.test.com:7778/pls/apex
    and following in cloned APPS is not working at all....
    http://clonedapps.test.com:7778/pls/apex
    please help to resolve this issue..........
    thanks

    Hi
    What is being recorded in your Apache log files (I'm using you're using Apache due to the port number you have)?
    Remember, the more information you can give us the better armed we are to help you.
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • A whole row of the keyboard is not working!

    Hi I bought a 27" iMac in january... and this week the keyboard has been acting strange!
    the row of (z x c v b n m , .) plus right shift and left arrow are not working!!!
    I found an old thread of this exact same thing, but it's archived and it was never resolved!
    http://https://discussions.apple.com/message/12579523?messageID=12579523
    Does anyone have a clue on what's going on???
    thanks in advanced
    ps: it took foverer writing this with an on screen keyboard!!!

    Well, just bought a Microsoft keyboard...  And I'm gonna take the apple one to service, it's still under warranty... But it's to bad that the quality on the apple wireless keyboard is so bad, that i doesn't even last half a year!

  • Clone Stamp Tool and Healing Brush not working - why?

    As pointed out in the thread subject line, both the clone stamp tool and healing brush are not working for me in Photo Elements 7.
    When I am attempting to use it, I get the message: "Could not use clone stamp tool because the area to clone has not been defined".   Well, this is not the case since I did define it with command Alt + left mouse click.
    Background:
    Photo Elements 7 is installed in Windows XP Professional SP3. The latter runs as a virtual O/S with Sun VirtualBox on host SuSE Linux 11.1 (Gnome).
    I have run out of ideas as to what the problem could be, so I am requesting assistance from the forum community. Thank you very kindly in advance for replies.

    Do you mean photoshop elements 7 and not premiere elements?
    The fix posted above only applies to linux os systems, which is
    different from mac and windows.
    On windows vista Alt+left click is to set the clone source.
    Try the following steps one at a time.
    1. reset the clone stamp tool by clicking triangle on the far left of the
       tool options bar and select reset tool.
    2. Go to Edit>Preset Manager and click Done in the dialog that appears.
    3. Reset the elements 7 preferences by holding down the Shift+Alt+Ctrl keys
        at the same time you start elements 7. In the dialog that appears, click yes.
    Hope this helps.
    MTSTUNER

  • Clone Stamp Tool in CS6 Will Not Work on Tiff Files

    All of a sudden the Clone Stamp Tool does not work when working on a tif file. Yes I get the Circle with + sign when I press the ALT Key but tool will not clone.

    Hi Trevor!
    I found out that it affects all file extensions.  Files were created after adjustments in Bridge. Layer is not locked. Opacity is at 46. Now as I reviewed your answer, I was looking at a FAQ about the same thing. Truthfully I did not know that you could reset tools.
    I found out how to reset the CSTool and voila!!! Now works fine.
    Thanks for the advice...
    Dan

  • Selecting a one row from the database is not working

    Hi all I am having a small problem with getting a row from my database to show up. Here is the code for the search that I want to do
                            String item; String columnName; String result; columnName = (String)searchBox.getSelectedItem(); item = searchField.getText().trim(); String tableName = "employee"; if(item == null || item.equals("")){ System.out.println("No Text entered"); }else{ try { result = sql.retrieve_From_Database(columnName, tableName, item); System.out.println(result); } catch (SQLException e1) { sql.displayErrors(e1); }
    Here is the code for the retrieve_From_Database function.
    protected String retrieve_From_Database(String columnName, String tableName, String item) throws SQLException{ ResultSet rs = null; Statement sm = null; sm = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY); rs = sm.executeQuery("select * from " + tableName + " where " + columnName + " = " + item); result = rs.getString(columnName); if(result == null){ System.out.println("Error in retrieve"); return new String("No results in DB"); }else{ System.out.println(result); return result; } }
    When I run the first code I get an error of SQL Exception: Unknown column 'anthony' in 'where clause'. But yet when I run the query of
    Select * from employee where FirstName = 'anthony'
    within the mysql commandline I get the proper result. So my question is why when running this in the command line do I get the proper result but when running the code I do not?

    jo**** wrote:
    Hi. The problem is clear in the original post. The OP is trying to use PreparedStatement
    parameters to fill out general portions of the SQL query, instead of only data values.
    He is hoping to put in a column name. That will never work. Only data values are settable.
    HTH,
    Joe WeinsteinActually, no. There's no PreparedStatement there at all. It appears that his problem is that, while the working query entered directly in the client is
    Select * from employee where FirstName = 'anthony'the query he's constructing in his code is
    Select * from employee where FirstName = anthonySince there are no quotes around anthony, it's treated as a column name.
    If he had properly used PreparedStatment as suggested in reply 1, that would not be an issue. My guess, however, is that when he claims he's using PS, it's as Tolls suggested a couple of posts ago--he's simply replacing the Statement with a PreparedStatement, but not using the parameters as suggested.
    The wrong thing for OP to do at this point is see my above comment about the quotes and explicitly add them in the query string. The right thing to do, of course, is to actually use PS's parameters.
    Edited by: jverd on Oct 11, 2010 10:08 AM

  • Apex With SSO not working

    When running htmldb 2.0.00.29 with SSO , we receive
    ORA-06550: line 2, column 1: PLS-00201: identifier 'WWSEC_SSO_ENABLER_PRIVATE.GENERATE_REDIRECT'
    must be declared ORA-06550: line 1, column 45: PL/SQL: Statement ignored
    Error Unable to run portal_sso_redirect procedure as schema: PL_USER with partner app name: people finder:mercator.hq.ccw.gov.uk:7779.
    During debugging the issue we found out that the ssosdk could not be installed into FLOWS_020000 correctly
    ( error like:
    @loadsdk.sql
    create table wwsec_enabler_config_info$ OF sec_enabler_config_type
    ORA-00955: name is already used by an existing object
    CREATE sequence wwsec_log_pk_seq increment BY 1
    ORA-00955: name is already used by an existing object
    and as followup error in regapp.sql
    ERROR: Error in registration. Please try again
    ORA-06508: PL/SQL: could not find program unit being called
    Now we created in a separate schema the ssosdk and run next steps of
    Note:353023.1 CONFIGURING AN APEX (HTMLDB) APPLICATION TO USE SSO:
    But bow same error like on starting up the issue.
    Question:
    Is it possible to install ssosdk in a separate schema and not into FLOWS_02xxx
    If yes, what are the steps differennt to the Note:353023.1
    thanks

    Hi Scot,
    Thank you for your response.
    This is what I did for the migration by following the thread in
    How can I recovery APEX application from a full database export?
    - Create new empty database with APEX installed.
    - Disable foreign key constraints in the FLOWS_030100 Schema
    - Truncate all tables in the FLOWS_030100 Schema
    - Perform user level imports of tables only with IGNORE = Y for FLOWS_030100 Schema
    - Enable the constraints.
    (everything seems intact including SSO SDK objects)
    To register with SSO, this is what I did;
    1. Load SSO SDK in FLOWS_030100 Schema anyway
    2. Register APEX as Partner in SSO
    ID: 1B914F48
    Token: F76K433U1B914F48
    Encryption Key: F76K433U1B914F48
    Login URL: http://<hotsname>:7777/pls/orasso/orasso.wwsso_app_admin.ls_login
    Single Sign-Off URL: http://<hotsname>:7777/pls/orasso/orasso.wwsso_app_admin.ls_logout
    Login URL : http://<hotsname>:7778/pls/apex
    Success URL : http://<hotsname>:778/pls/apex/wwv_flow_custom_auth_sso.process_success
    Logout URL : http://<hotsname>:7778/pls/apex
    3. Run regapp.sql as FLOWS_030100
    SQL> @regapp.sql
    Partner Application Configuration
    4.
    Enter value for listener_token: HTML_DB:<hostname>:7778
    Enter value for site_id: 1B914F48
    Enter value for site_token: F76K433U1B914F48
    Enter value for login_url: http://<hostname>:7777/pls/orasso/orasso.wwsso_app_admin.ls_login
    Enter value for encryption_key: C5EB92724C7C98B8
    Enter value for IP check : N
    4. Ensure wwv_flow_custom_auth_sso compile successfully and grant it to Public
    When I tested it, I did get the page of SSO login. But after logging in, it will just go to Page not found. Initially, I thought there's someting wrong with
    wwv_flow_custom_auth_sso.process_success but it did compile successfully and I have granted it to Public.
    Yong

Maybe you are looking for

  • Connect mi iMac to Tv Sony

    hello! I hope someone can help me, buy a mini display port adapter Griffin because I use my Sony Bravia as a monitor but not recognized, I have an iMac with software i5 2.5 Ghz Mac OS X version 10.7.4 Thanks for your help.

  • Transferring From Itunes to Windows 7 (64 bit)

    I have successfully sent my AIF file from my IPad (Garageband) to ITunes.    2. I have successfully downloaded the ITunes program to my PC.    3. I have successfully Synced my PC to ITunes. I cannot find my song When I open the ITunes App on my compu

  • Shift data to emty fields...

    HI experts I have one reqirement in which i need to shift fields with data to without data.. E.g If internal table 2nd field is empty and 3rd field is having data then it should shift data to 2nd field...

  • XML Parsing in Weblogic

    Hi all, Am releatively new to weblogic and am migrating my web app from the tomcat container to weblogic 9.2 I use a XerxesImpl jar to parse my XML using a DOMParser and I dont want to use any libraries provided by weblogic atleast now!! It always gi

  • Waterfox cookies not being saved

    Hi, Just the last couple of days now I have found when opening a session of Waterfox, that my cookies been cleared. I have checked the cookies.sqlite file, and on occasions when this has happened the file has gone from 1024 KB, to 512KB. The cookies.