Difference between revisions of "HowTo:Customize Templates and Replication"
(→Client side replication) |
(→Server side replication) |
||
(One intermediate revision by the same user not shown) | |||
Line 30: | Line 30: | ||
Finally, you need to create some custom code actually executing the replication. For example, let's say we want to copy an object when it is saved. You have to fetch the replication configuration and the thing you want to replicate. Then, you can call the replicate method of the configuration object, with the replication target as a parameter. The result will be a collection of replicated objects. | Finally, you need to create some custom code actually executing the replication. For example, let's say we want to copy an object when it is saved. You have to fetch the replication configuration and the thing you want to replicate. Then, you can call the replicate method of the configuration object, with the replication target as a parameter. The result will be a collection of replicated objects. | ||
− | The respective code could look like the following: | + | The respective code could look like the following (example from a real project): |
<source lang = "csharp"> | <source lang = "csharp"> | ||
Line 73: | Line 73: | ||
} | } | ||
</source> | </source> | ||
+ | |||
+ | [[Category:Coding|Customize Templates and Replication]] | ||
+ | [[Category:How-To|Customize Templates and Replication]] | ||
+ | [[Category:Replicating|Customize Templates and Replication]] | ||
+ | [[Category:Version 2.6|Customize Templates and Replication]] | ||
+ | [[Category:WinX|Customize Templates and Replication]] | ||
==See also== | ==See also== | ||
Line 79: | Line 85: | ||
* [[SYSCLS_TEMPLATABLE_DATA|Templatable Data Classification for client side replication]] | * [[SYSCLS_TEMPLATABLE_DATA|Templatable Data Classification for client side replication]] | ||
* [[Data_Replication_(UBIK_Client)]] | * [[Data_Replication_(UBIK_Client)]] | ||
+ | |||
+ | [[Category:How-To|Customize Templates and Replication]] | ||
+ | [[Category:Replicating|Customize Templates and Replication]] | ||
+ | [[Category:WinX|Customize Templates and Replication]] | ||
+ | [[Category:Version 2.6|Customize Templates and Replication]] | ||
+ | [[Category:Coding|Customize Templates and Replication]] |
Latest revision as of 12:36, 9 September 2021
With UBIK®, it is possible to replicate (basically, copy and paste) objects and even complex object hierarchies, based on a template configuration.
This article explains what options you have to enable this and how to do it in your project customizing.