* The users browse to a certain context in the hierarchy where creating a certain type of objects (classified as templatable data) is allowed;
* There is at least one offline query configured that queries against that type of objects;
* The users click a button (in the top-right corner of the child area by defaultsee [[Data_Replication_(UBIK_Client)#Show_available_data_templates|example "Show available data templates"]]) to check what can be copied and pasted under the current context;* The result list is determined by the configured offline query (the one selected by the users if there are more than one). {{UBIK}} will try to automatically fill out all query criteria by extracting relevant information from the context (those that cannot be found will simply be ignored/skipped);* The list is initially presented in a dialog. However, if If the users do not find the data templates they are looking for, or there are still too many in the list, they can click the {{key press[[Offline_Query_(UBIK_WinX)#Query_with_context_filter_values|...}} button to open the offline query page and manually query for results;* By default, all data templates displayed in the list can be expanded enter values]] (otherwise known as the double level view feature) so that users get the chance either to easily check what's underneath. {{Hint|Since the same queries are used every time users look for available data templates, their criteria are reset every time so that any criteria set manually by the users previously do not affect future querying. Nevertheless, overrule the context information (if there is anyfilter value or add extra filter values) is still extracted and used automatically during each queryingreevaluate the query for results.}}
=== Replicating data templates ===
==== As regular data ====
In this case, the replicated instances will not appear in the template selection list. This can be done by clicking/tapping the data template item in the list.
A typical user scenario of this is field workers generating a large number of work packages out of existing data templates.
==== As data templates ====
In this case, the replicated instances will appear in the template selection list. This can be done by clicking/tapping the additional button (at the right side by default) in each data template item.
A typical user scenario of this is administrators/work planners creating work package data templates from similar templates that already exist.
=== Show available data templates ===
The AddTemplatableDataCommand can be used for this. It support supports the following parameterparameters.
* Uid: Mandatory, specifies the Uid of the [[SYSCLS_OFFLINE_TEMPLATE_QUERY|offline data template query]];
* FilterContext: Optional, specifies the Uid of the context object from which the filter criteria values should be extracted and used. If unspecified, the current parent/context object where the command is triggered is used;