Parent reference
This field creates a reference to another record. Useful in hierarchical data structures. This field allows the parent to implement List of Children type fields. In edit mode, this field displays as a black text box with text autocomplete, which means that the user must know at least some of the resume name of the parent they're looking for. Most times a simple drop down of options is preferred, in which case the field Lookup: Data item should be used. In most cases it is functionally identical to this field.
Properties
- Type: Parent/child
- Groupable: No
- Show in lists: Yes
- Searchable: Yes
- Requires configuration: Yes
User interface
Field in show mode
Field in edit mode
Configuration
Parent solution: Specify which entity the parent record belongs to.
Allow changes: If this is not checked, the parent cannot be changed later.
Enable link to master: If this is checked, a button will appear that links directly to the parent. Usually nice to have.
Developer info
- FeltTypeID: 201
- SQL datatype: INT(11)
- Class name: FieldSubformMaster
When writing javascript that reacts to changes in this field type use the following code, instead of onchange.
This snippit wil react as soon as an option is selected instead of when the user exits the field
$("#DATA_SELSKAB").on("autocompleteclose", () => {
setTimout(setTimeout(() => {
// Do stuff
}, 50)
})


