Screen Script
The screen script enables you to determine if an action requires additional input and to build a form where the user can fill in the necessary data.
Input Types
Power Actions™ provide a variety of input fields to suit your needs.
Category | Input Type | Examples |
---|---|---|
Content | HTML content |
|
Wiki content | ||
No options, single value | Text | |
Text Area | ||
Single Checkbox | ||
Date Picker | ||
Date Time Picker | ||
User Picker | ||
No options, multiple values | File Upload |
|
Multiple options, one selectable value | Select List |
|
Radio Group | ||
Multiple options, multiple selectable values | Multi Select List |
|
Checkbox Group |
Creating the Screen
The input fields are created using a script that contains specially designed routines that create the fields. See the following pages for each routine that can create an input:
Additional Screen Building Routines
In addition to adding controls to the screen, Power Actions™ provide more routines to control the way your screen is displayed. For example, changing the dialog title, the text on the submit button.
See the following pages for each routine that can interact with the screen:
Examples
Example Screen Script
boolean isDisabled = false;
boolean isRequired = true;
string badesc = "This is a description";
//Content
BA_createHtmlContent("<h1>HTML Title Text</h1>");
BA_createWikiContent("h2. Wiki Subtitle - TEST-2 Cool :D");
//No options, single value
BA_createInput("input", "asdf", isDisabled, isRequired, badesc);
BA_createTextArea("ta", "some text", isDisabled, 3, isRequired, badesc);
BA_createSingleCheckbox("cbx", true, isDisabled, isRequired, badesc);
date d = currentDate();
BA_createDatePicker("date", d, isDisabled, isRequired, badesc);
BA_createDateTimePicker("datetime", d, isDisabled, isRequired, badesc);
BA_createUserPicker("userpicker", "admin", isDisabled, isRequired, badesc);
//No options, multiple values
BA_createFileUpload("File Upload", isDisabled, isRequired, badesc);
//Multiple options, one selectable value
BA_createSelectList("Select List", {"a", "b"}, "a", isDisabled, isRequired, badesc);
BA_createRadioGroup("Radio Group", {"a", "b"}, "a", isDisabled, isRequired, badesc);
//Multiple options, multiple selectable values
BA_createMultiSelectList("Multi Select List", {"a", "b", "c"}, {"a", "b"}, isDisabled, isRequired, badesc);
BA_createCheckboxGroup("Checkbox Group", {"a", "b", "c"}, {"a", "b"}, isDisabled, isRequired, badesc);
BA_setActionTitle("Multiple options, multiple selectable values");
BA_setExecuteButtonText("Example");
Contents
See More