Ignore:
Timestamp:
Jun 16, 2011, 10:32:01 AM (13 years ago)
Author:
george
Message:
  • Added: Item selection form for TypeRelationOne.
  • Modified: Primary keys have to have their property record for each object.
  • Added: Object propery havet to be initialized with Editable flag.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UItemView.pas

    r17 r21  
    174174
    175175procedure TItemViewForm.LoadSubList;
    176 var
    177   NewColumn: TListColumn;
    178   I: Integer;
    179176begin
    180177  //SelectedObjectId := 0;
     
    186183    Report.Load(SubListObject, '`' + PropertyName + '`=' + IntToStr(TabObjectList[TabControl1.TabIndex]));
    187184
    188     Columns.Clear;
    189     for I := 0 to Report.Columns.Count - 1 do
    190     if not TReportColumn(Report.Columns[I]).VirtualItem then begin
    191       NewColumn := Columns.Add;
    192       NewColumn.Caption := TReportColumn(Report.Columns[I]).Caption;
    193     end;
     185    Report.FillListColumns(Columns);
    194186    Items.Count := Report.Count;
    195187    Refresh;
Note: See TracChangeset for help on using the changeset viewer.