Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The following routines are meant to help the user retrieve values from the parameters defined by the input routines. The values obtained are used further by the reporting script.enable users to define and configure the starting parameters for the SIL scripts used in this app. A similar set of routines may be found in another one of our apps, namely the Power Scripts for Jira app. Filter by label (Content by label)showLabelsfalsemax150showSpacefalseexcerptTypesimplecqllabel = "jira_parameter_routine" and ancestor = "21693168"helps leveraging benefits in Power Actions for Jira app:

Routines summary


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 routine. For the following scriptgetSingleValue routine. 

Code Block
gadget_createInput("Enter keyword", "demo");

For the following script above we may obtain the field's value as in the next code sample:

Code Block
string res = gadget_getSingleValue(argv, "Enter keyword");
//res = demo

Example 4

...

Code Block
gadget_createMultiSelectList("Multiselect", {"a", "b", "c", "d", "e"}, {"a", "c", "e"}, true, "This field is required");

 the  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

...

Code Block
gadget_createMultiUserPicker("MultiUserPicker", {"admin", "demouser"}, true, "Required Multi User Picker");

in order to To retrieve the values entered in the field above we need to use the gadget_getMultiUserPicker  routine as followsgetMultiUserPicker routine like this:

Code Block
string[] res = gadget_getMultiUserPickerValue(argv, "MultiUserPicker");
//res[0] = admin
//res[1] = demouser

...