Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Using report view – PB Docs 2021 – PowerBuilder Library

Using report view – PB Docs 2021

Using report view

ListView report view requires more information than the large
icon, small icon, and list view. To enable report view in a ListView
control, you must write a script that establishes columns with the
AddColumn and SetColumn functions, and then populate the columns using
the SetItem function.

Populating columns

Use AddColumn to create columns in a ListView. When you use the
AddColumn function, you specify the:

  • Column label

    The name that will display in the column header

  • Column alignment

    Whether the text will be left-aligned, right-aligned, or
    centered

  • Column size

    The width of the column in PowerBuilder units

This example creates three columns in a ListView:

Setting columns

Use SetColumn to set the column number, name, alignment, and
size:

Setting column items

Use SetItem to populate the columns of a ListView:

For more information about adding columns to a ListView control,
see the section called “AddColumn” in PowerScript Reference.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x