MACROMEDIA COLDFUSION MX 61-CFML Informações Técnicas Página 82

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 152
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 81
82 Chapter 7: Lesson 4: Building Dynamic Queries
3.
Verify that the other criteria (departure date and price) are not taken into consideration yet as
follows:
a
Click the Back button in the browser to return to the Trip Search page.
b
In the Departure Date drop-down list box, select Before, enter 1/1/1900 as the date, and
select Smaller Than 0 for the price.
Either of these conditions would produce a results page with no rows.
c
Click the Search button.
The Trip Search Results page should be identical to the one in Step 2, because the code to
build the WHERE clause in the Trip Search Results page does not include departure date
and price.
Exercise 5: Enabling the departure and price criteria on the Trip
Search form
In this exercise, you will modify the Trip Search Results page to add the criteria needed for the
departure and price query.
To enable the departure and price criteria:
1.
Open the gettrips.cfc file.
2.
In the getTripsFromForm method, position the pointer before the cfquery code block.
3.
To build the departureDate WHERE subclause, enter or copy and paste the code in the
following table immediately before the
cfquery code block:
For this database Enter this code
(Windows users)
Microsoft Access
database file
<!--- Build subclause for departureDate --->
<cfif Form.departureValue GT "">
<cfif Form.departureOperator EQ "EQUALS">
<cfset WhereClause = WhereClause & " and departureDate = " &
CreateODBCDate(Form.departureValue)>
<cfelseif Form.departureOperator EQ "AFTER">
<cfset WhereClause = WhereClause & " and departureDate > " &
CreateODBCDate(Form.departureValue)>
<cfelseif Form.departureOperator EQ "BEFORE">
<cfset WhereClause = WhereClause & " and departureDate < " &
CreateODBCDate(Form.departureValue)>
</cfif>
</cfif>
(UNIX users)
PointBase database
file
<!--- Build subclause for departureDate --->
<cfif Form.departureValue GT "">
<cfif Form.departureOperator EQ "EQUALS">
<cfset WhereClause = WhereClause & " and departureDate = Date '" &
Form.departureValue & "'">
<cfelseif Form.departureOperator EQ "AFTER">
<cfset WhereClause = WhereClause & " and departureDate > Date '"
& Form.departureValue & "'">
<cfelseif Form.departureOperator EQ "BEFORE">
<cfset WhereClause = WhereClause & " and departureDate < Date '" &
Form.departureValue & "'">
</cfif>
</cfif>
Vista de página 81
1 2 ... 77 78 79 80 81 82 83 84 85 86 87 ... 151 152

Comentários a estes Manuais

Sem comentários

LOEWE 52434U85 manuels

Manuels d'utilisation et guides de l'utilisateur pour Télévisions LED LOEWE 52434U85.
Nous fournissons des manuels en pdf 1 LOEWE 52434U85 à télécharger gratuitement par type de document : Fiche technique






Plus de produits et de manuels pour Télévisions LED LOEWE

Modèles Type de document
52434T85 Fiche technique   LOEWE Art 32 32" Full HD 3D compatibility Smart TV Wi-Fi Silver, 3 pages
52449O80 Fiche technique   LOEWE Xelos 46, 2 pages
52434O85 Fiche technique   LOEWE Art 32 32" Full HD 3D compatibility Smart TV Wi-Fi Black, 3 pages
50414W47 Fiche technique   LOEWE Art 40 LED 200 DR+, 2 pages
50412O45 Fiche technique   LOEWE Art 32, 2 pages
50424W83 Fiche technique   LOEWE Xelos 40 Media, 2 pages
50422W81 Fiche technique   LOEWE Xelos 32 Media, 2 pages
50412T47 Fiche technique   LOEWE Art 32 LED DR+, 2 pages
69415L80 Fiche technique   LOEWE Individual 40 Compose, 6 pages
50431U48 Fiche technique   LOEWE Individual 46 Compose 3d, 2 pages
50416T47 Fiche technique   LOEWE Art 46 LED 200 DR+, 2 pages
BUNDEL I46-10 Fiche technique   LOEWE Individual 40 Compose 3d, 2 pages
50431B48 Fiche technique   LOEWE Individual 46 Compose 3d, 2 pages
50402T42 Fiche technique   LOEWE Connect 32 LED DR+, 2 pages
50413W47 Fiche technique   LOEWE Art 37 LED Dr+ 37" Full HD Brown, 2 pages
51409T42 Fiche technique   LOEWE Connect 40, 2 pages
50428T80 Fiche technique   LOEWE Connect 26 LED, 1 pages
51414O47 Fiche technique   LOEWE Art 46 3D Dr+, 2 pages
51413W47 Fiche technique   LOEWE Art 40 3D Dr+ 40" Full HD 3D compatibility Brown, 2 pages
51429U81 Fiche technique   LOEWE Xelos 32, 2 pages