Skip to content

AllowChangeSelectedRow - cWebList

Tests whether you can move off the selected row to a different row

Type: Function
Return Data Type: Boolean

Parameters

Parameter Type Description
sGotoRow String Indicates how to treat the second parameter:ConstantMeaning
sToRowID String Is the row ID of the row the user is navigating to

Syntax

Function AllowChangeSelectedRow String sGotoRow String sToRowID Returns Boolean

Call Example

Get AllowChangeSelectedRow sGotoRow sToRowID to BooleanVariable

Description

You can augment AllowChangeSelectedRow to perform special tests to allow, or disallow the user to move from the currently selected row to some other row in the grid.

AllowChangeSelectedRow has special predefined behaviour. If you are augmenting this method, you should always perform your customization then 'forward send' this message, for example:

Function AllowChangeSelectedRow String sGotoRow String sToRowID Returns Boolean
    Boolean bAllow
    Move True to bAllow
    // add your logic here..

    If (bAllow) Begin
        Forward Get AllowChangeSelectedRow sGotoRow sToRowID to bAllow
    End

    Function_Return bAllow
End_Function

Return Value

Return True if the row change is allowed, return False if it is disallowed.