Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Using the new MS Sync Framework I could successfully setup sync with a filter clause for one table:
e.g.:
serverProvision.Tables["TICKETS"].AddFilterColumn("TICKETID");
serverProvision.Tables["TICKETS"].FilterClause = "[side].[TICKETID] = @ticketid";

But I want to combine the filter-clause with a second table so that only rows of Table1 are downloaded to client when value of column1 is in selected rows of Table2

instead of
... TICKETID = @ticketid

use
... WHERE TICKEID IN ( SELECT TICKETID FROM TASKS WHERE TASKS.EMPLOYE = @emplyoe_id )


Is this possible in Sync Framework or can I filter only by columns of the downloaded table only

Thanks for any hints!

added:

I did some workaround now (sync more stuff than needed, but limit by additoial columns)
- after reading many googled pages ... imo it is not possible to do cross filtering,
Only filter on multiple columns and combined filter clause on same table seems to be possible.
But brings up danger in databse mismatch (using duplicated fields etc)
Posted
Updated 2-Aug-12 21:17pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900