Versions Compared

Key

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

This routine is available starting with

  • Power Scripts 2.5.2 (server)
  • SIL Engine™ (former katl-commons) 2.5.3
    Info
    titleAvailability
    Table plus
    applyColStyleToCelltrue
    heading0
    columnTypess,s,s,s
    multiplefalse
    columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
    enableSortingfalse

    Syntax

    lfRestrictSelectOptions(field, options, [triggerChange])

    ...

    Package

    Alias

    Pkg Usage

    Description

    Excerpt
    hiddentrue
    Restricts certain options from the list of options for the field.

    Restricts certain options from the list of options for the field.

    Parameters

    Table plus
    applyColStyleToCelltrue
    columnTypess,s,s,s
    heading0
    multiplefalse
    enableSortingfalse

    Parameter name

    Type

    Required

    Description

    field

    String

    Yes

    Field to restrict options for

    options

    String

    Yes

    List of options to restrict

    triggerChange

    Boolean

    No

    If set to true, it triggers the change event on the field when routine is used.

    ...

    Return Type

    None

    Example

    The following code example restricts Major and Minor from the options of the standard Priority field field.

    Code Block
    lfRestrictSelectOptions("priority", {"Major", "Minor"}); //where field = "priority" and options = "Major" and "Minor"

    If you want to trigger the change event on the field when using using lfRestrictSelectOptions, you can use the optional triggerChange parameter set to "true".

    Code Block
    lfRestrictSelectOptions("customfield_10000", {"option1", "option2"}, true); 
    //where field = "customfield_10000" of type select list, options = "option1" and "option2" and triggerChange = true

    ...

    Filter by label (Content by label)
    showLabelsfalse
    max3525
    showSpacefalsesorttitle
    cqllabel = "lf_routine" and space = currentSpace ( )
    labelsarray_routines