D
D
dimainc2019-03-15 09:24:05
XML
dimainc, 2019-03-15 09:24:05

How to dump a variable in SP XML environment?

Hello.
There is a rather old project (WebTutor).
The documentation describes that the pre-executable code is entered in the SP XML environment and JavaScript syntax. I started to google the SP XML documentation , I didn’t find anything similar by analogy with var_dump / print_r, as for example in PHP.
Template files have sections of code wrapped in <% code... %>
For example:

<%
if ( ! curDoc.attributes.no_disp_childs && ! curDoc.attributes.left_disp_childs ) {
  sub_docs = XQuery( 'for $elem in documents where $elem/parent_document_id = ' + curDocID + ' order by $elem/position return $elem' );
            
  if ( ArrayOptFirstElem( sub_docs ) != undefined ) {
    counter = 0;
    for ( _sub_doc in sub_docs ) {
     ........
%>

How is it possible to solve this issue?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question