Skip to main content

Functions Module

createMandatoryColumn()

Create a column that is required for the system to run normally by calling createNewColumn() function with specified arguments.

padLeadingZero()

Add a leading (front) zero to the string, until the length of the requirement (defined by padLength parameter) is matched.

generateHashCode()

A hash function that's for checking the data correction. Note: Hash Function is a one-way function. A same input will results in same output.

generateId()

Generate a Response ID, based on the timestamp of that response. ID is consisted of YYYYMMXXXX, in which XXXX is a auto increment number.