nools-extras.js

Nools Extras: Helper variables and functions for Tasks and Targets

Helper variables and functions defined in nools-extras.js can be used by both tasks.js and targets.js.

The following global variables can be used:

VariableDescription
c.contactThe contact’s doc. All contacts have type of either person or place.
c.reportsAn array of all the reports submitted about the contact.
consoleUseful for outputting debugging statements. Should not be used in production code.
UtilsUseful functions across projects are available, and describe in the Utils section.

CHT Applications > Reference > targets.js

Targets: Definition of target widgets calculated and seen in the app

CHT Applications > Reference > tasks.js

Tasks: Definition of tasks shown to app users