Sunday, April 26, 2009

Views & Resultsets

If you have a view and you want to use it within your code, I mean that you want to loop on the view data to display that data, - using IdocScript- you can get a resultset from that view, then loop on that resultset to display its data.

As an example for how to do that, let us assume that we have a view called view1

<$getViewValuesResultSet("
view1", "", "")$>
<$loop SchemaData$>
<option><$dOption$></option>
<$endloop$>

No comments: