Hi Snork,
willkommen im Study-Board. Wünsche dir hier viel Spaß und eine gute Zeit. Hau' rein!
Guten Tag Ihr Studies
ich nenne mich snork, bin 24, m und studiere Wirtschaftsinformatik an der BA in Karlsruhe.
Habe in der Assistentenprüfung souverän mit 4.0 abgeschlossen
und bin nun im 4ten Praxissemester in meiner Lieblingsfirma GHS
Hobbiemässig steh ich auf Motorrad fahrn,
spiele Klavier und Gitarre,
ein Stück von mir
und designe liebend gern Seiten für s www.
NETswap - der online Tausch
mynetfriends - praktisch für Studies und Webdesigner
die liebe Seite
ansonsten bin ich pflegeleicht, schlecht in der schule :P und verdammt wild auf emails -> snorkmails@gmx.de also ... schreibt mir (vor allem die meedlz bitte)
also ... denn ... man sieht sich![]()
Hi Snork,
willkommen im Study-Board. Wünsche dir hier viel Spaß und eine gute Zeit. Hau' rein!
I don't always know what I'm talking about but I know I'm right!E-Mail: markus at study-board.comSkype und MSN auf Anfrage
thx tekk
Hi,
wünsch dir auch viel spaß hier.
Bitte achte auch auf die Board Regeln.
http://www.study-board.de/cmsa3.html Pkt. 1.11
Es spricht ja nichts dagegen mal nen Link zu posten nur muss man das ja nicht gleich übertreiben!!
MfG
Jens![]()
oki sorry ... wollt mich ja nur vorstellen :P
Hallo ihr alle, SEHR DRINGEND!!!!
wer kann mir bitte schnell helfen?? Bitte helft mir... WER KANN DAS???????
LG
gebe euch meine private e-mail manowhe@web.de oder manowhe@yahoo.de
<h3>Transaction Reports</h3>--------------------------------------------This is where my problem is, how I get the select query statement to work in my purchase_report page to get the report from my Database----
<form action="purchase_report.cfm" method="post">
StartYear
<Select name="StartYear" size="1">
<option value="0" selected>All</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
</select>
<select name="StartMonth" size="1">
<cfloop index="idx" from="1" to="12"><cfoutput><option value="#idx#">#MonthAsString(idx)#</option></cfoutput></cfloop>
</select>
<select name="txtStartDay" size="1">
<cfloop index="idx" from="1" to="31"><cfoutput><option value="#idx#">#idx#</option></cfoutput></cfloop>
</select>
EndYear:
<select name="EndYear" size="1">
<option value="0" selected>All</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
</select>
EndMonth
<select name="EndMonth" size="1">
<cfloop index="idx" from="1" to="12"><cfoutput><option value="#idx#">#MonthAsString(idx)#</option></cfoutput></cfloop>
</select>
<select name="txtEndDay" size="1">
<cfloop index="idx" from="1" to="31"><cfoutput><option value="#idx#">#idx#</option></cfoutput></cfloop>
</select>
Create Transaction Report 
<select name="customers" size="1">
<option value="0">Select Supplier</option>
<cfoutput query="Getcustomers"><option value="#Getcustomers.customersCode#">#qryGetcustom ers.customersName#</option></cfoutput>
</select>
<input type="submit" name="btnR" value="Go" />
</form>
</body>
</html>
Action Page
<!---Transaction start here--->--------------------------------The coding starts here, I really don't now what I'm doing wrong, I have no idea how to get a report with a date selection from the admin form--
<cftransaction action="begin">
<!--- get list of Purchase Order --->
<cfquery name="Getcustomers" datasource="report">
SELECT PurchaseOrderID,SupplierName,PlannedDelivery,Purch aseDate,Description,PurchaseLineID,COUNT(Quantity) AS Count_Quantity
From Suppliers, PurchaseOrders, PurchaseLines
Where PurchaseOrderIDfk = PurchaseLineID
AND (PurchaseDate BETWEEN '#FORM.StartYear#' AND '#FORM.EndYear#')
AND (SupplierName ='#FORM.customers#')
GROUP BY PurchaseOrderIDfk
ORDER BY PurchaseDate
</cfquery>
</cftransaction>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Purchase Order</title>
<link rel="STYLESHEET" type="text/css" href="abpans.css" />
</head>
<body>
<cfif qryGetSuppliers.RecordCount IS 0>
<h3>No matches found</h3>
<cfelse>
<h3>Guest Search Result</h3>
<ul>
<cfoutput query="qryGetSuppliers">
<li>
<b>Purchase ID:</b> #PurchaseOrderID#</li>
<li><b>Supplier Name:</b> #SupplierName#</li>
<li><b>Planned Delivery:</b> #PlannedDelivery#</li>
<li><b>Description:</b> #Description#</li>
<li><b>Quantity Count:</b> #Count_Quantity#</li>
<li><b>Purchase Date:</b> #PurchaseDate#</li>
</cfoutput>
</ul>
</cfif>
</div>
</body>
</html>
Danke
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
Lesezeichen