Application Integration (On-Premises) : DSPs and building output templates : Using Dynamic Server Pages (DSPs) : Using the DSP Tags : Extracting Results from a Document : Using the %loop% Tag to Examine the Current Scope
Using the %loop% Tag to Examine the Current Scope
If you use the –struct option without specifying the name of a document, the loop executes once for each element in the current scope. During testing and debugging, you may want to use this technique to examine the variables and their values at a particular point in the DSP. The following example shows the code you would use to display the name of each key and its contents in the current scope.
.
.
.

<P>
%loop -struct%
%value $key% %value%<BR>
%endloop%
</P>
.
.
.
Copyright © 2015- 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback