Table of Content
HAL Forum
procedure InsertRow (
integer WinNr,integer Position,integer RowType)
Description:
Inserts an empty row into the matrix of specified record view window (CGview).
Parameters:
WinNr Number of the window with a record that has a matrix
Position The position for the new row (starting from 0)
RowType The type of the row (to determine the visual and semantic meaning of the row in the matrix). The matrix field that holds the type is determined by a window definition funciton MatTypedRow
global
updating procedure OnApplicationStartup() 
begin
  integer wn;
  record IVVc IVr;
  
  SetCompany(1,true);
  LoopMain(IVr,1,true);
  wn = OpenWindow("IVDclass",0,0,"","",IVr);
  // Downpayment row will be added to the beginning and Hidden row to the end of the invoice.
  InsertRow(wn,0,kInvoiceRowTypeDownpayment);
  InsertRow(wn,MatRowCnt(IVr)+1,kInvoiceRowTypeHidden);

  return;
end;
Related topics:
««