Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 13 additions & 32 deletions CPB/uMainForm.dfm
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
object MainForm: TMainForm
Left = 0
Top = 0
Width = 657
Height = 464
AutoScroll = True
AutoSize = True
Caption = 'DevExpress Example - Filter Data Records in a Report'
ClientHeight = 425
ClientWidth = 641
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Expand All @@ -21,7 +22,7 @@ object MainForm: TMainForm
AutoSize = True
object btnPreview: TcxButton
Left = 12
Top = 24
Top = 12
Width = 557
Height = 25
Caption = 'Preview Report'
Expand All @@ -30,12 +31,12 @@ object MainForm: TMainForm
end
object cxGrid1: TcxGrid
Left = 12
Top = 56
Top = 44
Width = 557
Height = 345
TabOrder = 1
object gvProducts: TcxGridDBTableView
DataController.DataSource = DataSource1
DataController.DataSource = dsProducts
OptionsData.CancelOnExit = False
OptionsData.Deleting = False
OptionsData.DeletingConfirmation = False
Expand Down Expand Up @@ -84,34 +85,27 @@ object MainForm: TMainForm
Index = -1
end
object liPreview: TdxLayoutItem
Parent = dxLayoutGroup2
Parent = dxButtons
CaptionOptions.Text = 'btnViewReport'
CaptionOptions.Visible = False
Control = btnPreview
ControlOptions.OriginalHeight = 25
ControlOptions.OriginalWidth = 193
ControlOptions.OriginalWidth = 557
ControlOptions.ShowBorder = False
Index = 0
end
object dxLayoutLabeledItem1: TdxLayoutLabeledItem
CaptionOptions.Text = 'Label'
Index = -1
end
object dxLayoutGroup1: TdxLayoutGroup
Parent = dxLayoutGroup3
object dxButtons: TdxLayoutGroup
Parent = dxLayoutControl1Group_Root
CaptionOptions.Text = 'New Group'
CaptionOptions.Visible = False
ShowBorder = False
Index = 0
end
object dxLayoutGroup2: TdxLayoutGroup
Parent = dxLayoutGroup3
CaptionOptions.Text = 'New Group'
CaptionOptions.Visible = False
ShowBorder = False
Index = 1
end
object dxLayoutItem1: TdxLayoutItem
object dxGrid: TdxLayoutItem
Parent = dxLayoutControl1Group_Root
AlignHorz = ahLeft
CaptionOptions.Text = 'cxGrid1'
Expand All @@ -122,13 +116,6 @@ object MainForm: TMainForm
ControlOptions.ShowBorder = False
Index = 1
end
object dxLayoutGroup3: TdxLayoutGroup
Parent = dxLayoutControl1Group_Root
CaptionOptions.Text = 'New Group'
ItemIndex = 1
ShowBorder = False
Index = 0
end
end
object dxReport1: TdxReport
ReportName = 'Product List Report'
Expand Down Expand Up @@ -381,15 +368,9 @@ object MainForm: TMainForm
object dxReportDataConnectionManager: TdxBackendDataConnectionManager
Left = 40
Top = 144
object ReportsNWindConnectionString: TdxBackendDatabaseSQLConnection
DisplayName = 'NWindConnectionString'
ConnectionString =
'XpoProvider=SQLite; Data Source=|DataDirectory|\..\..\..\nwind.d' +
'b; Mode=ReadOnly'
end
object NWindMemDataConnection: TdxBackendDataSetJSONConnection
object NWindMemDataConnectionItem1: TdxBackendDataSetCollectionItem
DataSet = mdProducts
DataSource = dsProducts
DataSetAlias = 'Products'
end
end
Expand All @@ -400,7 +381,7 @@ object MainForm: TMainForm
Left = 88
Top = 144
end
object DataSource1: TDataSource
object dsProducts: TDataSource
DataSet = mdProducts
Left = 88
Top = 192
Expand Down
3 changes: 1 addition & 2 deletions CPB/uMainForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,10 @@ class TMainForm : public TForm
TdxLayoutGroup *dxLayoutGroup3;
TdxReport *dxReport1;
TdxBackendDataConnectionManager *dxReportDataConnectionManager;
TdxBackendDatabaseSQLConnection *ReportsNWindConnectionString;
TdxBackendDataSetJSONConnection *NWindMemDataConnection;
TdxBackendDataSetCollectionItem *NWindMemDataConnectionItem1;
TdxSkinController *dxSkinController1;
TDataSource *DataSource1;
TDataSource *dsProducts;
TdxMemData *mdProducts;
TIntegerField *mdProductsProductID;
TWideStringField *mdProductsProductName;
Expand Down
40 changes: 10 additions & 30 deletions Delphi/uMainForm.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ object MainForm: TMainForm
AutoSize = True
object btnPreview: TcxButton
Left = 12
Top = 24
Top = 12
Width = 557
Height = 25
Caption = 'Preview Report'
Expand All @@ -31,12 +31,12 @@ object MainForm: TMainForm
end
object cxGrid1: TcxGrid
Left = 12
Top = 56
Top = 44
Width = 557
Height = 345
TabOrder = 1
object gvProducts: TcxGridDBTableView
DataController.DataSource = DataSource1
DataController.DataSource = dsProducts
OptionsData.CancelOnExit = False
OptionsData.Deleting = False
OptionsData.DeletingConfirmation = False
Expand Down Expand Up @@ -85,34 +85,27 @@ object MainForm: TMainForm
Index = -1
end
object liPreview: TdxLayoutItem
Parent = dxLayoutGroup2
Parent = dxButtons
CaptionOptions.Text = 'btnViewReport'
CaptionOptions.Visible = False
Control = btnPreview
ControlOptions.OriginalHeight = 25
ControlOptions.OriginalWidth = 193
ControlOptions.OriginalWidth = 557
ControlOptions.ShowBorder = False
Index = 0
end
object dxLayoutLabeledItem1: TdxLayoutLabeledItem
CaptionOptions.Text = 'Label'
Index = -1
end
object dxLayoutGroup1: TdxLayoutGroup
Parent = dxLayoutGroup3
object dxButtons: TdxLayoutGroup
Parent = dxLayoutControl1Group_Root
CaptionOptions.Text = 'New Group'
CaptionOptions.Visible = False
ShowBorder = False
Index = 0
end
object dxLayoutGroup2: TdxLayoutGroup
Parent = dxLayoutGroup3
CaptionOptions.Text = 'New Group'
CaptionOptions.Visible = False
ShowBorder = False
Index = 1
end
object dxLayoutItem1: TdxLayoutItem
object dxGrid: TdxLayoutItem
Parent = dxLayoutControl1Group_Root
AlignHorz = ahLeft
CaptionOptions.Text = 'cxGrid1'
Expand All @@ -123,13 +116,6 @@ object MainForm: TMainForm
ControlOptions.ShowBorder = False
Index = 1
end
object dxLayoutGroup3: TdxLayoutGroup
Parent = dxLayoutControl1Group_Root
CaptionOptions.Text = 'New Group'
ItemIndex = 1
ShowBorder = False
Index = 0
end
end
object dxReport1: TdxReport
ReportName = 'Product List Report'
Expand Down Expand Up @@ -382,15 +368,9 @@ object MainForm: TMainForm
object dxReportDataConnectionManager: TdxBackendDataConnectionManager
Left = 40
Top = 144
object ReportsNWindConnectionString: TdxBackendDatabaseSQLConnection
DisplayName = 'NWindConnectionString'
ConnectionString =
'XpoProvider=SQLite; Data Source=|DataDirectory|\..\..\..\nwind.d' +
'b; Mode=ReadOnly'
end
object NWindMemDataConnection: TdxBackendDataSetJSONConnection
object NWindMemDataConnectionItem1: TdxBackendDataSetCollectionItem
DataSet = mdProducts
DataSource = dsProducts
DataSetAlias = 'Products'
end
end
Expand All @@ -401,7 +381,7 @@ object MainForm: TMainForm
Left = 88
Top = 144
end
object DataSource1: TDataSource
object dsProducts: TDataSource
DataSet = mdProducts
Left = 88
Top = 192
Expand Down
9 changes: 3 additions & 6 deletions Delphi/uMainForm.pas
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,17 @@ TMainForm = class(TForm)
dxReport1: TdxReport;
btnPreview: TcxButton;
dxReportDataConnectionManager: TdxBackendDataConnectionManager;
ReportsNWindConnectionString: TdxBackendDatabaseSQLConnection;
dxLayoutControl1Group_Root: TdxLayoutGroup;
dxLayoutControl1: TdxLayoutControl;
liPreview: TdxLayoutItem;
dxSkinController1: TdxSkinController;
dxLayoutLabeledItem1: TdxLayoutLabeledItem;
dxLayoutGroup1: TdxLayoutGroup;
dxLayoutGroup2: TdxLayoutGroup;
dxButtons: TdxLayoutGroup;
gvProducts: TcxGridDBTableView;
cxGrid1Level1: TcxGridLevel;
cxGrid1: TcxGrid;
dxLayoutItem1: TdxLayoutItem;
dxLayoutGroup3: TdxLayoutGroup;
DataSource1: TDataSource;
dxGrid: TdxLayoutItem;
dsProducts: TDataSource;
gvProductsProductID: TcxGridDBColumn;
gvProductsProductName: TcxGridDBColumn;
gvProductsQuantityPerUnit: TcxGridDBColumn;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Click the **Preview Report** button to display a report containing all selected
- [Store report layouts in REPX files at design-time][reports-design-time-store]
- API reference:
- [TdxReport]
- [TdxReport.ReportName] (internal report name)
- [TdxReport.ReportName] (internal report name that is not included in the layout)
- [TdxReport.Layout] (an XML-based layout template that can be stored in a BLOB data field)
- [TdxReport.ShowViewer]
- [TdxMemData] (DevExpress in-memory dataset implementation)
Expand Down
Loading