view.getColumn( schema-name as String, view-name as String, column-name as String ) as element(view.column)
This function returns the named column specification set in the named view in the named schema.
const view = require('/MarkLogic/views'); view.getColumn('main', 'songs', 'title'); // Returns the 'title' column from the 'songs' view in the 'main' schema.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.