Versions Compared

Key

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

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=BA_getSingleValue+-+15485150
widthauto

The use of this routine requires the Power Actions add-on be installed and licensed.

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

BA_getSingleValue(argv, label)

Package

poweraction

Alias

Pkg Usage

getSingleValue(argv, label)

Description

Excerpt
hiddentrue
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
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

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)
showLabelsfalse
max25
showSpacefalse
cqllabel = "pa_routine" and space = currentSpace ( )
labelsarray_routines