|
You can create a custom, or "named" query that can be reused by multiple pages. This saves you time since you don’t
have to recreate the same query for each separate use. The concept of a named query is very similar to the concept
of a "database view", except that the named query is defined in Iron Speed Designer and not in the underlying
database to which you may not have access.
Create custom SQL queries you can reuse in Iron Speed Designer.
Named queries are available for use throughout Iron Speed Designer, including:
- The Application Wizard for creating Add Record, Edit Record, Show Record and Show Table pages based on the named query.
- As data sources for several code generation tags, including the FieldValue, Record, and Table tags.
The named queries are defined using a dialog similar to the Add Where Clause dialog in the Properties dialog.
The queries are modified in one central place - the Database folder in Iron Speed Designer - allowing you to
centrally manage and update them.
Selecting fields for a named query.
Each defined query generates an appropriate set of code classes for the queries. These classes will be derived from
the VirtualRecord and VirtualTable classes. The benefit of having queries is that there will be fewer generated
classes related to the virtual tables – and more importantly, their names correspond to the name you provide, making
them more understandable.
When a query is used as a data source for a code generation tag, editing of the data is not permitted. No editing
is allowed regardless of the number of levels below a query. For example, if a query was used for a Table, and a
record is embedded within another record in the table row, no editing is allowed for either of the records because
they were derived from a query.
|