Button handy |
---|
blank | true |
---|
color | #0052CC |
---|
name | Send Feedback |
---|
link | https://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=BA_getSingleValue+-+15485150 |
---|
width | auto |
---|
|
The use of this routine requires the Power Actions add-on be installed and licensed.
Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | BA_getSingleValue(argv, label) | Package | poweraction | Alias | | Pkg Usage | getSingleValue(argv, label) | |
Description
Excerpt |
---|
|
Gets the value entered or the selected option for the given field label. |
Gets the value entered or the selected option for the given field label.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
argv | String [] | Yes | The argv variable (predefined variable). | label | String | Yes | The label of the text/text area/select list/radio group field. | |
Return Type
String
For a checkbox it will return "checked" if the checkbox was selected or an empty string if not.
Example
For any field that may contain only a single string type value we may use the BA_getSingleValue routine. For the following script
Code Block |
---|
BA_createInput("Enter keyword", "demo", false); |
We may obtain the field's value as in the next code sample:
Code Block |
---|
string res = BA_getSingleValue(argv, "Enter keyword");
//res = demo |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "pa_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|