Hybrid Integration 10.2 | Integrating On-Premises Applications | 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- 2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release