AccountSearchTextField

<< Display table of contents >>

Navigation:  Start > Customize templates > Create templates > All template types > Inputs >

AccountSearchTextField

AccountSearchTextField is an input option for searching for a user or group.A text field with an additional search button is displayed. If the button is pressed a search dialog appears. The search result can be further processed in the form.

 

AccountSearchTextField can only be used in Open Order Templates.

 

Properties

Type

"Type": "AccountSearchTextField"

 

Label

The annotation of the search field displayed in the form.

 

LookupTableId

Identifies the lookup table from which the LDAP attributes from the search can be used in the template.

 

AttributesToLoad

A list of LDAP attributes to load, for example ["sn", "cn"].

 

Example

// Define search input

{

  "Key": "Requester",

  "Value": {

    "Type": "AccountSearchTextField",

    "Label": "Request for",

    "LookupTableId": "RequesterSearchResult",

    "AttributesToLoad": [

      "sn",

      "givenname"

    ]

  }

},

// Use search results

{

  "Key": "given name",

  "Value": {

    "Type": "TextField",

    "Label": "given name",

    "IsEnabled": "false",

    "Constraints": {

      "CreationRule": "<lookup>(RequesterSearchResult,givenname)"

    }

  }

},

{

  "Key": "Surname",

  "Value": {

    "Type": "TextField",

    "Label": "Surname",

    "IsEnabled": "false",

    "Constraints": {

      "CreationRule": "<lookup>(RequesterSearchResult,sn)"

    }

  }

}