The following routines enable user users to define and configure the starting parameters for the SIL scripts used in this app. A similar set of routines helps leveraging benefits in Power Actions for Jira app:
Routines summary
- gadget_getDateValue — Retrieves the date from a datePicker or dateTimePicker.
- gadget_getMultiUserPickerValue — Retrieves the value from a multi user picker.
- gadget_getMultiValues — Retrieves the value from a multi select list or a checkbox group.
- gadget_getSingleValue — Retrieves the value from a text, text area, select list or radio group.
- gadget_isChecked — Retrieves the value from a checkbox.
...
Example
Let's take a look at some certain usage examples for the above routines.
...
For any field that may contain only a single string type value we may use the gadget_getSingleValue routinegetSingleValue routine.
Code Block |
---|
gadget_createInput("Enter keyword", "demo"); |
...
For an above script that creates a multi select list the selected values may be obtained with the gadget_getMultiValues getMultiValues routine:
Code Block |
---|
string[] res = gadget_getMultiValues(argv, "Multiselect"); //res[0] = a //res[1] = c //res[2] = e |
...
To retrieve the values entered in the field above we need to use the gadget_getMultiUserPicker getMultiUserPicker routine like this:
Code Block |
---|
string[] res = gadget_getMultiUserPickerValue(argv, "MultiUserPicker"); //res[0] = admin //res[1] = demouser |
...