Moquiで次のことを行う方法はありますか?
親カテゴリ(または分類など)のリストがあるとします...リクエストカテゴリを取得します:
<entity-find entity-name="mantle.request.RequestCategory" list="parentCategoryList">
<econdition field-name="parentCategoryId" operator="is-null" />
</entity-find>
そして、「parentCategoryList」を使用して、各親カテゴリのサブリストを作成し、画面に個別のフォームリストを表示したいと考えています:
何かのようなもの:
<iterate list="parentCategoryList" entry="thisCategory" >
<entity-find entity-name="mantle.request.RequestCategory" list="categoryList">
<econdition field-name="parentCategoryId" from="thisCategory.requestCategoryId" />
</entity-find>
<!-- I include the following only to give an idea of what I am trying to do.
It is incorrect and incomplete -->
<script>listOfLists.add(categoryList)</script>
</iterate>
次に、その 'listOfLists'を使用して form-list を繰り返し、リスト内の各リストに form-list 'name' と 'list' を順番に指定します。(アクションの外で iterate を使用することはできず、アクション内でフォームを使用することはできません。)
私はこれについて間違った方法で考えているかもしれません。