Skip to content

OnClick - cWebColumnLink

Triggered when a user clicks on a cWebColumnLink cell

Type: Event

Parameters

Parameter Type Description
sRowID String RowId of the clicked list/grid row
sCellValue String Displayed cell value of the clicked cell

Syntax

Procedure OnClick String sRowID String sCellValue

Description

The OnClick event is sent to the server when the column's pbServerOnClick property is True and the user clicks on one of the column's links.

Sample

This sample shows how to intercept a link click to call another method, which could call another view or modal panel and pass the RowId of the current row.

Object oCustomer_Name is a cWebColumnLink
    Entry_Item Customer.Name
    Set psCaption to "Customer Name"
    Set piWidth to 100

    Procedure OnClick String sRowID String sCellValue
        Send ShowCustomer sRowId
    End_Procedure
End_Object

DeserializeRowId deserializes a RowId string into a RowId type and SerializeRowId serializes a RowId type to a string.

See Also

pbServerOnClick | psClientOnClick