Alpha Video Training
Results 1 to 9 of 9

Thread: List with detail view switching records after save and sync (after update to build 4254)

  1. #1
    Member
    Real Name
    Jmo
    Join Date
    May 2013
    Posts
    367

    Default List with detail view switching records after save and sync (after update to build 4254)

    Has anyone else noticed that lists with detail views seem to be acting weird after you save data to the list and it syncs, specifically rather than the record you are currently on staying selected a different record gets selected after the sync. I think it may only be occurring on lists that have client side group breaks setup but I could be wrong (just haven't been able to get it to occur on a list without group breaks yet). Don't want to turn in a bug until I know others are seeing the same thing and it's not just a setting that is messing things up.

  2. #2
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,764

    Default Re: List with detail view switching records after save and sync (after update to build 4254)

    Agreed... I see the same... when "Has Client-side group breaks" is checked. The selected row is several rows down from the synced row after a sync. Confirmed in the most recent pre-release as well. Also confirmed this does not occur when the Client-side groups breaks is off.

  3. #3
    Member
    Real Name
    Jmo
    Join Date
    May 2013
    Posts
    367

    Default Re: List with detail view switching records after save and sync (after update to build 4254)

    Finally for once I'm not crazy! As always thanks for the quick response! Hopefully they'll put out an actual patch and not just fix this in a pre-release as I prefer not to run pre-releases in production (but if I have to I will because this is confusing the crap out of my users haha).

  4. #4
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,764

    Default Re: List with detail view switching records after save and sync (after update to build 4254)

    Did you report it?

    For now, you can work around this by saving the current row of your List before the sync. In the code for the sync button...

    Code:
    {dialog.Object}.__currRow = {dialog.Object}.getValue('LIST1');
    {dialog.object}.saveListEdits('LIST1',{rows: 'allRows'});
    And then... in the List Detail View tab, in the Client-side Events section, afterSynchronizeList event...

    Code:
    setTimeout(function(){
    	{dialog.Object}.setValue('LIST1',{dialog.Object}.__currRow);
    },50);
    This didn't work out quite as I expected. Without the timeout, the current row is still not set... stuff is just happening too fast. So a 50ms delay seems to do it.
    This just does a .setValue() on the List control, using the {dialog.Object} namespace variable that holds the current row.

  5. #5
    Member
    Real Name
    Jmo
    Join Date
    May 2013
    Posts
    367

    Default Re: List with detail view switching records after save and sync (after update to build 4254)

    I did just report it, unfortunately trying to implement this fix in my entire application would involve adding this code to 35+ lists which at this point would be way to time consuming. Hopefully the bug will be fixed quickly and a new release will be out before it comes to that. Thank you for the code as reference though, will be happy to know its here if there isn't a speedy fix.

  6. #6
    "Certified" Alphaholic Lance Gurd's Avatar
    Real Name
    Lance Gurd
    Join Date
    Jun 2005
    Location
    Southampton, UK
    Posts
    1,441

    Default Re: List with detail view switching records after save and sync (after update to build 4254)

    Anyone know if this has been fixed yet? Driving me crazy!

  7. #7
    Member
    Real Name
    Jmo
    Join Date
    May 2013
    Posts
    367

    Default Re: List with detail view switching records after save and sync (after update to build 4254)

    It's been fixed in the pre-release, still some issues when you run a refresh on a list that causes records to be filtered out (rather than the record you had selected before the refresh occurred staying selected, a different record gets selected), but it looks like this unrelated to the save and sync issue.

  8. #8
    "Certified" Alphaholic Lance Gurd's Avatar
    Real Name
    Lance Gurd
    Join Date
    Jun 2005
    Location
    Southampton, UK
    Posts
    1,441

    Default Re: List with detail view switching records after save and sync (after update to build 4254)

    So not a safe fix then?

  9. #9
    Member
    Real Name
    Jmo
    Join Date
    May 2013
    Posts
    367

    Default Re: List with detail view switching records after save and sync (after update to build 4254)

    I'm running it in production now, some minor bumps along the way but decently stable.

Similar Threads

  1. How to update ViewBox data when used as the list's detail view (onClick event)?
    By Maroine81 in forum Mobile & Browser Applications
    Replies: 4
    Last Post: 02-23-2017, 06:55 PM
  2. Simulating List Detail View Sync Errors
    By lilmofo812 in forum Mobile & Browser Applications
    Replies: 1
    Last Post: 11-26-2016, 06:26 PM
  3. File Update and Download using List and List Detail View
    By dantum in forum Mobile & Browser Applications
    Replies: 10
    Last Post: 09-01-2016, 10:49 PM
  4. Replies: 1
    Last Post: 06-07-2016, 05:38 PM
  5. Modeless detail view: Save button closes detail view window
    By nlights in forum Application Server Version 11 - Web/Browser Applications
    Replies: 1
    Last Post: 01-10-2012, 04:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •