0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Salesforce】apex:repeatの中にapex:repeatを入れてみた。

Last updated at Posted at 2021-10-22

動作確認

下記のように表示できました。

スクリーンショット 2021-10-22 173841.jpg

実現方法

test.cls

public List<List<String>> testList {get; private set;}

this.testList = new List<List<String>>();
List<String> tList = new List<String>();
tList.add('A');
tList.add('B');
tList.add('C');
this.testList.add(tList);
this.testList.add(tList);
this.testList.add(tList);
this.testList.add(tList);
this.testList.add(tList);

test.page

<apex:repeat value="{!testList}" var="tList">
    <!-- var="tList"をvalueに設定する -->
    <apex:repeat value="{!tList}" var="tObj">
        <span>{!tObj}</span>
    </apex:repeat>
</apex:repeat>

PDF→20件ずつデータを表示→印刷とかに使えそうですね。
助かった・・・

参考リンク

apex:repeat | Visualforce 開発者ガイド | Salesforce Developers

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?