You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/site/xdoc/index.xml
+51Lines changed: 51 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -211,6 +211,57 @@ FROM City
211
211
#repeat( $_parameter.ids $id "," " state_id IN (" ")" )
212
212
@{id}
213
213
#end
214
+
#end
215
+
]]></source>
216
+
</subsection>
217
+
<subsectionname="in">
218
+
<h5>#in( collection var field ) body #end</h5>
219
+
<p>
220
+
Generates a SQL IN clause and breaks it into groups of 1000 items seperated by an OR clause to get around database limitations on the maximum number of items that can be handled.
221
+
It also supports iterative parameter bindings via @{...} syntax.
222
+
</p>
223
+
<table>
224
+
<thead>
225
+
<tr>
226
+
<th>Arg</th>
227
+
<th>Description</th>
228
+
<th>Type</th>
229
+
<th>Default</th>
230
+
<th>Example</th>
231
+
</tr>
232
+
</thead>
233
+
<tbody>
234
+
<tr>
235
+
<td>collection</td>
236
+
<td>List or array to iterate</td>
237
+
<td>List or Array</td>
238
+
<td>Empty List</td>
239
+
<td>$_parameter.selectedIds</td>
240
+
</tr>
241
+
<tr>
242
+
<td>var</td>
243
+
<td>Variable to be used in the loop</td>
244
+
<td>Reference</td>
245
+
<td></td>
246
+
<td>$item</td>
247
+
</tr>
248
+
<tr>
249
+
<td>field</td>
250
+
<td>Field name to be inserted before the IN clause</td>
0 commit comments