Duplicate rows in AdvancedDataGrid when pushing updates via custom Assembler?

We are trying to use LCDS transactions to dynamically push updates from a server side application via custom Assembler to AdvancedDataGrid.  Latter is using fill result ArrayList as its data source.
Unfortunately we haven't been fully successful thus far. Grid shows fine initial snapsot delivered by fill but subsequent record updates result in a duplicate rows shown in a grid. 
We are using Flex 3, SDK 3.5 and LCDS ES 2.6.1.
Here is the relevant code in our custom assembler to do the update push:
_results.add(dataUpdate); // _results is the ArrayList object returned with data on the original fill
DataServiceTransaction dtx = DataServiceTransaction.begin("FOO", false);
dtx.addItemToFill(_assemblerId, _currentParams, _results.size()-1,dataUpdate);
dtx.commit();
// we see this method gets called as result of the code above
public Object getItem(Map identity) {
      Object item = null;
      String id = identity.get("ID").toString();
      for (LinkedHashMap<String,Object> itemMap : _results) {
      if (itemMap.get("ID").equals(id)) {
            item = itemMap;
       break;
      return item;
And finally here is the destination configuration for the assembler in the data-management-config.xml file:
<destination id="updates">
  <properties>    
         <source>UpdatesAssembler</source>
        <scope>session</scope>
  <auto-sync-enabled>false</auto-sync-enabled>
  <metadata>
                 <identity property="ID"/>
  </metadata>
  <network>
                 <paging enabled="false"/>
  </network>
</properties>
</destination>
And naturally, we bind the datagrid dataProvider to the array collection returned by the original fill call.
As stated above, this solution results in two rows of the same data appearing in datagrid for every updated pushed by the assembler.
Can you please advise what are we doing wrong.
Thanks!

What events are coming back to the client?
If you add an event listener to the dataService object in ActionScript, you can see what events are coming in.
    dataService.addEventListener(MessageEvent.RESULT, resultHandler);
This might help diagnose it.

Similar Messages

  • Bad performance when iterating/updating the rows of a tree table

    Hello,
    we have a tree table based on a VO and EO (with transient attributes). One of the attribute is a flag.
    The VO is populated with a complex query having many thousands of rows.
    Now, when the user clicks on a parent node, all the children are updated (their flag is set to true) recursively.
    This is really really slow. It might require several minutes, while a similar update via PL/SQL on a real table would required few seconds.
    Is there any way to improve the performance? We have already applied all the tunings on both the EO and VO mentioned in Oracle Documentation, but they had almost no effect:
    - retain viewlink row set iterators
    - query hints
    - Use update batching
    The algorithm we use is the following:
        private void checkTreeNodes(JUCtrlHierNodeBinding node, Boolean check) {
            if (node == null) {
                return;
           TreeVORowImpl nodeRow = (TreeVORowImpl)node.getRow();
            if (nodeRow != null) {
                    nodeRow.setFlag(check);
            List<JUCtrlHierNodeBinding> children = null;
            if (!nodeRow.getLevel().equals("4"))  // no more than 4 levels
                children = node.getChildren();
            if (children != null) {
                for (JUCtrlHierNodeBinding _node : children) {
                    checkTreeNodes(_node, check);
        }

    Thanks for you answer.
    I am trying to move the logic in a method of the AM. But I have an exception (jdev 11.1.2.1):
        public void checkTreeNodes(TreeVORowImpl node, Boolean check, int level) {
            if (node == null)
                return;
            node.setFlag(check);
            if (level >= 4)
                return;
            Key key = new Key(new String[] { node.getId() }); // Id is the primary Key
            // By debugging via System.out.println, the code stops here:
            RowIterator rowIt = getMyVO().findByAltKey("ParentId", key , -1, false); // children have ParentId = Id
            while (rowIt.hasNext()) {
                TreeVORowImpl row = (TreeVORowImpl)rowIt.next();
                checkTreeNodes(row, check, level + 1);
        }findByAltKey gives the following exception (since it's called from the UI by getting the AM from DataControl):
    oracle.jbo.InvalidObjNameException: JBO-25005: [...]
         at oracle.adf.model.binding.DCBindingContainerState.validateStateFromString(DCBindingContainerState.java:573)
         at oracle.adf.model.binding.DCBindingContainerState.validateStateFromString(DCBindingContainerState.java:504)
         at oracle.adf.model.binding.DCBindingContainerState.validateToken(DCBindingContainerState.java:684)
    Do you see anything wrong or not efficient?
    Thanks.

  • How to update one row in AdvancedDataGrid

    My App have a AdvancedDataGrid and it has so much rows. Some
    data rows for AdvancedDataGrid has changed and i don't want to
    update all rows ... But i don't know how to update one row for my
    AdvancedDataGrid
    Some body help me ...
    Thanks so muchs !

    thanks ntsii.
    my problem is:
    [Bindable]
    var dp:ArrayColection = new ArrayColection({...});
    <mx:AdvancedDataGrid dataProvider="{dp}">
    <mx:groupedColumns>
    </mx:groupedColumns>
    </mx:AdvancedDataGrid>
    //==================================
    in my dp have more rows and some time one of them is changed
    then i guess the AdvancedDataGrid must build all rows when
    it's dataProvider (dp) have changed.
    And i don't want to that...
    But i am not sure the AdvancedDataGrid buld all rows from
    begin to end ... i don't know.. !

  • Re: Update Duplicate Rows

    Oracle 11.2.0.2
    Windows 2008
    I have this table (case_file) with duplicate rows (case_number).
    I will like to make the case_number unique through out the table.
    For example, if I have two rows with the same case_number(225), I will like to change one of the numbers and record that case_number to the privious_case_number column.
    I am looking for a way to write up a script to automate the process.
    Any help will be appreciated.
    CREATE sequence case_id_seq
    start with 25;
    create table case_file
    ( case_id number not null, case_number varchar2(25), privious_case_number varchar(25), modified_by varchar2(50));
    INSERT into case_file (case_id, case_number, privious_case_number, modified_by)
    VALUES (case_id_seq.nextval, '220', '2002', 'DBA');
    INSERT into case_file (case_id, case_number, privious_case_number, modified_by)
    VALUES (case_id_seq.nextval, '225', null, 'DBA');
    INSERT into case_file (case_id, case_number, privious_case_number, modified_by)
    VALUES (case_id_seq.nextval, '224', null, 'PM');
    INSERT into case_file (case_id, case_number, privious_case_number, modified_by)
    VALUES (case_id_seq.nextval, '205', null, 'Supervisor');
    INSERT into case_file (case_id, case_number, privious_case_number, modified_by)
    VALUES (case_id_seq.nextval, '225', null, 'DBA');When I run the below query, I get this result, with 225 showing up twice:
    select * from case_file;
    26     225     2002     DBA
    27     220     2002     DBA
    28     225          DBA
    29     224          PM
    30     205          Supervisor
    31     225          DBAWhen I run the below script:
    SELECT case_number, COUNT(case_number) as Number_Of_Case_Number
    FROM case_file
    GROUP BY case_number
    HAVING COUNT(case_number) > 1I get this result
    CASE_NUMBER NUMBER_OF_CASE_NUMBER
    225 3
    SQL>Edited by: 868332 on Feb 6, 2012 1:23 PM

    Hi,
    Do you really need two unique numbers for each row?
    To make case_numebr unique, first, see what the highest existing case_number is, and create a new sequence that starts after that point:
    CREATE SEQUENCE     case_number_seq
    START WITH     250;Always use that sequence when assigning case_numbers in the future.
    To re-number the existing duplicates :
    UPDATE     case_file
    SET     case_number          = case_number_seq.NEXTVAL
    ,     previous_case_number     = case_number
    WHERE     case_id         IN (
                         WITH  got_r_num     AS
                          SELECT  case_id
                          ,       ROW_NUMBER () OVER ( PARTITION BY  case_number
                                                              ORDER BY         case_id
                                         )  AS r_num
                          FROM    case_file
                      SELECT  case_id
                      FROM        got_r_num
                      WHERE   r_num     > 1
    ;The sub-query got_r_num assigns numbers 1, 2, 3, ... to all rows, in order by case_id (lowest case_id gets r_num=1) with a separate set of numebrs for each case_number. When there are duplicates, one of the rows with that case_number will keep that case_number, and all the others will be new case_numebrs from case_numebr_seq.
    Edited by: Frank Kulash on Feb 6, 2012 4:37 PM
    Originally missed the part about previous_case_number. (Be careful how to spell "previous".)

  • We are having problems pushing push adobe reader install and updates via Microsoft deployment

    We are having problems pushing push adobe reader install and updates via Microsoft deployment. We issue is with our mail server. We cant open PDF within outlook.
    Cliff Butler
    Coastal Connection
    www.coastal-connection.com

    Hi ccbutler,
    What is the current version of Acrobat/Reader installed and what is the version of Outlook installed.
    Was it working before if yes do you have idea when did problem started.
    ~Ajlan Huda.

  • When i update to the latest version (7.0.3), there is a message appear to me when i open any application that contains notification such as (What'sApp or BBM),this message said (Connect to iTunes to use push Notification),How I can to stop these message?

    When i update to the latest version (7.0.3), there is a message appear to me when i open any application that contains notification such as (What'sApp or BBM) , this message said (Connect to iTunes to use push Notification) , How I can to stop these messages that appear to me constantly?

     Hi,
    One of my ex-colleagues has installed a NI-DAQ 6.5 in our system. [And I do not see any other naitional instruments card in the CPU of the computer, may be he removed it] I deleted the account and all his files in the system. When I am trying to install version8.0, its not getting installed and giving me a message that I should uninstall the previous version by going to Add/Remove programs in the control panel.
    I tried doing that, but the "Change/Remove" button does not seem to work...[There is no response and so unable to install the new version...]
    Any idea how can this problem be solved?
    It is a windowsXP operating system with SP2 installed on a machine with P4 processor.
    Thanks

  • I got my iphone4 updated via wifi and its shows downloaded and when i install it, it shows verifying software and then says error occured while installing ???

    hi, there, i got my iphone4 updated via wifi n its downloaded, its shows when i check the software update n when i install it, it shows verifying the software n after a couple of seconds comes back with "error while installing ios6" failed so many attempts and even tried to reset the phone, but no use, then i tried latest updated itunes too, can u believe it, it took ages to download n when it was 880mb of the 899mb file, error occured , so many failed attempts, can some one tell me what to do ? are there any issues with iphone4 updates? m scared to update it now, but really wanna get it on my phone.

    I have experienced a similar error with the iPhone 4S.  The new version of iTunes will not let me restore the phone, it must be updated and nothing appears to be happening.  Suffice it to say I am not amused.  Apple needs to work this out - I had trouble updating to 8.0.2 as well.

  • When I try and download app updates via wi-fi to my Ipad I get an error message "Your account is not valid for use in the Australian Store. You must switch to the US store before purchasing."  I am in the US how do I switch?

    When I try and download app updates via wi-fi to my Ipad I get an error message "Your account is not valid for use in the Australian store. Your must switch t the US store before purchasing. I am currently in the US on wi-fi. How do I switch

    Change App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3. Tap on your Apple ID
    4.Tap "View Apple ID"
    5. Enter your user name and password.
    6. Tap "Country/Region."
    7. Tap "Change Country/Region"
    8. Select the country/region where you are located.
    9. Tap "Done".
    Note: If the change doesn't take effect, sign out of account and sign in again.

  • How to update duplicate row from table

    Hi,
    how to update duplicate row from table?
    First to find duplicate row then update duplicate row with no to that duplicate row in oracle.
    can you give me suggestion on it?
    Thanks in advance.
    your early response is appreciated...

    In order to find a duplicate row, see:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1224636375004
    (or search this forum, your question has been asked before)
    In order to update it, just create and use an Oracle sequence, have it start and increment at a value that doesn't exist in your table.
    If that doesn't get you going, post some CREATE TABLE + INSERT INTO statements, and the results you want from them, in other words: a complete testcase.

  • When updating via iTunes from 7.0.2 to iOS 8 was error -1.

    When updating via iTunes from 7.0.2 to iOS 8 was error -1. It saids to me that i need to restore my iPad to factory settings. But i have too many images needed to me. I have no restores (but iTunes make one before updating). How i can to restore my photos?
    iPad mini, 16Gb
    A1432

    Check for hardware issues
    Related errors: 1, 3, 10, 11, 12, 13, 14, 16, 20, 21, 23, 26, 27, 28, 29, 34, 35, 36, 37, 40, 1000, 1002, 1004, 1011, 1012, 1014, 1667, or 1669.
    These errors mean that your device or computer may have a hardware issue that's preventing the update or restore from completing.
    Check that your security software and settings aren't preventing your device from communicating with the Apple update server.
    Then try to restore your iOS device two more times while connected with a cable, computer, and network you know are good.
    Confirm that your security software and settings are allowing communication between your device and update servers.
    If you still see the error message when you update or restore, contact Apple support.

  • HT201210 iphone 4s stopped in middle of update (via wireless).  apple logo and usb picture appeared on phone. When i plugged in to computer, indidcated I would have to restore. in the middle of restoring, i got a "unknown Error" (1) code and the apple id

    iphone 4s stopped in middle of update (via wireless).  apple logo and usb picture appeared on phone. When i plugged in to computer, indidcated I would have to restore. in the middle of restoring, i got a "unknown Error" (1) code and the apple id and usb picture are frozen on screen. Anyonw know what to do? 

    Hello Maxayla,
    It sounds like you are getting error code 1 when you were attempting a restore. I would use these troubleshooting steps from the following article which mentions that error code:
    Resolve specific iTunes update and restore errors
    http://support.apple.com/kb/ts3694#1
    Check for hardware issues
    Related errors: 1, 3, 10, 11, 12, 13, 14, 16, 20, 21, 23, 26, 27, 28, 29, 34, 35, 36, 37, 40, 1000, 1002, 1004, 1011, 1012, 1014, 1667, or 1669.
    Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the error message when you update or restore, contact Apple support.
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Anyone else getting a timed out error message when trying to check for updates via the app store software on a desktop?

    anyone else getting a timed out error message when trying to check for updates via the app store software on a desktop?

    Hi, couple of things to try...
    Anonymous
    Post subject: NSURLErrorDomain error -1100 in OS X 10.8
    If you check for software updates using the App Store in OS X 10.8 and get "NSURLErrorDomain error -1100" the problem may be with your Software Update preferences. This is particularly likely if you were using a custom Apple Software Update server. To solve the problem, quit the App Store, move the following two files (if present) to the trash, restart, and only then rerun App Store updates:
    /Library/Preferences/com.apple.SoftwareUpdate.plist
    /Library/Preferences/com.apple.SoftwareUpdate.plist.lockfile
    http://x704.net/bbs/viewtopic.php?f=12&t=6130
    I was recently trying to upgrade to mountain lion through the app store.  I have unreliable Internet from a cable company whom I will not name, but we all know who they are.  My Internet dropped while downloading the upgrade.  Once I went through the notorious unplug the modem/router and plugged it back in to gain Internet connectivity again, I could not resume. No matter what I did, the app store kept displaying "an error occurred." I am hoping that those with the same issue read this first to save them hours of skimming through the Internet to find a solution.  Here are the steps to take:
    1. Make sure you have reestablished Internet connection
    2. Chances are you got frustrated when you tried to resume/unpause the download and clicked the "X" to the left.  If so, select the "Store" drop-down menu from the App Store and select "View My Account." There should be an option to unhide your purchase.  You know what to do.
    3. There is also an option to  reset all warnings for buying and downloading under "View My Account." Do this, click "Done," sign out of the App Store and quit the App Store.
    4. Open the Preferences in safari and select Privacy.  Select "Remove All Website Data."  Just do it.
    5. Launch the app store and sign in.
    6. Now, if you "Check for Unfinished Downloads" everything works peachy.
    I hope this helps.  Not much I can do for your Internet connection though.
    JonEz15...
    https://discussions.apple.com/thread/4697970?tstart=120

  • TS1042 what happened to "front row" when I updated to OS X Lion?

    what happened to "front row" when I updated to OS X Lion?

    Lion doesnt have it anymore.  When Mountain Lion comes out on July 25, it will have front row again!

  • My iPad is still running iOS 5.1.1 which is old.  When I check for update it says up to date.  Have tried to update via Pad and iTunes to no avail.  How do I get updated iOS?

    I have fist gen iPad.  Still running iOS 5.1.1   When I attempt to update via usual mens I get response that it's up to date which is untrue.  I've tried to update via the Pad itself and via iTunes with the same response on both.  How do I get the updated iOS?

    Just because you don't have the latest software means your ipad is unusable. Many times you can still download older versions of the apps. Check Texas Mac Man's answer from yesterday for some possible solutions,
    Is there a version of Pages I can download for ios5.1.1?

  • TS3694 When I try to update my ipad to IOS6 I get and error 6 message.  Any idea what that means and how to fix it?  I tried updating via Itunes and also normal download.

    When I try to update my ipad to IOS6 I get and error 6 message.  Any idea what that means and how to fix it?  I tried updating via Itunes and also normal download.

    What model iPad and what version of iOS is it currently running?
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    Update and restore alert messages on iPhone, iPad, and iPod touch
    http://www.buybuyla.com/tech/view/012953a0d412000e.shtml
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
     Cheers, Tom
    Error 2, 4 (or -4), 6, 1000, 9006            
    Follow Troubleshooting security software. Often, uninstalling third-party security software will resolve these errors.
    There may be third-party software that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your registry. Your default packet size being set incorrectly can cause these errors. Contact the manufacturer of the software that installed the packet size modification for assistance or follow this article by Microsoft: How to reset Internet Protocol (TCP/IP).
    Verify that access to ports 80 and 443 are allowed on your network.
    Verify that communication to albert.apple.com or photos.apple.com is not blocked by a firewall, or other Internet security setting.
    Discard the .ipsw file, open iTunes and attempt to download the update again. See the steps under Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations.
    Restore your device while connected to a different network.
    Restore using a different computer.
    Message was edited by: Texas Mac Man

Maybe you are looking for

  • App Store wont open

    Hello, Since the first of the year my phone has been unable to open the app store. When I click on the icon it just sits at loading and the icon spins. I've let it sit there overnight and it doesn't move. Here are some things I've tried: -Restarted p

  • Unable to Harvest a SOA composite from SOA suite server to OER11g

    Hi All, I wanted to harvest a SOA composite from SOA suite server to OER11g.For that i had followed this portion *5.2.6.1 Harvesting from Oracle SOA Suite Server* from Oracle® Fusion Middleware Configuration Guide for Oracle Enterprise Repository11g

  • Financial Reports - Rows

    Hi In a report there are 2 DIM's in Rows ....In 1st DIM i want Level 2 members in Col1 & Level 0 members in Col2 & 2nd DIM level2 members in Col3.. How can i get it. COL1 COL2 COL3 DIM1_Level2 DIM1_level0 DIM2_Level2 How can i get it Thanks

  • Search for the last delimiter in a string

    Hi all, My requirement is whenever my length of the string reach 50 characters, the program will search for the last comma delimiter and break line into 2 lines. The string format is like this: - Input: - 1234567890123456789012345678901234567890,1234

  • Freezing crashing spinning and lagging!! ^$%@

    Ive been pretty happy with FCPX so far, but the last week or so its beginning to freeze, lag after 20 minutes of working just fine.  Then I have to restart and t works fine for another 15-20 minutes before it lags, freezes and sometimes crashes.  Fre