Ask a Question related to Coldfusion Database Access, Design and Development.
-
akola #1
Dynamic Query
I have this query and would like it to display different results. I have to
display records for either today, yesterday, this week, last week, last month
and older. I could do it it several different queries but would rather have
one query and pass a parameter. I need help doing this. Here is the query I
am using.
Thanks.
SELECT a.dealer_id,
b.customerid,
b.CustomerFirstName,
b.CustomerLastName,
a.fullname,
a.status ,
a.loginID ,
b.Assigned_Time,
b.Date_Entered,
b.customertype,
b.vehicleType
FROM logins AS a
INNER JOIN Customers AS b
ON a.loginid = b.loginid
WHERE b.loginid = #client.bus_off_loginid#
and b.status not in ('Deleted','Transfered')
and CONVERT(char(10), b.assigned_time, 101) = '#dateformat(now(),
'mm/dd/yyyy')#'
akola Guest
-
Problem with Dynamic Update Query
I am having a problem with a dynamic query I create a string which will be inserted into the Query tag <cfQuery> Update Table Set #MyVar#... -
Dynamic Query Problem
I am using CF 5 and would like to create a dynamic query on a table based on 4 form variables. For example, if only two out of the 4 form... -
ORA-00923 - Dynamic query in Oracle
Hello all, I am developing an app that can work off both MS-SQL and Oracle databases. The problem has surfaced where I am now testing in Oracle... -
Dynamic Query Filter
I have a query which returns a very long list of my members, and would like to create a select box at the top of the page that allows the user to... -
Dynamic SQL Query
Hello All, My life long persuit of true dynamic queries continues, and as usual, I hit another snag. I am try to create a dynamic search page... -
Jonathan_Quebec #2
Dynamic Query
I would like to create a dynamic query
<cfquery name="update2" datasource="#Variables.DSN#" >#ligne#</cfquery>
the content of #ligne# is syntaxicely correct in SQL but procude a error.
what cann I do ?
Jonathan_Quebec Guest
-
-
MikerRoo #4
Re: Dynamic Query
Also try:
<cfquery name="update2" datasource="#Variables.DSN#" >#PreserveSingleQuotes (ligne)#</cfquery>
MikerRoo Guest
-
fkj #5
Dynamic query
In ColdFusion, as it has its own form tags, is it possible to execute a query
like this:
<cfinput onblur="executethequeryhere"></cfinput>
Or something like this: <cfquery>select * from tablename where fieldname =
'formfield.value'</cfquery>
Thanks a lot,
Phillip
fkj Guest
-
CFDEBUG #6
Re: Dynamic query
1st one don't work since JS is Client side and CF is server side.
2nd one is the standard form submission. so you can do it
Just have the input fields in a form and when you submit it, do the query like
you want to. If you need more details, do a search in these forums or check cf
doc or google. This has been discussed so many times.
CFDEBUG Guest
-
vkunirs #7
Re: Dynamic query
Hi
<cfinput onblur="executethequeryhere"></cfinput>
if you want to execute some function when onblur, then you can write a JS
function which will submit the page to the itself.
then you can have condition whether it is onblur or not....
vkunirs Guest
-
PaulH #8
Re: Dynamic query
if you're using cf7 and flash forms and don't mind writing a bit of action
script, yes you can do want you want clientside via remoting. see
[url]http://www.asfusion.com/blog/entry/populating-a-cfgrid-with-flash-remoting[/url] for
example. even *i* could do it ;-)
PaulH Guest



Reply With Quote

