﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - Crosslight - Local Data Synchronization</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight---Local-Data-Synchronization/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Crosslight - Local Data Synchronization</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight---Local-Data-Synchronization/</link><pubDate>Fri, 09 Jan 2015 09:39:41 GMT</pubDate><dc:creator>yudi</dc:creator><category>Sqlite</category><category>Local Data</category><category>Enterprise Framework</category><category>Synchronization</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;The incremental loading is the process of loading data in small chunks. Set IncrementalLoadingSize to 20 will load only first 20 items; and new 20 items when user scroll to the end of the list.&lt;br&gt;Data synchronization requires all data to be loaded. Since you are enabling data synchronization, you should disable the incremental loading feature.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this help.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight - Local Data Synchronization</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight---Local-Data-Synchronization/</link><pubDate>Tue, 06 Jan 2015 11:48:14 GMT</pubDate><dc:creator>kibork</dc:creator><category>Sqlite</category><category>Local Data</category><category>Enterprise Framework</category><category>Synchronization</category><description>If&amp;nbsp;&lt;span style="font-family: 'Courier New', Tahoma; font-size: 9pt; background-color: rgb(255, 252, 225);"&gt;this.IncrementalLoadingSize&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;is set to 20, the list will load only first 20 items? I thought it loads every time new 20 items from the database, when I scroll to the end of the list. But it does not. So I put the LoadingSize to 0. The app loads all items in the list now. If I scroll down to the end now, the app produce the infinite loop I described before. While these loop runs, I cant delete, edit and mark last items. Well, same problem :P</description></item><item><title>Crosslight - Local Data Synchronization</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight---Local-Data-Synchronization/</link><pubDate>Mon, 05 Jan 2015 07:32:31 GMT</pubDate><dc:creator>yudi</dc:creator><category>Sqlite</category><category>Local Data</category><category>Enterprise Framework</category><category>Synchronization</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I tried to replicate the reported problem by using the modified sent sample and do the following:&lt;/span&gt;&lt;/p&gt;&lt;ul style="color: #1f497d;"&gt;&lt;li&gt;scroll down to the in the inventory list;&lt;/li&gt;&lt;li&gt;delete last 3 items in Android;&lt;/li&gt;&lt;li&gt;edit last 3 items in Android;&lt;/li&gt;&lt;li&gt;and mark last 3 items in Android.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I have uploaded the modified sample in &lt;a href="https://onedrive.live.com/download?resid=A29317908CEA783A%21425" target="_blank"&gt;OneDrive&lt;/a&gt;. Please have the uploaded sample evaluated on your end and let me know whether it helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight - Local Data Synchronization</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight---Local-Data-Synchronization/</link><pubDate>Fri, 02 Jan 2015 09:28:54 GMT</pubDate><dc:creator>kibork</dc:creator><category>Sqlite</category><category>Local Data</category><category>Enterprise Framework</category><category>Synchronization</category><description>&lt;p style="font-size: 13.63636302948px;"&gt;ty, this was an failure too :P&lt;/p&gt;&lt;p style="font-size: 13.63636302948px;"&gt;It works now. But if I scroll down to the end in the Inventory List, the Debbuger will show me the whole time this line.&amp;nbsp;&lt;/p&gt;&lt;pre&gt;01-02 10:12:42.677 W/View    (10523): requestLayout() improperly called by android.widget.LinearLayout{2b71ff5 V.E..... ......ID 0,0-768,38} during second layout pass: posting in next frame&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Looks like&amp;nbsp;&lt;/span&gt;infinite loop. Calls whole time the OnDataLoaded method.&amp;nbsp;&lt;span style="font-size: 10pt;"&gt;What does it mean? I also cant delete, edit and mark last 3 items on Android (when I scroll to the end). If I try to change the page, for example: 'I navigate to the about page' , the application will crash.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;01-02 10:22:59.769 E/mono    (10523): Parameter name: jobject01-02 10:22:59.769 E/mono    (10523):   at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (IntPtr jobject, IntPtr jclass, IntPtr jmethod) [0x00010] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/5474129a/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:867 01-02 10:22:59.769 E/mono    (10523):   at Android.Widget.BaseAdapter.NotifyDataSetChanged () [0x00058] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/5474129a/source/monodroid/src/Mono.Android/platforms/android-14/src/generated/Android.Widget.BaseAdapter.cs:311 
01-02 10:22:59.770 E/mono-rt (10523):   at Java.Lang.Thread+RunnableImplementor.Run () [0x0000b] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/54741201-02 10:22:59.769 E/mono    (10523):   at Intersoft.Crosslight.Android.ObservableListAdapter.&amp;lt;&amp;gt;n__FabricatedMethod7 () [0x00000] in &amp;lt;filename unknown&amp;gt;:0 
01-02 10:22:59.769 E/mono    (10523):   at Intersoft.Crosslight.Android.ObservableListAdapter.&amp;lt;NotifyDataSetChanged&amp;gt;b__6 () [0x00000] in &amp;lt;filename unknown&amp;gt;:0 
01-02 10:22:59.769 E/mono    (10523):   at Java.Lang.Thread+RunnableImplementor.Run () [0x0000b] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/5474129a/source/monodroid/src/Mono.Android/src/Java.Lang/Thread.cs:36 
01-02 10:22:59.769 E/mono    (10523):   at Java.Lang.IRunnableInvoker.n_Run (IntPtr jnienv, IntPtr native__this) [0x00009] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/5474129a/source/monodroid/src/Mono.Android/platforms/android-14/src/generated/Java.Lang.IRunnable.cs:71 
01-02 10:22:59.769 E/mono    (10523):   at (wrapper dynamic-method) object:7b2e84fb-f952-4980-97ed-af389323bbb0 (intptr,intptr)
01-02 10:22:59.770 E/mono-rt (10523): [ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: 'jobject' must not be IntPtr.Zero.&lt;/pre&gt;&lt;p style="font-size: 13.63636302948px;"&gt;Problem with the bindings? Like here:&lt;br&gt;&lt;a href="http://stackoverflow.com/questions/19974267/jobject-must-not-be-intptr-zero-when-setting-textviews-text-in-monodroid" target="_blank"&gt;Stackoverflow IntPtr.Zero&lt;/a&gt;&lt;/p&gt;&lt;p style="font-size: 13.63636302948px;"&gt;Best regards&lt;/p&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</description></item><item><title>Crosslight - Local Data Synchronization</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight---Local-Data-Synchronization/</link><pubDate>Wed, 24 Dec 2014 01:14:07 GMT</pubDate><dc:creator>yudi</dc:creator><category>Sqlite</category><category>Local Data</category><category>Enterprise Framework</category><category>Synchronization</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Sorry for the delay in sending this.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I run the sent sample in my local end and managed to solve the problem by setting Item.ModifiedDate in InitializeNewItem.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;protected override void InitializeNewItem(Item item) {
    base.InitializeNewItem(item);

    this.Item = this.Repository.Create();
    this.Item.PurchaseDate = DateTime.Today;
    this.Item.Qty = 1;
    this.Item.ModifiedDate = DateTime.Now;
    this.Item.Category = this.CategoryRepository.GetAll().OrderBy(o =&amp;gt; o.Name).FirstOrDefault();

    this.Title = "Add New Item";
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this help.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight - Local Data Synchronization</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight---Local-Data-Synchronization/</link><pubDate>Fri, 19 Dec 2014 10:15:35 GMT</pubDate><dc:creator>kibork</dc:creator><category>Sqlite</category><category>Local Data</category><category>Enterprise Framework</category><category>Synchronization</category><description>&lt;span style="font-size: 13.63636302948px;"&gt;I solved the problem.&amp;nbsp;&lt;/span&gt;&lt;p style="font-size: 13.63636302948px;"&gt;&lt;span style="font-size: 10pt;"&gt;BR&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight - Local Data Synchronization</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight---Local-Data-Synchronization/</link><pubDate>Fri, 19 Dec 2014 08:55:25 GMT</pubDate><dc:creator>kibork</dc:creator><category>Sqlite</category><category>Local Data</category><category>Enterprise Framework</category><category>Synchronization</category><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;&lt;p&gt;I put the sample on github. You can download it here as a .zip file.&lt;/p&gt;&lt;p&gt;I removed the appSettings.WebServerUrl, because it only works in my network.&lt;/p&gt;&lt;p&gt;https://github.com/kiborkm/CrosslightDB&lt;/p&gt;&lt;p&gt;Best regards&lt;/p&gt;</description></item><item><title>Crosslight - Local Data Synchronization</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight---Local-Data-Synchronization/</link><pubDate>Wed, 17 Dec 2014 08:33:28 GMT</pubDate><dc:creator>yudi</dc:creator><category>Sqlite</category><category>Local Data</category><category>Enterprise Framework</category><category>Synchronization</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;To enable data synchronization, you need to perform following tasks:&lt;/span&gt;&lt;/p&gt;&lt;ul style="color: #1f497d;"&gt;&lt;li&gt;Create the entity service, entity repository and entity model that has data synchronization metadata&lt;/li&gt;&lt;li&gt;Configure the data access target url.&lt;/li&gt;&lt;li&gt;Register the entity repository.&lt;/li&gt;&lt;li&gt;Add Crosslight SQLIte assembly in your platform-project reference.&lt;/li&gt;&lt;li&gt;Set the EnableDataSynchronization property in AppSettings to True.&lt;/li&gt;&lt;li&gt;Register the SynchronizationService and specify the entity types that will take part in synchronization process.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Source: &lt;a href="http://developer.intersoftpt.com/display/crosslight/Enabling+Data+Synchronization" target="_blank"&gt;Enabling Data Synchronization&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Could you please provide a running sample which replicates the reported problem? I will try to start my investigation using the provided sample.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight - Local Data Synchronization</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight---Local-Data-Synchronization/</link><pubDate>Tue, 16 Dec 2014 16:20:26 GMT</pubDate><dc:creator>kibork</dc:creator><category>Sqlite</category><category>Local Data</category><category>Enterprise Framework</category><category>Synchronization</category><description>&lt;p style="font-size: 13.63636302948px;"&gt;The error in VS Debugger. When I try to add an new item.&lt;/p&gt;&lt;pre&gt;12-16 17:13:56.849 I/MonoDroid(30448): UNHANDLED EXCEPTION:12-16 17:13:56.890 I/MonoDroid(30448): System.NullReferenceException: Object reference not set to an instance of an object
An unhandled exception occured.

12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.Crosslight.ViewModels.EditableListViewModelBase`1[CrosslightDB.DomainModels.Inventory.Item].OnDataInserted (IEnumerable`1 items) [0x00000] in &amp;lt;filename unknown&amp;gt;:0 
12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.Crosslight.ViewModels.EditableListViewModelBase`1[CrosslightDB.DomainModels.Inventory.Item]._OnDataInserted (IEnumerable`1 items) [0x00000] in &amp;lt;filename unknown&amp;gt;:0 
12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.Crosslight.EventSubscription`1[System.Collections.Generic.IEnumerable`1[CrosslightDB.DomainModels.Inventory.Item]].InvokeAction (System.Action`1 action, IEnumerable`1 argument) [0x00000] in &amp;lt;filename unknown&amp;gt;:0 
12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.Crosslight.EventSubscription`1+a[System.Collections.Generic.IEnumerable`1[CrosslightDB.DomainModels.Inventory.Item]].&amp;lt;Intersoft.Crosslight.IEventSubscription.GetExecutionStrategy&amp;gt;b__0 (System.Object[] arguments) [0x00000] in &amp;lt;filename unknown&amp;gt;:0 
12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.Crosslight.DelegateEventBase.InternalPublish (System.Object[] arguments) [0x00000] in &amp;lt;filename unknown&amp;gt;:0 
12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.Crosslight.DelegateEvent`1[System.Collections.Generic.IEnumerable`1[CrosslightDB.DomainModels.Inventory.Item]].Publish (IEnumerable`1 payload) [0x00000] in &amp;lt;filename unknown&amp;gt;:0 
12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.Crosslight.EventAggregator.Publish[DataInsertedEvent`1,IEnumerable`1] (IEnumerable`1 payload) [0x00000] in &amp;lt;filename unknown&amp;gt;:0 
12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.Crosslight.ViewModels.EditorViewModelBase`1[CrosslightDB.DomainModels.Inventory.Item].OnDataInserted (CrosslightDB.DomainModels.Inventory.Item item) [0x00000] in &amp;lt;filename unknown&amp;gt;:0 
12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.AppFramework.ViewModels.DataEditorViewModelBase`2+&amp;lt;ExecuteSave&amp;gt;d__0[CrosslightDB.DomainModels.Inventory.Item,CrosslightDB.DomainModels.Inventory.IItemRepository].MoveNext () [0x00000] in &amp;lt;filename unknown&amp;gt;:0 &lt;/pre&gt;&lt;p style="font-size: 13.63636302948px;"&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Crosslight - Local Data Synchronization</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight---Local-Data-Synchronization/</link><pubDate>Tue, 16 Dec 2014 10:29:23 GMT</pubDate><dc:creator>kibork</dc:creator><category>Sqlite</category><category>Local Data</category><category>Enterprise Framework</category><category>Synchronization</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;it try to add the Local Data Synchronization to the 'startup Business App' from Crosslight Project Wizard. I can login and so on... When I start the app it synchronizes with the .mdf database. 42 entities will fetch.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now my current Problem.&lt;/p&gt;&lt;p&gt;When I go in menu to the Inventory (Page3), I get this Error:&lt;/p&gt;&lt;p&gt;"Unable to perform data operation due to an error: Object reference not set to an instance of an object."&lt;/p&gt;&lt;p&gt;Error occurs after this part(ItemListViewModel):&lt;/p&gt;&lt;pre&gt;public DateTime? LastSync {            get {                return _lastSync;            }
            set {
                if (_lastSync != value) {
                    _lastSync = value;
                    OnPropertyChanged("LastUpdate");
                    OnPropertyChanged("UpdatedText");
                }
            }
        }&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Wich object and where? o.O&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(51, 51, 51); font-family: Verdana, sans-serif; font-size: 13px; background-color: rgb(243, 231, 251);"&gt;Best regards&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>