GetPeriods

This method is used to get period details.

Method Signature:

GetPeriod(controlId, async)

Sample Response:

 [{"Code":"d","text":"Day(s)","CodeType":"PERIODTYPE",
"Description":"Period","PrintOrder":"1","IsActive":"Y","FieldID":"",
"FieldValue":""},{"Code":"m","text":"Month(s)","CodeType":"PERIODTYPE",
"Description":"Period","PrintOrder":"3","IsActive":"Y","FieldID":"","FieldValue":""},
{"Code":"w","text":"Week(s)","CodeType":"PERIODTYPE","Description":"Period","PrintOrder":"2",
"IsActive":"Y","FieldID":"","FieldValue":""},{"Code":"y","text":"Year(s)","CodeType":"PERIODTYPE",
"Description":"Period","PrintOrder":"4","IsActive":"Y","FieldID":"","FieldValue":""}]"

Parameter Details:

Table 1. GetPeriods
Parameter Name Type Mandatory Description
controlId String N

Id of “Select control” to be populated.

If Id is passed, then control will be populated else “Result set” will be returned in JSON format.

async Boolean N

In case it’s False:

Function will be called in synchronous mode. i.e., Current execution will wait for method execution to complete

In case it’s True:

Function will be called asynchronously. Execution will not wait for method execution completion. It will jump to next statement.