iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi Gabriel,Continuation from last thread:If you want to use basic method (without AppFramework) you can refer to this http://developer.intersoftsolutions.com/display/crosslight/Local+Data+Access and its child articles.Also one thing you must remember is if you want to use Async & Await method you must dowload the Bcl.Async from Nuget (Add NuGet Packages in Xamarin Studio, Manages NuGet Packages for Solutions in Visual Studio).I think the problem with your code is you are not yet initialize your DB, second problem is because you are using task method (toListAsync()), please check the attachment for examples, also don't forget to download the Bcl.Async for this project!Notes: as this is just for practice i put the table exist inside viewmodel, the best practice is by putting it in onstart method in appservice.csHope that'll helps!
The next method is if you dont want to use our framework which i will explain in your other thread:http://www.intersoftsolutions.com/Community/Crosslight/Problem-saving-object-in-sqlite/
Hi GabrielFirst of all i will show you how to make it the right way (using Crosslight, and Our AppFramework which simplify everythings):You can check your project in the attachment named Teste which already go through these stepshere is my steps:1. Add reference to Intersoft.AppFramework in both Android and Core
2. Go to nuget packages and add Bcl.Async (To Use Async and Await )3. In your Teste.Core/Infrastructure/AppService.cs, register your needed service, and on application start create table if not yet created
4. Don't forget to delete your modelBase.cs and container.cs in your Teste.Core because we will be using the one in AppFramework
5. In your PessoaModel you can add [DataMember] for field that you want to save in local database, [IgnoreDataMember] if you don't want to save to local database, but please remember this is actually not necessary, the most important is only [Primary Key]
6. Now you can Update Delete or Save from anywhere whenever you call LocalDataRepository using IOC Container as you can see in PessaoDetailViewModel
Hi Gabriel,You must add the reference to the assemblies first before Import/Using the Crosslight.Data, you can find your assemblies in you Packages folder in your project, i attach your project with complete referencesYou can try these 2 samples: http://git.intersoftpt.com/projects/CROS-SUPP/repos/sqlite-sample and for more advance: http://git.intersoftpt.com/projects/CROS-SUPP/repos/sqlite-sample-businesstemplatealso you can check our tutorial for SQLLite here: http://developer.intersoftsolutions.com/display/crosslight/Using+Crosslight+SQLite+for+Local+Data+StorageHope that'll helps!
Hi Thomas,I attach my sample for your requirement,There are however things that need to be noted:
Hi Thomas,Just an update from our developer, most likely this will be released in september as Update Best Regards, Arief
Hi Jimmy,Sorry for your inconvenience, could you copy paste your output (the one that have UNHANDLED EXCEPTION)From what i see there are a few possibility for cause of this error possibly in your form view model (caused by different value type between FormMetaData and Parameter inside Model on that view model).Also looks like your code work in our end.
Hi Thomas,You can try our sync sample (http://git.intersoftpt.com/projects/CROS/repos/samples/browse/SyncSample) for our Login, you can also create new Apps using business template in Visual Studio.After that you can easily add these codes to where you want to be:
Hi Jimmy,I will ask our developer it should be on progresses right now!
Hi Thomas,Look like this is not the case, We actually test in different kind of API 15, 17, 21 in different kind of phone (4.12, 4.21, 4.42, etc. Even in API 10 still work if i not wrong, we are using galaxy tab 1).This problem actually exclusively happened when using 4.42 in Automatic uses target framework version, in other option if we test it it will work as intended. My suggestion is just sets your minimum to API 15 or any API that you want but set the target API as highest as you want.I suspect this is Xamarin problem that using wrong API when use automatic mode but we will investigate our code more if needed.Hope that'll helps and sorry my late response.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname