Loading TOC...

view:get-by-id

view:get-by-id(
   $view-id as xs:unsignedLong
) as element(view:view)

Summary

This function returns the view with the specified id.

Parameters
view-id The id of the view to be returned.

Example

  xquery version "1.0-ml"; 
 
  import module namespace view = "http://marklogic.com/xdmp/view" 
      at "/MarkLogic/views.xqy";

  view:get-by-id(5423110979916486998)
 
  (: Return the view with the specified id. :)  
     

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