﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » Enterprise Server - V1 » How do I?  » Synchronization from remote client</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 07 Jun 2026 07:01:12 GMT</lastBuildDate><ttl>20</ttl><item><title>Synchronization from remote client</title><link>http://forum.strataframe.net/FindPost7047.aspx</link><description>ES apparently allows a remote client to access data via HTTP, then run disconnected from the central database.&amp;nbsp; So, I assume a salesperson could pull down a customer list on his or her laptop and work on it without further internet connection.&amp;nbsp; &lt;P&gt;My question is what kind of support does ES offer for synchronizing any changes made to the data once an internet connection is re-established?&amp;nbsp; &lt;/P&gt;&lt;P&gt;For example, if the salesperson changes a customer's phone number while working disconnected, how does this new phone number get applied to the main database when the salesperson reconnects to the internet?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Are the synchronization tools built in to ES, or would I have to write it all by hand?&amp;nbsp; At reconnection, is there an opportunity to open both the local and the central (ES) tables simultaneously and do the needed comparison and updates?&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Larry</description><pubDate>Fri, 09 Mar 2007 15:00:29 GMT</pubDate><dc:creator>Larry Tucker</dc:creator></item><item><title>RE: Synchronization from remote client</title><link>http://forum.strataframe.net/FindPost7392.aspx</link><description>Glad to help, Larry :).&amp;nbsp; Yes, there are a number of different methods of which you can take advantage.</description><pubDate>Fri, 09 Mar 2007 15:00:29 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Synchronization from remote client</title><link>http://forum.strataframe.net/FindPost7390.aspx</link><description>Trent,&lt;P&gt;Thanks for the reply.&amp;nbsp; Sounds like there are a lot of capabilities to "run disconnected".&lt;/P&gt;&lt;P&gt;Larry</description><pubDate>Fri, 09 Mar 2007 14:56:20 GMT</pubDate><dc:creator>Larry Tucker</dc:creator></item><item><title>RE: Synchronization from remote client</title><link>http://forum.strataframe.net/FindPost7309.aspx</link><description>You could create a class to do this for you in about 10 minutes.&amp;nbsp; All forms already have a collection of business objects that have been dropped on it:&lt;/P&gt;&lt;P&gt;[codesnippet]MyForm.BusinessObjects[/codesnippet]&lt;/P&gt;&lt;P&gt;You can pass this collection to a shared class that you create that cycles through the BOs and saves them to disk:&lt;/P&gt;&lt;P&gt;[codesnippet]Public Class MyBOSaver&lt;BR&gt;&amp;nbsp;&amp;nbsp; Public Shared Sub SaveBOsToDisk(ByVal MyBOs As MicroFour.StrataFrame.Business.BusinessObjectCollection)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Cycle through all of the BOs&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each loBO As BusinessLayer IN MyBOs&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Add the serialization code here...&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;BR&gt;End Class[/codesnippet]</description><pubDate>Mon, 05 Mar 2007 14:22:19 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Synchronization from remote client</title><link>http://forum.strataframe.net/FindPost7308.aspx</link><description>Hi Trent&lt;P&gt;So if&amp;nbsp;a form&amp;nbsp;had many BOs, one would have to manage each one of them separately, correct?&amp;nbsp; There is no top level&amp;nbsp;"session" or "mechanism" that I could use to manage the saving/loading of the&amp;nbsp;BOs while I was disconnected, right?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;--Lenard</description><pubDate>Mon, 05 Mar 2007 14:15:04 GMT</pubDate><dc:creator>Lenard Dean</dc:creator></item><item><title>RE: Synchronization from remote client</title><link>http://forum.strataframe.net/FindPost7304.aspx</link><description>[quote]My question is what kind of support does ES offer for synchronizing any changes made to the data once an internet connection is re-established?[/quote]&lt;P&gt;You could do this with StrataFrame even prior to the ES.&amp;nbsp; This is more&amp;nbsp;of a disconnected data feature rather than an ES feature.&amp;nbsp; For example, once you have data within the BO it can be modified and maintained and there is no "keep-alive" data session.&amp;nbsp; The connection is re-established when a request to the DAL (Data access layer) is performed, such as a Save(), SELECT, etc.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The ES provides a way to communicate real-time from anywhere...fast!&amp;nbsp; So in the case of pulling data down and then updating it later there are a number of options.&amp;nbsp; The most common one would be to serialize the BO and save it to disk....once back in connection range (or in the office) then you can deserialize the BO and all of the unsaved content and call the Save just as you would any other time.&amp;nbsp;&lt;P&gt;[quote]Does version 1.6 provide some mechanism&amp;nbsp;to save&amp;nbsp;to a local datastore&amp;nbsp;while the smart client is disconnected from ES?[/quote]&lt;P&gt;Use&amp;nbsp;the serialization methods on the BO:&lt;P&gt;&lt;STRONG&gt;Serialize to local file on disk&lt;/STRONG&gt;&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;&lt;FONT&gt;[codesnippet]Dim loFile As New System.IO.FileStream("c:\temp\MyBO.ser", System.IO.FileMode.Create)&lt;BR&gt;MyBO.SerializeToStream(loFile)[/codesnippet]&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;STRONG&gt;Restore a saved BO from disk&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[codesnippet]loFile = New System.IO.FileStream("c:\temp\MyBO.ser", System.IO.FileMode.Open)&lt;BR&gt;MyBO = CType(MicroFour.StrataFrame.Business.BusinessLayer.DeserializeBusinessObject(loFile), MyBO)[/codesnippet]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 05 Mar 2007 12:05:36 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Synchronization from remote client</title><link>http://forum.strataframe.net/FindPost7225.aspx</link><description>Hi Trent,&lt;/P&gt;&lt;P&gt;Just wandering about Larry's question.&amp;nbsp; Does version 1.6 provide some mechanism&amp;nbsp;to save&amp;nbsp;to a local datastore&amp;nbsp;while the smart client is disconnected from ES?&lt;/P&gt;&lt;P&gt;--Lenard</description><pubDate>Thu, 01 Mar 2007 03:57:26 GMT</pubDate><dc:creator>Lenard Dean</dc:creator></item></channel></rss>