Table of Content
HAL Forum
procedure CalculatedColumn (
integer Hpos,integer Colpos,string ColumnHeader,string FunctionName,boolean Alignment)
Description:
Will create a column to a record list which row values are calculated by a specific user define function. The function has the specified row record as an input and is executed on the server side. Used inside WindowBegin/EndWindow block.
Parameters:
Hpos The position of the column header in the record list
Colpos The position of the column values in the record list
ColumnHeader The name of the column
FunctionName The name of the function that is called on every record row
Alignment alignment of the values in the column. False: left / True: right


event DefineWindows
begin
  WindowBegin("Paste Item",INSClass,CGslist,-);
  SetWRect(210,80,800,298);
  Sizeable(-1,-1,0,0);
  UseView(INVc);
  SpawnClass(INDClass);
  RecordList(4,17,-21,-39);
  RlColKey(4,4,"No.",Code,false,ActCode);
  RlColKey(105,105,"Group",Group,false,ActGroup);
  RlColKey(160,160,"Description",Name,false,ActName);
  RlColKey(-200,-200,"Alt. Code",AlternativeCode,false,AlternativeCode);
  RlCol(-80,-120,"Base Price",UPrice1,true);
  CalculatedColumn(-50,-50,"In Stock","INSClassInStock",true);
  SearchField("Search");
  SpecialMenu("Item Status Report",'I',0,"INStatusINSsm");
  SpecialMenu("Search",'F',1,"INSearchSsm");
  EndWindow;

  return;
end;  
Related topics:
««