Progress
ADM 2 Reference
dataAvailable (query.p)
dataAvailable is an event procedure that generates a dependent query dynamically based on the ForeignFields property. This event occurs when a data-source publishes
“
dataAvailable”
because it has been repositioned to a different row in its query, and a dependent object needs to react.Parameters:INPUT pcRelative AS CHARACTER
A flag describing the newly available record. Valid values are:
“
SAME”
— The current record is being resent because it has been updated. This procedure ignores this value.“
VALUE–CHANGED”
—A target SmartDataObject has changed its query position. This procedure needs to set the QueryPosition property then change pcRelative to “DIFFERENT” before passing it along to other target procedures so as to appear as if the change occurred in this procedure.“
DIFFERENT”
—The RowObject record has changed“
FIRST”
,“
NEXT”
,“
PREV”
,“
LAST”
—Treated the same as“
DIFFERENT”
in this version of dataAvailable.Returns: Nothing (procedure)Notes: This is a special version of DataAvailable for SmartDataObjects with a dependency on another SmartDataObject. The code is different from that for a Viewer. If there are no ForeignFields, then it is being run because of a reposition in one of its targets (a SmartDataBrowser, normally), in which case it just passes on the event to other targets.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |