<jbo:ViewCriteriaIterate>

ビューの検索基準における行基準を反復します。

JSP構文

<jbo:ViewCriteriaIterate
   datasource="datasourceId"
/>

説明

<jbo:ViewCriteriaIterate>データ・タグは、ビュー基準内の各行基準を反復するイテレータを作成します。ViewCriteriaIterateタグに指定するデータソースは、反復を実行するビュー基準オブジェクトを含みます。

指定したビュー基準内のすべての行基準の検索基準を表示する場合、このタグを使用します。ViewCriteriaIteratorタグを使用して基準値を表示する方法の詳細は、<jbo:ShowCriteria>データ・タグを参照してください。

属性

次の例では、バインド先のデータソースに対する既存の検索値を表示するためにビュー基準を反復し、JSP問合せフォームを作成します。


<jbo:ViewCriteriaIterate datasource="dsQuery" ><%
   <table border="0" cellspacing="1" cellpadding="1">
   <jbo:AttributeIterate id="df1" datasource="dsQuery" queriableonly="true">
      <tr><%
      if (index == 0)
      {
%>      <td align="right"><jbo:ShowDefinition definition="name"/></td><%
      }
%>      <td><input type="text" name="row<%= index %>_<jbo:ShowDefinition definition='name'/>" value="<jbo:ShowCriteria />" ></td>
      </tr>
   </jbo:AttributeIterate>
   <tr><td colspan="2" align="right"><a href="<jbo:UrlEvent targeturlparam='targetURL' event='Del Criteria' datasource='dsQuery' extraparameters='<%="index=" + index%>' />">Delete</a></td></tr>
   </table>
   <% index++; %>
</jbo:ViewCriteriaIterate>