
70
Serena® Collage® 5.1.3
Chapter 3 Design-Time Component Reference
You can use
<nexus:exit>
, in combination with
<nexus:next>
, to define unique
formatting for different rows, or sets of rows. For example,
<nexus:next>
<tr>
<td>$node.column("Name")</td>
<td><i>$node.column("Position")</i></td>
</tr>
<nexus:exit>
<nexus:next>
<tr /jointfilesconvert/339554/bgcolor="#E4E4E4">
<td>$node.column("Name")</td>
<td><i>$node.column("Position")</i></td>
</tr>
<nexus:exit>
<nexus:next>
<tr /jointfilesconvert/339554/bgcolor="#D3D3D3">
<td>$node.column("Name")</td>
<td><i>$node.column("Position")</i></td>
</tr>
<nexus:exit>
Formats each table row, each of which displays the value of the
Name
and
Position
columns for a database row, uniquely:
<nexus:norecords>
Tags can optionally contain alternate text to use if the query
returns no records.
For example, if the Database Query body includes the following:
<nexus:norecords><b><em>This query returned no records.
</em></b></nexus:norecords>
Then the text below would display if the query returned no records:
This query found no assets.
Generating and Linking to Details Pages
You can optionally link the fields from any row in the result set to details pages. Details
pages can display any additional fields from the linked row, which were returned in the
query result set. Collage uses layout files to determine the placement and formatting of
the fields on details pages. For each Database Query component, you can specify one
layout file. Each linked field then uses this layout file to generate a details page.
You must complete the following steps, in order to generate and link to details pages.
1
Create and design the HTML page which you will use as the layout file, and add
placeholders for all of the database fields which the details pages will display.
Commenti su questo manuale