Per user data sync

Oct 6, 2013 at 10:16 PM
Is it possible to perform per user data sync using this toolkit?
User have to be synchronized using Facebook, Twitter, etc
Coordinator
Oct 7, 2013 at 4:24 PM
Yes, you can make a filter on User Id.
You need to save User token (from FB, Twitter ...) and sync all datas from that user (ie : filtered by user id)
Oct 11, 2013 at 11:47 AM
OK, how can you comment the quote from this post
Filter templates as it is cannot be used to synchronize. They only serve as base templates from which we can create new scopes that will inherit the configuration of the template and specify a specific filter value we want to pass to the filter parameter in the template.
If I understand it correct then I'll need to define a scope for every user.
Coordinator
Oct 11, 2013 at 1:09 PM
No, you define 1 Template (with its parameters) , and each user will implement this Template and provide the good parameters.
I will make a sample with parameters in the next week to show you how to deal with parameters
Oct 11, 2013 at 1:31 PM
Edited Oct 11, 2013 at 1:59 PM
No, you define 1 Template (with its parameters) , and each user will implement this Template and provide the good parameters.
Do you mean that value to apply filter will be get dynamically (current user id) and be applied using the same scope for every user?
I will make a sample with parameters in the next week to show you how to deal with parameters
It would be great.
Coordinator
Oct 15, 2013 at 2:15 PM
yes, You create a scope (a Template scope to be clear) with the parameter.
Each client will pass the parameter value (and the toolkit will create the Scope in the server database directly)
I will made a sample very soon, it's my next priority :)
Nov 22, 2013 at 3:36 AM
Mimetis wrote:
yes, You create a scope (a Template scope to be clear) with the parameter.
Each client will pass the parameter value (and the toolkit will create the Scope in the server database directly)
I will made a sample very soon, it's my next priority :)
Is it possible to get a sample of the template scope with the parameter?
Coordinator
Dec 6, 2013 at 1:03 PM
Next week, probably
Dec 10, 2013 at 9:26 AM
Thanks!
I hit another issue....
After install and update for windows 8.1, the sync between client and server stop working, there is no error(sync result success) and the totaldownload count is 1, but the changed data are not being sync.
I have stuck in debugging for a week, and can't figure out.... will appreciate your help....
Coordinator
Dec 10, 2013 at 10:07 AM
Did you try to set
config.UseVerboseErrors = true;
on you server side .svc Handler ?

As well, you can try to see what happened with Fiddler too.

And if you can't find you problem, feel free to share your solution, i will take a look on it :)

Sebastien
Dec 11, 2013 at 9:59 AM
yeah, I set the useverboseerrors, and the trace is logged, but there is no error in the trace file.
Coordinator
Dec 13, 2013 at 1:52 PM
I ve made an update on the toolkit to retarget Windows 8.1
Can you try the new version and test if you have any error reported ?
Dec 18, 2013 at 10:17 AM
when can we get a sample of the template scope with the parameter? Thanks heaps.
Coordinator
Dec 18, 2013 at 11:26 AM
The sample is already available :)
Check the Sample02 in the source code tab :)

Seb
Dec 18, 2013 at 1:47 PM
Seb, you didn't check-in some files:
  • Phone is almost empty
  • Server not complete too
Could you check full projects, please
Coordinator
Dec 18, 2013 at 3:16 PM
Done.

Sorry for the bad check in :)

For Windows Phone 8, I don't have made a sample, because the client code is exactly the same between Windows 8 and WP8

Sebastien
Dec 18, 2013 at 5:28 PM
Still no files
Coordinator
Dec 18, 2013 at 9:30 PM
I Don't understand what's your problem
Sample02 exist in the source code
There is the server side (Fabrikam.Server) and the clien Windows 8 (Fabrikam.Client) ...
There is no WP8 project, because the code would be the SAME (at least the sync part)

Hope you will resolve your problem
Dec 18, 2013 at 11:30 PM
In the Sample02 source file, the config for templateScope contains "[Side].ID ...", how is the [Side] being referenced?
Dec 19, 2013 at 2:29 AM
Edited Dec 19, 2013 at 2:31 AM
Mimetis wrote:
I Don't understand what's your problem
Sample02 exist in the source code
There is the server side (Fabrikam.Server) and the clien Windows 8 (Fabrikam.Client) ...
There is no WP8 project, because the code would be the SAME (at least the sync part)

Hope you will resolve your problem
I thought that you would check-in full projects
Because when I open solution which references some projects I guess that it must load :)
And I open Sample02 and wow! One project loads and another isn't. Mean something wrong...

Could you add full sources? Why not to check-in them?
Coordinator
Dec 19, 2013 at 8:30 AM
Ok, my bad, there was a problem with the .csproj file
You can try again, I think it's good now

Sebastien
Coordinator
Dec 19, 2013 at 8:31 AM
the [Side] word is managed by the Sync Framework.