SalNumber FindFirstRow(SalNumber nFlagsOn, SalNumber nFlagsOff)
The method FindFirstRow returns context number to first row that matches
certain flags.
Also available as class method named
FindFirstRow for all
table objects.
Name | Description |
---|---|
SalNumber hWndTbl | The handle (or name) of a table window. |
SalNumber nFlagsOn | The flags that the row should have. You can combine Sys.ROW_* flags using the OR (|) operator | SalNumber nFlagsOff | The flags that the row should not have. You can combine Sys.ROW_* flags using the OR (|) operator. |
The return value is the context number to the rows matching the flag criterias, otherwise -1.
SalNumber nFirstRow = Ifs.Fnd.ApplicationForms.Int.PalTblFindFirstRow(this, Sys.ROW_Selected, 0); this.SetContextRow(nFirstRow); SalString messageID = this.GetColumnText(colnMessageId.GetColumnID());
This function might be useful when you typically have a RMB that is enabled only when one row is selected and you want to run a certain action on the selected row.