General
The Protocol Templates are Build with HTML and CSS in this Documentation we are not explaining these
concepts here. This documentation is only for the Remote master app specfic functions.
For learning more about HTML and CSS you can visit:
Attributes like loop or if can probably be used in every HTML tag. (only some have been tested).
Devices
- devices = 100
- deviceGroup = 101
- medicalDevice = 102
- weldingMachine = 103
Installations
- installation = 1200
- distributionBox = 1210
- rcd = 1220
- circuit = 1230
- element = 1240
- coverSheet = 1250
Objects
- object = 2300
- doors = 2301
- fire_dampers_foreclosure = 2302
- fire_extinguisher = 2303
- fire_hydrant = 2304
- fire_smoke_alarm = 2305
- first_aid_kit = 2306
- gates = 2307
- ladder_step_scaffolding = 2308
- load_suspension_and_sling = 2309
- ppe_workplace = 2310
- securants = 2311
- shelves = 2312
- scaffold = 2313
- objectGroup = 2314
Locations
- property = 3300
- building = 3400
- floor = 3410
- room = 3420
Riskassessment
Syntax |
Description |
Example |
['riskAssessment'] |
can be use to check if avalible |
data['riskAssessment'] != null |
['riskAssessment']['errorRate'] |
error rate that was put into the template |
data['riskAssessment']['errorRate'] |
['riskAssessment']['basics'] |
basics of risk assessment |
data['riskAssessment']['basics'] |
['riskAssessment']['marks']['0']['7']
|
Is the mark for very low hazard for devices |
data['riskAssessment']['marks']['0']['7']
|
['riskAssessment']['marks']['1']['6']
|
Is the mark for low hazard for installation |
data['riskAssessment']['marks']['1']['6']
|
['riskAssessment']['marks']['2']['5']
|
Is the mark for reduced hazard for objects |
data['riskAssessment']['marks']['2']['5']
|
- data['riskAssessment']['id']
- data['riskAssessment']['name']
- data['riskAssessment']['basics']
- data['riskAssessment']['scope']
data['riskAssessment']['testScope']
data['riskAssessment']['mark']
- data['riskAssessment']['remark']
- data['riskAssessment']['devTimeInterval']
- data['riskAssessment']['insTimeInterval']
- data['riskAssessment']['objTimeInterval']
loop="bImg of data['riskAssessment']['images']
-
loop="assessment of data['riskAssessment']['assessments']
- group: data['assessment']['group']
- subGroup: data['assessment']['subGroup']
- type: data['assessment']['type']
- subType: data['assessment']['subType']
- remark: data['assessment']['remark']
- mark: data['assessment']['mark']
- data['assessment']['images']
devices marks
- data['riskAssessment']['marks']['0']['7']
- data['riskAssessment']['marks']['0']['6']
- data['riskAssessment']['marks']['0']['5']
- data['riskAssessment']['marks']['0']['4']
- data['riskAssessment']['marks']['0']['3']
- data['riskAssessment']['marks']['0']['2']
- data['riskAssessment']['marks']['0']['1']
installations marks
- data['riskAssessment']['marks']['1']['7']
- data['riskAssessment']['marks']['1']['6']
- data['riskAssessment']['marks']['1']['5']
- data['riskAssessment']['marks']['1']['4']
- data['riskAssessment']['marks']['1']['3']
- data['riskAssessment']['marks']['1']['2']
- data['riskAssessment']['marks']['1']['1']
objects marks
- data['riskAssessment']['marks']['2']['7']
- data['riskAssessment']['marks']['2']['6']
- data['riskAssessment']['marks']['2']['5']
- data['riskAssessment']['marks']['2']['4']
- data['riskAssessment']['marks']['2']['3']
- data['riskAssessment']['marks']['2']['2']
- data['riskAssessment']['marks']['2']['1']
Loops
Loops add processing time to the PDF creation.
You have to Loop thru arrays. See section Protocol variables for types.
Node Loops
There are two types of node Loops:
nodes
Loops over nodes that haven been testet.
loop="n of data['nodes']"
Note: If a timeframe is selected only nodes that have been tested in this
timeframe are Looped
allNodes
Loops over all nodes
loop="n of data['allNodes']"
Images
Example:
<div loop="n of data['allNodes']">
<div loop="img of data['n']['node']['images']">
<img style="width: 200px;" src="{{data['img']}}" />
</div>
</div>
How to use
if
Is true if a variable is not 0
if="vars['var1'] != 0
This is only true if var1 is not equal to 0 and var2 is 0
if="vars['var1'] != 0 && vars['var2] == 0
This is true if var1 is equal to 5 or var2 is equal to false
if="vars['var1'] == 5 || vars['var2] == 'false'
or
if="vars['var1'] == 5 || vars['var2] == false
For Strings vars['var1'] != 'Mangel'
Varibles
Variables are declared inside brackets like this
{{data["customer"]["name"]}}
or
{{data['customer']['301']}}
You can make your create your own Varibles for example inside a div:
<div type="int" expr="vars['counterFDev'] = 0"></div>
Types
If you want to save for example this 3.764930242 number than you have to choose how accurate you want it
to be.
Note: It does not round the number it only cuts number off.
type=”int” will result in 3 type=”double” will result in 3.764930242 type=”double-2” will result in 3.76
type=”double-3” will result in 3.764
Count
You can use variables to count someting:
<div type="int" expr="vars['nodesCount'] = vars['nodesCount'] +
1"></div>
To output the variable use {{vars['nodesCount']}}
Calculate
With varibles you can calculate for example percentages
<div type="double-2" expr="vars['var1'] = (vars['var2'] * 100) /
vars['var3']"></div>
CSS
Tables
To prevent Table cells from breaking over 2 pages
break-inside: avoid;
Makes 2 Borders into one
border-collapse: collapse;
IOS
In IOS it is nessary to add print-color-adjust: exact
in the style(for example in the html
style) to have colors. This does not apply to font color.
Protocol variables
currentUser (Map)
- id (String)
- companyId (String)
- username (String)
- permissions (String)
- image (String)
- modified (String)
- modifiedBy (String)
- created (String)
- createdBy (String)
- isDeleted (String)
- 200 (String)
- 202 (String)
- 203 (String)
- 204 (String)
- 205 (String)
currentCompany (Map)
- id (String)
- name (String)
- modified (String)
- modifiedBy (String)
- created (String)
- createdBy (String)
- isDeleted (String)
- 100 (String)
- 101 (String)
- 102 (String)
- 103 (String)
- 104 (String)
- 105 (String)
- 106 (String)
- 107 (String)
- logo (String)
group (Map)
- id (String),
- customerId (String),
- locationHeaderId (String),
- groupType (String),
- customId (String),
- name (String),
- image (String),
- modified (String),
- modifiedBy (String),
- created (String),
- createdBy (String),
- isDeleted (String),
- syncTimestamp (String),
- 400 (String),
customer (Map)
- id (String),
- customId (String),
- name (String),
- image (String),
- modified (String),
- modifiedBy (String),
- created (String),
- createdBy (String),
- isDeleted (String),
- syncTimestamp (String),
- 300 (String),
- 301 (String),
- 302 (String),
- 303 (String),
currentTime (Map)
- YYYY (String),
- MM (String),
- M (String),
- DD (String),
- D (String),
- hh (String),
- h (String),
- mm (String),
- m (String),
- ss (String),
- s (String),
- id (String),
- customerId (String),
- name (String),
- image (String),
- modified (String),
- modifiedBy (String),
- created (String),
- createdBy (String),
- isDeleted (String),
- syncTimestamp (String),
nodes (Array)
-
node (Map)
- id (String),
- customerId (String),
- groupId (String),
- parentId (String),
- prevId (String),
- nextId (String),
- linkId (String),
- nodeType (String),
- procedureId (String),
- protocolId (String),
- testInterval (String),
- customId (String),
- name (String),
- lastTestTimestamp (String),
- lastTestResult (String),
- lastTestBy (String),
- modified (String),
- modifiedBy (String),
- created (String),
- createdBy (String),
- isDeleted (String),
- isDeactivated (String),
- syncTimestamp (String),
-
options (Array)
- id (String),
- name (String),
- value (String),
-
data (Map)
- cableLenght (String),
- crossSection (String),
- rcdType (String),
- rcdIDN (String),
- isolatedParts (String),
- peParts (String),
- insulationTest (String),
- prcds (String),
- selv (String),
- pelv (String),
- elvTest (String),
- overcurrentProtection (String),
- connection (String),
- threePhaseTestItem (String),
- parentName (String),
- parentType (String),
- parentTypeString (String),
- path (String),
- images (Array) [
- ],
- typeString (String),
-
locationNode (Map)
-
sessions (Array)
-
session (Map)
- id (String),
- customerId (String),
- groupId (String),
- nodeId (String),
- orderNumber (String),
- remark (String),
- mStatus (String),
- modified (String),
- modifiedBy (String),
- created (String),
- createdBy (String),
- isDeleted (String),
- syncTimestamp (String),
-
measurementTime (Map)
- YYYY (String),
- MM (String),
- M (String),
- DD (String),
- D (String),
- hh (String),
- h (String),
- mm (String),
- m (String),
- ss (String),
- s (String),
-
images (Array) -testers (Array)
- tester (String),
- serial (String),
- technicians (Array)
- id (String),
- name (String),
-
measurements (Array)
- sessionId (String),
- step (String),
- customerId (String),
- groupId (String),
- nodeId (String),
- tag (String),
- firmwareVersion (String),
- softwareVersion (String),
- tester (String),
- testerSerial (String),
- deviceSerial (String),
- procedureId (String),
- measurementId (String),
- flags (String),
- mStatus (String),
- error (String),
- remark (String),
- parameter1 (String),
- parameter2 (String),
- parameter3 (String),
- parameter4 (String),
- modified (String),
- modifiedBy (String),
- created (String),
- createdBy (String),
- isDeleted (String),
- syncTimestamp (String),
- images (Array)
- name (String),
- isVisual (String),
- description (String),
- result (String),
-
tagMeasurements (Map)
-
tag (Array)
- sessionId (String),
- step (String),
- customerId (String),
- groupId (String),
- nodeId (String),
- tag (String),
- firmwareVersion (String),
- softwareVersion (String),
- tester (String),
- testerSerial (String),
- deviceSerial (String),
- procedureId (String),
- measurementId (String),
- flags (String),
- mStatus (String),
- error (String),
- remark (String),
- parameter1 (String),
- parameter2 (String),
- parameter3 (String),
- parameter4 (String),
- modified (String),
- modifiedBy (String),
- created (String),
- createdBy (String),
- isDeleted (String),
- syncTimestamp (String),
- images (Array)
- name (String),
- parameters (Array)
-
results (Array)
- sessionId (String),
- step (String),
- customerId (String),
- groupId (String),
- nodeId (String),
- resultNumber (String),
- measurementId (String),
- mStatus (String),
- resultType (String),
- minVal (String),
- minExp (String),
- min (String),
- maxVal (String),
- maxExp (String),
- max (String),
- resultVal (String),
- resultExp (String),
- result (String),
- firstVal (String),
- firstExp (String),
- firstRes (String),
- modified (String),
- modifiedBy (String),
- created (String),
- createdBy (String),
- isDeleted (String),
- syncTimestamp (String),
- resultTypeTranslated (String),
- isVisual (String),
- status (String),
- procedures (Array)
-
visuals (Array)
- sessionId (String),
- step (String),
- customerId (String),
- groupId (String),
- nodeId (String),
- tag (String),
- firmwareVersion (String),
- softwareVersion (String),
- tester (String),
- testerSerial (String),
- deviceSerial (String),
- procedureId (String),
- measurementId (String),
- flags (String),
- mStatus (String),
- error (String),
- remark (String),
- parameter1 (String),
- parameter2 (String),
- parameter3 (String),
- parameter4 (String),
- modified (String),
- modifiedBy (String),
- created (String),
- createdBy (String),
- isDeleted (String),
- syncTimestamp (String),
- images (Array)
- name (String),
- isVisual (String),
- description (String),
- result (String),
-
onlyMeasurements (Array)
- sessionId (String),
- step (String),
- customerId (String),
- groupId (String),
- nodeId (String),
- tag (String),
- firmwareVersion (String),
- softwareVersion (String),
- tester (String),
- testerSerial (String),
- deviceSerial (String),
- procedureId (String),
- measurementId (String),
- flags (String),
- mStatus (String),
- error (String),
- remark (String),
- parameter1 (String),
- parameter2 (String),
- parameter3 (String),
- parameter4 (String),
- modified (String),
- modifiedBy (String),
- created (String),
- createdBy (String),
- isDeleted (String),
- syncTimestamp (String),
- images (Array)
- name (String),
- parameters (Array)
-
results (Array)
- sessionId (String),
- step (String),
- customerId (String),
- groupId (String),
- nodeId (String),
- resultNumber (String),
- measurementId (String),
- mStatus (String),
- resultType (String),
- minVal (String),
- minExp (String),
- min (String),
- maxVal (String),
- maxExp (String),
- max (String),
- resultVal (String),
- resultExp (String),
- result (String),
- firstVal (String),
- firstExp (String),
- firstRes (String),
- modified (String),
- modifiedBy (String),
- created (String),
- createdBy (String),
- isDeleted (String),
- syncTimestamp (String),
- resultTypeTranslated (String),
- isVisual (String),
- status (String),
nextTest (Map)
lastTest (Map)
-
date (Map)
- YYYY (String),
- MM (String),
- M (String),
- DD (String),
- D (String),
- hh (String),
- h (String),
- mm (String),
- m (String),
- ss (String),
- s (String),
status (String),
testers (Array)
- tester (String),
- serial (String),
technicians (Array)
- id (String),
- name (String),
firstTestDate (Map)
- YYYY (String),
- MM (String),
- M (String),
- DD (String),
- D (String),
- hh (String),
- h (String),
- mm (String),
- m (String),
- ss (String),
- s (String),
lastTestDate (Map)
- YYYY (String),
- MM (String),
- M (String),
- DD (String),
- D (String),
- hh (String),
- h (String),
- mm (String),
- m (String),
- ss (String),
- s (String),
nextTestDateDT (Map)
- YYYY (String),
- MM (String),
- M (String),
- DD (String),
- D (String),
- hh (String),
- h (String),
- mm (String),
- m (String),
- ss (String),
- s (String),