Skip to content

OnClickActionLink - cWebDRReportViewer

Method Type

Procedure (event)

Arguments

Argument Description
sData The cell data
vDataType The data from the data-drtype attribute

Description

This event is fired if pbServerOnClickActionLink is set to true and can be used to respond to a click on an HTML (div) element containing data to respond to.

The HTML Code input box - or function - in any object determines what gets passed from HTML to the DataFlex code.

The data parameter contains the cell data.

Sample

Object oViewer is a cWebDRReportViewer
    Set phoReport to oReport
    Set pbServerOnClickActionLink to True

    Procedure OnClickActionLink String sObjectData Variant vDataType
        Send ShowEmployee of oSQLEmployeeModalDialog Self sObjectData
    End_Procedure
End_Object

Notes

  • Prior to v8, the 2nd argument was called Hyperlink ID and had to be an integer. When this hyperlink ID was larger than zero, the OCX wrote the HTML code to respond on.