Evaluating DataWindow expressions in scripts – PB Docs 126

Evaluating DataWindow expressions in scripts

In a script, you use methods, properties, and data expressions
for the DataWindow control to get information about the state of
the DataWindow: the current row, the highlighted row, values of
particular items. You can get other information by accessing properties
of the DataWindow object, either with the Describe function
or with property expressions.

For example, if you need to find the current row in a DataWindow,
use the DataWindow control function, GetRow:

If you need to find the first row on the current page in a
DataWindow, there is no DataWindow control function to return this
information, but you can find it in the appropriate DataWindow object

In some cases, however, information you need might not be
available either by using DataWindow control functions or by accessing
DataWindow object properties.

DataWindow expression functions sometimes provide information
that is available in no other way. These functions, which are available
within a DataWindow expression, are documented in “Using DataWindow expression functions”.

Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x