Hittest¶
A Windows report integration can be made responsive by implementing the OnReportPreviewClick event. The first argument of this event equals one of the following constants:
| Constant | Description |
|---|---|
C_drNowhere |
Outside sections (e.g. page margin) |
C_drSection |
Clicked on a section but not on an object/field |
C_drObject |
Clicked on an object |
Example¶
Procedure OnReportPreviewClick C_DRHitTests iPos Integer iSectionId String sObject String sValue
Forward Send OnReportPreviewClick iPos iSectionId sObject sValue
Case Begin
Case (iSectionId = 30)
Case Begin
Case (sObject = "Customer.Customer_Number")
Send DrillDownToCustomer sValue
Case Break
Case (sObject = "Customer.City")
Send CreateNewCustomerReport sObject sValue
Case Break
Case (sObject = "Customer.State")
Send CreateNewCustomerReport sObject sValue
Case Break
Case End
Case Break
Case End
End_Procedure