Skip to content

Commit

Permalink
add definition for Utils.getField function (#741)
Browse files Browse the repository at this point in the history
* add definition for Utils.getField function

* update field path to fieldPath
  • Loading branch information
IreneAchola committed Aug 4, 2022
1 parent 0512037 commit fc7952c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions content/en/apps/reference/_partial_utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Utility functions in the Core Framework can make common tasks much easier. These
| `isFirstReportNewer(firstReport, secondReport)` | Returns true if the firstReport was reported before the secondReport. |
| `isDateValid(date)` | Returns true if the given date is a validate JavaScript Date. |
| `now()` | Returns the current Date. |
| `getField(report, fieldPath)` | Returns the value of the specified fieldPath. The fieldPath is a period separated json path. |
| `MS_IN_DAY` | A constant for the number of milliseconds in a day. |

Please open [an issue](https://github.com/medic/cht-core/issues/new) if you'd like other functions included.

0 comments on commit fc7952c

Please sign in to comment.