selectRecord for Generic Link Fields

Learn about selectRecord function for Generic Link Fields.

Defining a selectRecord function for a generic link field provides the user with a context menu where he can select the info area from which to pick a record.

  1. Use the infoAreaIds parameter to define the content of the context menu. For further details, see Syntax.
Example: the Link field in the Task info area (A1) (as defined in UPDATE_DEFAULT):
selectRecord({
	from:{
		infoAreaIds:[
			"CM",
			"KM"
		]
	}
});

This defines the following context menu (using the standard table captions for the menu entries' labels):

The user can link a task to records from the Campaign or Ticket info area.

Generic link fields with no selectRecord function defined display a context menu listing all available info areas. Use the RecordSelector.GenericInfoAreas Web Configuration parameter to define a subset of info areas globally. For further details, see RecordSelector.GenericInfoAreas/ RecordSelector.InfoAreasWithGenericLinks.

Note: The context menu only lists info areas that meet the following conditions:* the info area's key is StatNo+SerNo,* the user has read access,* a Search&List configuration exists.