检查<pega:forEach name="YourPageListPage.PageList">
标签。
我曾经用它在 HTML 中为Pagelist
类型属性创建表格。
下面的示例可能会引导您找到一个方向。
例子:
<table border="1">
<pega:forEach name="YourPageListPage.PageList"> // YourPageListPage.PageList is Page in which you have 3000 rows
<tr>
<TD>
<pega:reference name="$THIS.COLUMN1"/> // --> COLUMN1 is the property name inside pagelist
</TD>
<TD>
<pega:reference name="$THIS.COLUMN2"/> // --> COLUMN2 is the property name inside pagelist
</TD>
</tr>
</pega:forEach>
</table>
在 JavaScript 中读取任何剪贴板页面的另一种方法..
<%
ClipboardPage dataPage= tools.findPage("D_DatapageName");// if tools keyword is unrecognized then add PublicAPI tools = ThreadContainer.get().getPublicAPI(); above this line.
//D_DatapageName --> your data page name. You can give any Clipbord page here
ClipboardProperty pageListProperty= dataPage.getProperty("PageListProperty");
// PageListProperty will be list property in your DataPage..for example pxResults in case if DataPage is of class Code-Pega-List
//now if you want to iterate on this pageListProperty then use below method
Iterator iterator = pageListProperty.iterator();
// For eg. iterate over pxResults
while(iterator.hasNext()){
ClipboardProperty pageProperty= (ClipboardProperty)iterator.next();
// PageProperty can be of type Page or just a single property
// But we need only the pages, so add below condition
if(pageProperty.getMode()==ImmutablePropertyInfo.MODE_PAGE){
Iterator iterator2 = pageProperty.iterator();
// Iterate on all properties of single page (pxResults(1))
while(iterator2.hasNext()){
ClipboardProperty property= (ClipboardProperty)iterator2.next();
String propertyLabel = property.getName(); // this will return the name of the property. For example pyNote
String propertyValue = property.getStringValue(); // this will return the value inside property.
}
}
}
%>