Jump to: navigation, search

Changes


UBIK Templates

1,434 bytes added, 24 April
/* PropertyDirectItemTemplateSelector (UWP & Xamarin) */
<tabs>
<tab name="UWP">
* Returns If the child item is classified with the [[SYSCLS_CHILDITEMTEMPLATE|child item template classification]] and carries a custom valid child item template name:** If the given item is a TaskViewModel (namely if one the associated object is configureda [[MRO_Objects_(Client)#Task|Task]]) and the TaskItemTemplate is not null, it returns that TaskItemTemplate.** Otherwise, if the given item is a TaskViewModel (namely if the associated object is a [[MRO_Objects_(Client)#Task|Task]]) & the TaskItemTemplate is null, it returns a ''UBIKProjectItemUBIKTaskItem'' template if .** If the given item is a MROViewModel and contains ProjectData (namely if the associated object is a [[MRO_Objects_(Client)#MRO_objects_with_project_information_.28WinX_only.29|MRO object with project information]])and the ProjectItemTemplate is not null, it returns that ProjectItemTemplate.** Otherwise, it returns a ''UBIKTaskItem'' template if the given item is a TaskViewModel MROViewModel contains ProjectData (namely if the associated object is a [[MRO_Objects_(Client)#TaskMRO_objects_with_project_information_.28WinX_only.29|TaskMRO object with project information]])and the ProjectItemTemplate is null, it returns a ''UBIKProjectItem'' template. ** If nothing of the above fits& the ChildItemTemplate is not null, it returns that ChildItemTemplate.** If nothing of the above fits & the ChildItemTemplate is null, it returns a ''UBIKChildItem'' template.
</tab>
<tab name="Xamarin">
* If the given ContentListItemViewModel child item is not nullclassified with the [[SYSCLS_CHILDITEMTEMPLATE|child item template classification]] and carries a valid child item template name:
** If the given item is a TaskViewModel (namely if the associated object is a [[MRO_Objects_(Client)#Task|Task]]) and the TaskItemTemplate is not null, it returns that TaskItemTemplate.
** Otherwise, if the given item is a TaskViewModel (namely if the associated object is a [[MRO_Objects_(Client)#Task|Task]]) & the TaskItemTemplate is null, it returns a ''UBIKTaskItem'' template.
** If nothing of the above fits & the ChildItemTemplate is not null, it returns that ChildItemTemplate.
** If nothing of the above fits & the ChildItemTemplate is null, it returns a ''UBIKChildItem'' template.
* Returns null if the given ContentListItemViewModel item is null.
</tab>
</tabs>
{{Hint|To get an overview of how template selectors work, please refer to [[UBIK_Templates#Template_loading_mechanism|Template loading mechanism]].}}
[[Category:Client|UBIK Templates]]
[[Category:UBIK|UBIK Templates]]
[[Category:WinX|UBIK Templates]]
=== PropertyDirectItemTemplateSelector (UWP & Xamarin) ===
** if the related property is read only or
** if the object is locked or
** when the property requires authenticationor** if the given TaskViewModels (namely the associated object is a [[MRO_Objects_(Client)#Task|Task]]) Value is of type GeoData or DateTime.
* Otherwise:
** Returns a ''UBIKPropertyDirectItemList'' template if the MetaProperty of the given item has a [[UBIK_Client_Basics#Selective_List_Properties|SelectiveList]].
{{Hint|To get an overview of how template selectors work, please refer to [[UBIK_Templates#Template_loading_mechanism|Template loading mechanism]].}}
[[Category:Client|UBIK Templates]]
[[Category:UBIK|UBIK Templates]]
[[Category:WinX|UBIK Templates]]
=== TaskPropertyTemplateSelector (UWP & Xamarin) ===
** if the related property is read only or
** if the object is locked or
** when the property requires authenticationor** if the given TaskViewModels (namely the associated object is a [[MRO_Objects_(Client)#Task|Task]]) Value is of type GeoData or DateTime.
* Otherwise:
** Returns a ''UBIKTaskPropertyList'' template if the MetaProperty of the given item has a [[UBIK_Client_Basics#Selective_List_Properties|SelectiveList]].
{{Hint|To get an overview of how template selectors work, please refer to [[UBIK_Templates#Template_loading_mechanism|Template loading mechanism]].}}
[[Category:Client|UBIK Templates]]
[[Category:UBIK|UBIK Templates]]
[[Category:WinX|UBIK Templates]]
=== HotSpotTemplateSelector (UWP & Xamarin) ===
257
edits