Alpha Video Training
Results 1 to 3 of 3

Thread: listObject.updateListFromUXControls vs {dialog.object}.saveListEdits

  1. #1
    Member
    Real Name
    Peter Johnston
    Join Date
    Oct 2010
    Location
    Sydney Australia
    Posts
    72

    Default listObject.updateListFromUXControls vs {dialog.object}.saveListEdits

    Hi,

    I thought I had a good handle on this, until release 5864 and a client request.
    Can someone clarify something for me, or tell me I need to change a setting somewhere.

    I have an MS SQL DB and a PhoneGap App which has been working fine in connected/disconnected mode for 5 plus years.
    I use listObject.updateListFromUXControls to take the data from the detail view and write back to the Device List data which uses local storage
    I am using {dialog.object}.saveListEdits('<LIST_NAME>') to then synchronize these back to the Server.

    All good so far

    Use Case: A client has asked me to delay sending updates back to the server, even when the device is connected, because they are impatient.

    So I started breaking my code down into smaller chunks and holding the saveListEdits until a later event.
    Now I discover that the listObject.updateListFromUXControls is actually sending data back to the server. I found this by checking the DB and adding alerts into my code, eventually I found the afterSynchronizeList detail event is triggered with the updateListFromUXControls.

    Am I wrong in my thinking that the updateListFromUXControls should not actually do the synchronize?

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

    Default Re: listObject.updateListFromUXControls vs {dialog.object}.saveListEdits

    It depends on how you've set up your List.

    Do you have List, Detail View, Synchronization policy, Client-to-server synchronization turned on?

  3. #3
    Member
    Real Name
    Peter Johnston
    Join Date
    Oct 2010
    Location
    Sydney Australia
    Posts
    72

    Default Re: listObject.updateListFromUXControls vs {dialog.object}.saveListEdits

    Thanks David, exactly what I wanted......
    As soon as I read your reply I remember reading something a few years back about this in the release notes.

    All working as I want now..... (once the other item I is resolved)

Similar Threads

  1. updateListFromUXControls - can I set the position of the row inserted?
    By rjackson@arach.net.au in forum Mobile & Browser Applications
    Replies: 0
    Last Post: 07-21-2018, 04:40 AM
  2. savelistedits strange behaviour
    By gcarm@bigpond.com in forum Mobile & Browser Applications
    Replies: 1
    Last Post: 06-11-2018, 12:51 AM
  3. {dialog.object}.saveListEdits('LIST1',{rows: 'allRows'}); works haphazardly
    By ArmandvdMerwe in forum Mobile & Browser Applications
    Replies: 3
    Last Post: 06-01-2017, 09:38 AM
  4. saveListEdits()
    By Steve Workings in forum Mobile & Browser Applications
    Replies: 4
    Last Post: 12-11-2015, 09:29 AM
  5. <listObject>.scrollToItem(target); not working.
    By snorrith in forum Mobile & Browser Applications
    Replies: 2
    Last Post: 10-09-2013, 02:48 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
  •