MACROMEDIA CONTRIBUTE 3-DEPLOYING CONTRIBUTE Betriebsanweisung Seite 65

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 142
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 64
Database Query
Components User's Guide
65
Writing the Database Query Component
A simple Database Query Component is structured as follows:
<nexus:component classid="nexus/components/DBQuery"
code="$nexusComponents"
datasource="
path to data source asset
"
query="
SQL SELECT statement
">
$node.column("Column name")
</nexus:component>
It includes two sections:
1
The opening tag, which specifies the data source and the query to submit to the data
source.
2
The body section, which specifies which columns to display from the result set, and
how to format the results.
The following sections describe in detail how to write each part of the component,
followed by complete examples.
Writing the Database Query Opening Tag
The opening tag specifies the following:
The path to the data source asset (.nds file) which Collage should use to access the
database.
Either the name of the SQL query file (.sql) which Collage should pass to the
database, or a simple inline SQL SELECT statement which Collage should use to query
the database.
Optionally, a maximum number of rows to return.
Optionally, the number of initial rows to skip.
Optionally, the path to a layout file which will be used to generate details pages for
linked fields.
A complete opening tag might look something like:
<nexus:component classid="nexus/components/DBQuery"
code="$nexusComponents"
datasource="/System/Data%20Sources/Company%20Database.nds"
query="SELECT Name, Position, FROM Employee WHERE Salary > 4000">
In this example, you can optionally replace the
query
property with a
queryfile
property, which can then define a path to a SQL query file in Collage. For example:
<nexus:component classid="nexus/components/DBQuery"
code="$nexusComponents"
datasource="/System/Data%20Sources/Company%20Database.nds"
queryfile="/System/Data%20Sources/emp_name_positions.sql">
In this example, the linked query file, emp_name_positions.sql, may contain just the
same simple SELECT statement. You can also store much more complex queries in a
linked file.
Seitenansicht 64
1 2 ... 60 61 62 63 64 65 66 67 68 69 70 ... 141 142

Kommentare zu diesen Handbüchern

Keine Kommentare

MD Building Products 87684 manuály

Uživatelské manuály a uživatelské příručky pro ne MD Building Products 87684.
Poskytujeme 1 manuály pdf MD Building Products 87684 ke stažení zdarma podle typů dokumentů: Instalační příručka


Tabulka s obsahem





Další produkty a příručky pro ne MD Building Products

Modely Typ Dokumentu
03822 Instalační příručka   MD Building Products 03822 Installation Guide, 1 stránky
71480 Instalační příručka   MD Building Products 71480 Installation Guide, 1 stránky
70409 Instalační příručka   MD Building Products 70409 Installation Guide, 1 stránky
73098 Instalační příručka   MD Building Products 73098 Installation Guide, 1 stránky
06635 Manuál s instrukcemi   MD Building Products 06635 Instructions / Assembly, 1 stránky
03772 Instalační příručka   MD Building Products 03772 Installation Guide, 1 stránky
70144 Instalační příručka   MD Building Products 70144 Installation Guide, 1 stránky
69962 Instalační příručka   MD Building Products 69962 Installation Guide, 1 stránky
69609 Instalační příručka   MD Building Products 69609 Installation Guide, 1 stránky
02071 Instalační příručka   MD Building Products 02071 Installation Guide, 1 stránky
50005 Instalační příručka   MD Building Products 50005 Installation Guide, 1 stránky
50144 Instalační příručka   MD Building Products 50144 Installation Guide, 1 stránky
43251 Instalační příručka   MD Building Products 43251 Installation Guide, 1 stránky
69138 Instalační příručka   MD Building Products 69138 Installation Guide, 1 stránky
43250 Instalační příručka   MD Building Products 43250 Installation Guide, 1 stránky
70441 Instalační příručka   MD Building Products 70441 Installation Guide, 1 stránky
02352 Instalační příručka   MD Building Products 02352 Installation Guide, 1 stránky
69791 Instalační příručka   MD Building Products 69791 Installation Guide, 1 stránky
25756 Instalační příručka   MD Building Products 25756 Installation Guide, 1 stránky
03426 Instalační příručka   MD Building Products 03426 Installation Guide, 1 stránky