PalTblFindAllRows

ISet<SalNumber> PalTblFindAllRows(SalNumber nFlagsOn, SalNumber nFlagsOff)

The method FindAllRows returns a list with context numbers for each row that matches certain flags.
Also available as class method named FindAllRows for all table objects.

Parameters

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.

Returns

The return value is a list of context numbers for each row that matches certain flags, otherwise null.

Example

ISet<SalNumber> selectedRows = Ifs.Fnd.ApplicationForms.Int.PalTbl.FindAllRows(this, Sys.ROW_Selected, 0);
foreach (SalNumber row in selectedRows)
{
   this.SetContextRow(row);
   DbPLSQLBlock(sStmt);
}

Comments

This function might be useful when you want to run a certain action on each selected row by getting the list, setting the context for each one and run the certain action.