Loading TOC...

MarkLogic 10 Product Documentation
view.getField

view.getField(
   schema-name as String,
   view-name as String,
   field-name as String
) as element(view.field)

Summary

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.

Example

const view = require('/MarkLogic/views');

view.getField('main', 'employees',  'Employee');

// Returns the element specification for the "Employee" field.
   

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.