Loading TOC...

view.getBindings

view.getBindings(
   schema-name as String,
   view-name as String
) as Object

Summary

This function generates a binding map suitable for use with cts:parse from the named view.

Parameters
schema-name The name of the schema.
view-name The name of the view.

Example

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

view.getBindings('main', 'employees');

// Returns binging map from the "employees" view.
   

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