Objects fieldtype

It's a lookup fieldtype, showing values (objects) of the tree or from another datasource (for ex: CB users). The JSON config is as follows:

source from where to get values for the editor:
  • tree: the default value
  • related: use related nodes of a given node. to be implemented
  • field: used for dependent fields when the parentField has a [field] of type _objects.
  • users: users of the systems
  • custom: a custom source, also specify `url` or `fn` cfg.
scope
  • project: start fetching from the parent Project (going up folder by folder up to a Project)
  • parent: parent node. See Conditional Fields
  • self: the node itself
  • nodeId: a specific tree node (an integer)
  • [nodeId1, nodeId2, ...]: children of given nodes will be fetched
  • variable: scope will be set to the Id of the selected object in parent field. See Conditional Fields
field fieldname of the object in the parentField from which to fetch values if source=field I suggest rename to `sourceField`
multiValued true, false. for multiValued fields, use editor=form
descendants true/false. load recursively all children of the node specified in `scope`
autoLoad true/false. Automatically fetches the values when the editor is shown instead of waiting for the user to type values
fields columns to display in the popup grid, example: cfg.fields="title, date"
Notice rename to 'DC', and show the Grid in the popup form
templates ids of templates to display
example: cfg.templates = [67, 85]
Notice to be moved in a global 'filter' property.
types types of tree nodes to display: file, task, event, object, case, folder
example: cfg.types = 'file, object'
Notice to be moved in a global 'filter' property & see Template types
fq an array of SOLR filters
example: cfg.fq = ['template_id: 7 OR 9', 'country_id: 824']
editor
  • combo: a dropdown list
  • form: a popup with a grid for multiValued fields. 'DC' config can be specified for the field, that will be used in the popup
  • tagField: the result si similar to 'form' editor (allows to select multiple values), but showing just the values themselves (no custom columns can be shown, just the title
renderer
  • string: selected values are displayed as a comma separated list
  • listGreenIcons: values are displayed with a green tick icon
  • listObjIcons: use node icons
Copyright (C) KETSE, HURIDOCS