8.1 Creating, editing, copying and deleting a context type
In the Context Type editor available from the Contexts menu option in the Dashboard, users with the roles of Admins and Task Admins can design templates for the server. This editor is quite similar to the Task Template editor.
Creating a new context type from scratch
- To start the editor, select Contexts on the Dashboard menu and press [+ New context type].
The Context Type editor will then open:
- Enter a name for the new context type, in singular and plural.
Context types describe the top level structure you wish to sort task under: Work orders, Sales orders, Countries, Vessels, Construction projects, Customers. - Check if you want to use this context as a Primary context. If not checked, this context will be used as a subcontext, to be used under one or more primary contexts. You may for instance use Vessels as a primary context and then have subcontexts Decks and Cabins under this.
- If you have chosen Primary context, you must check if you want this context to be shown as an option in the menus in the Zegeba app or the Dashboard.
There are seven tabs in this editor and you can browse through them by clicking on them or pressing [Next >>] and [<< Previous] in the lower right corner. They are described in the following pages of this chapter.
The orange asterisks (*) by the tab names show where you have to fill in information in order to be able to save the template.
Creating a new context type by copying an existing one
You can also copy an existing context type, change some of the content and save it as a new context type. This may save a lot of time when you need a new context type quite similar to an old one.
- Select the Dashboard’s menu option Contexts to get the list of context types.
- Press the 3-striped “hamburger menu” of the context type in question and select Copy Context Type.
Go through the tabs in the Context Type editor as described on the following pages and make the desired changes.
- Press [Save] to save the context type.
Note: We advice you to give the copy a new, unique name. If you don’t, the new context type will not overwrite the old one but be saved with the same name.
Editing a context type
There is often a need to edit a context type before or after it has been used for issuing contexts.
- Select the Dashboard’s menu option Contexts to get the list of context types.
- Press the 3-striped “hamburger” menu of the template in question and select Edit Context Type.
- Go through the tabs in the Context Type editor and make the desired changes.
- Press [Save] to save the context type.
Note: This will permanently overwrite the previous context type definition.
The changes made to the context type will be reflected in all new contexts of this type created as well as in any existing contexts of this context types residing in the users’ apps – when they next sync with the server.
Copying a context type
- Select Context Types on the Dashboard menu.
- Click on the desired context type’s hamburger menu, pictured above, and select Copy Context Type.
- The Context Type Editor will then open up at the tab Name where you can give the new context type a name.
- Go through the other tabs and make the modifications you want to the original settings before saving the new context type.
Deleting a context type
- Select Context Types on the Dashboard menu.
- Click on the desired context type’s hamburger menu, pictured above, and select Delete Context Type.
- Confirm that you wish to dele this context type.