SetPageSize method (DataWindows)
Description
Specifies the number of rows to include in a generated Web
page for the Web DataWindow.
Controls
DataWindow type |
Method applies to |
---|---|
Web |
Server component |
Syntax
[Web DataWindow server component]
1 |
string <span>dwcomponent</span>.<span>SetPageSize</span> ( long <span>pagesize</span> ) |
Argument |
Description |
---|---|
dwcomponent |
A reference to a Web DataWindow server |
pagesize |
The number of rows of data to include Sets the value of the HTMLGen.PageSize property for the DataWindow |
Return Values
Returns an empty string if successful and the syntax error
message from the Modify method if it fails.
Usage
This method calls the Modify method of
the server component’s DataStore to set the property. It
is particularly useful for the XML Web DataWindow where you typically
want to limit the number of rows per page.
For information about using the Web DataWindow, see the DataWindow Programmers
Guide.
Examples
This example specifies that the HTML generated by
the webDW component will have 20 rows of data:
1 |
webDW.<span>SetPageSize</span>(20); |