MACROMEDIA CONTRIBUTE 3-DEPLOYING CONTRIBUTE Betriebsanweisung Seite 60

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 142
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 59
60
Serena® Collage® 5.1.3
Chapter 3 Design-Time Component Reference
Database Query
The Database Query component displays data from records which Collage retrieves from
an external SQL database. You can define and store data source information in Collage.
Collage then uses these definitions to access external databases. You can also store SQL
query files, which Collage runs when it connects to the data sources. The Database
Component can then display the records that the queries return, with HTML formatting
applied to them. Optionally, you can also automatically link fields from each row to detail
pages, which can display all of the fields which are returned to the component.
How the Database Query Component Works
The following table describes the process which Collage follows to retrieve external data
and display it via the Database Query component.
How to Define Data Sources in Collage
Before you can use the Database Query component to retrieve and display database
records, you must define a data source, or external database, in Collage. The data
sources are stored in Collage as
.nds
files. Once you have defined the data source, you
can define structured queries to that data source, which retrieve the data that is displayed
by the Database Query component.
Stage Description
1
Deploy the asset the contains that Database Query component. The
component includes a property which identifies the data source definition
asset (
.nds
) that Collage should use to connect to an external database.
The component also includes a property which either:
Identifies the SQL query file (
.sql
) that Collage should pass to the
database, or
If the query is very simple, includes the entire text of the query.
2
Collage connects to the external database, as defined in the data source
asset which the component specifies.
3
If Collage successfully connects to the database, it passes the query to the
database server.
4
If the database server successfully processes the query, it returns the query
results to Collage.
5
Collage passes the query results (a set of database rows) to the
component.
6
The component displays fields from the returned rows, as defined in the
component HTML. Unique HTML can be defined for each returned row or
even each field, or the component can apply the same HTML to all records
in the result set.
7
Optionally, the data can be linked to detail pages, which can display any of
the fields that are returned for a particular row. Detail pages are generated
from pre-defined contribution layout files. The layout files determine which
fields from the linked row to display, and how each field is formatted.
Seitenansicht 59
1 2 ... 55 56 57 58 59 60 61 62 63 64 65 ... 141 142

Kommentare zu diesen Handbüchern

Keine Kommentare