MACROMEDIA CONTRIBUTE 3-DEPLOYING CONTRIBUTE Guida Utente Pagina 69

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 142
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 68
Database Query
Components User's Guide
69
The
$node.column("
column name
")
macro is a placeholder for the value of the column
identified by the
column name
attribute. For example, the following database records
section will place the values for 4 columns into separate table cells:
<tr><td>$node.column("Name")</td>
<td>$node.column("Position")</td>
<td>$node.column("Phone")</td>
<td>$node.column("Email")</td></tr>
Advanced Query Results Formatting
By default, all HTML that is defined in the body of the Database Query component (with
the exception of the prelog and prolog) is repeated for each row that is returned by the
query. For example, if the body of the component consists simply of:
<li>$node.column("Name")
The value of the
Name
column for each row in the result set will be formatted as a list item
(
<li>
).
However, you can also define unique formatting for different rows with the following tags:
<nexus:next>
Indicates the ending point for the formatting of a row, and the starting
point of formatting for the next row. This allows you to define a pattern of unique
HTML formats for sets of rows, or for each row. For example,
<nexus:next>
<tr>
<td>$node.column("Name")</td>
<nexus:next>
<td /jointfilesconvert/339554/bgcolor="#D3D3D3">$node.column("Name")</td>
</tr>
Will retrieve and display the value of the
Name
column for two consecutive rows, each
with unique formatting:
This formatting will repeat for each pair of rows that is returned by the query. For
example, if six rows are returned, the table might look like:
<nexus:exit>
Indicates that no preceding row display will be repeated. For example,
<nexus:next>
<tr>
<td>$node.column("Name")</td>
<nexus:next>
<td /jointfilesconvert/339554/bgcolor="#D3D3D3">$node.column("Name")</td>
</tr>
<nexus:exit>
Limits the display to two rows.
Vedere la pagina 68
1 2 ... 64 65 66 67 68 69 70 71 72 73 74 ... 141 142

Commenti su questo manuale

Nessun commento