
view.getField( schema-name as String, view-name as String, field-name as String ) as element(view.field)
This function returns the element specification for the named field.
| Parameters | |
|---|---|
| schema-name | The name of the schema. |
| view-name | The name of the view. |
| field-name | The name of the field. |
const view = require('/MarkLogic/views');
view.getField('main', 'employees', 'Employee');
// Returns the element specification for the "Employee" field.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.