RE: Paging through records

2005-08-31 Thread Snake
This would actually be more work than what I am doing now, which is 1 query and only output the rows I want. Your method would produce the same results, but with 1 more unneccisary trip to the database. If you already have all the data you need in the first query, there realy is no need to create

RE: Paging through records

2005-08-31 Thread Snake
OK I think I have thought of a way. Don't do the query in CF at all. Just pass your search criteria and the start/end rows to a stored procedure. The SP queries all the records as usual, but then extracts only the rows you wanted using the start/end, and returns this back to CF as the resultset.

RE: Paging through records

2005-08-31 Thread Robertson-Ravo, Neil (RX)
Indeed, you could if you wanted also use SQL Server Paging in the SP to save time and resource. -Original Message- From: Snake [mailto:[EMAIL PROTECTED] Sent: 31 August 2005 09:30 To: CF-Talk Subject: RE: Paging through records OK I think I have thought of a way. Don't do the query

Re: Paging through records

2005-08-31 Thread Ian Buzer
I've just been through this. I found that some of the threads in our forums were nearing 1000 messages, and the query containing all this was about 1.5Mb in size. The only snag with using a stored procedure for this is that it is very difficult to get a RecordCount for the entire query. The

Re: Paging through records

2005-08-31 Thread Ian Buzer
Hi, I've just been through this. I found that some of the threads in our forums were nearing 1000 messages, and the query containing all this was about 1.5Mb in size. The only snag with using a stored procedure for this is that it is very difficult to get a RecordCount for the entire query.

Re: Paging through records

2005-08-31 Thread Ian Buzer
OK, managed to duplicate post and still screw it up! The IN clause of the second query should be: WHERE messageId IN (cfloop from=#startRow# to=#endRow# index=i#ListGetAt(ValueList(getMessageIds.messageId), i)#/cfloop) This is only an illustration - it's probably worth creating the ValueList

Re: URGENT - Flash CFForm and Global functions

2005-08-31 Thread Stephen Moretti
David Brown wrote: Well, I had to do the same thing a month or so back. I needed a flash form for our unitedway project. I could not find any way to do it in AS. That does not mean there is not away, just after spending a few hours on it I thought of a an easier way that would work. I used

cfc memory question

2005-08-31 Thread Protoculture
so if I invoke a cfc method how much of that cfc is loaded into cf's memory? is it the whole cfc (and all other methods) or just the method I am calling? ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble

Re: CFC and Flash Remoting Error

2005-08-31 Thread Doug Kronenberger
Yes, thats correct. The Netconnection Debugger is what's showing me the errors. I've tried not including it in the source, to see if that was some how do'n something funcky. But same results with out it (application stops) just no error reporting. Are you using the Netconnection Debugger? Is

RE: What were they thinking?

2005-08-31 Thread Calvin Ward
I just wish it has a sweet price! Calvin -Original Message- From: Mike Nimer [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 30, 2005 12:36 PM To: CF-Talk Subject: RE: What were they thinking? snip Honestly though if you're tweaking your forms so much that these keywords are becoming

RE: Odd SSL problem

2005-08-31 Thread Mark A Kruger
Rey, There's no way around that message. The major league baseball site (www.mlb.com) has a similar issue when after login for audio they forward your browser to a non-secure link for streamming audio. Presumably they don't want to stream over SSL. When I listen to games I get the same message

RE: Odd SSL problem

2005-08-31 Thread Mark A Kruger
I believe that Cflocation sends a page moved header message on redirect. Not the same as a javascript redirect. -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 30, 2005 7:57 PM To: CF-Talk Subject: RE: Odd SSL problem Ahh so it ONLY happesn with

RE: Odd SSL problem

2005-08-31 Thread Mark A Kruger
whoops... sorry. I got to start looking through all the messages before I jump in... dang it! -Original Message- From: Mark A Kruger [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 31, 2005 7:19 AM To: CF-Talk Subject: RE: Odd SSL problem Rey, There's no way around that message. The

RE: Odd SSL problem

2005-08-31 Thread Robertson-Ravo, Neil (RX)
Maybe they are just lazy and couldn't be bothered setting up a secure stream? -Original Message- From: Mark A Kruger [mailto:[EMAIL PROTECTED] Sent: 31 August 2005 13:24 To: CF-Talk Subject: RE: Odd SSL problem whoops... sorry. I got to start looking through all the messages before I

Re: Paging through records

2005-08-31 Thread S . Isaac Dealey
OK, managed to duplicate post and still screw it up! The IN clause of the second query should be: WHERE messageId IN (cfloop from=#startRow# to=#endRow# index=i#ListGetAt(ValueList(getMessageIds.messageId), i)#/cfloop) This is only an illustration - it's probably worth creating the

Re: cfc memory question

2005-08-31 Thread S . Isaac Dealey
so if I invoke a cfc method how much of that cfc is loaded into cf's memory? is it the whole cfc (and all other methods) or just the method I am calling? Whole thing... CF doesn't know ahead of time what's being used within the method, so it loads up the CFC as though you had instantiated it

Re: Paging through records

2005-08-31 Thread Douglas Knudsen
On 8/30/05, S. Isaac Dealey [EMAIL PROTECTED] wrote: In MS SQL and Access, there is the TOP clause to limit the number of records, but I'm not sure if and how you can set the first one. SELECT BOTTOM 50 * FROM mytable WHERE mytable_id IN (SELECT TOP 100 mytable_id FROM mytable

Re: keeping servers synchronized

2005-08-31 Thread Douglas Knudsen
yes. I was involved in setting up FRS/DFS once. IIRC, one box had to be a DC with the other boxes as members. Or if the boxes live in a domain, that DC could do it too. AD was involved too. Once setup it worked fine and dandy...still working in fact after about 3 years now. DK On

Re: keeping servers synchronized

2005-08-31 Thread Howie Hamlin
Yes, correct. Regards, Howie --- On Tuesday, August 30, 2005 5:36 PM, Russ scribed: --- So you need to set up DFS and have a domain for that, correct? -Original Message- From: Howie Hamlin [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 30, 2005 4:59 PM To: CF-Talk Subject: Re:

RE: Odd SSL problem

2005-08-31 Thread Mark A Kruger
Resource-wise a secure stream is pretty expensive. -Original Message- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 31, 2005 7:19 AM To: CF-Talk Subject: RE: Odd SSL problem Maybe they are just lazy and couldn't be bothered setting up a secure stream?

RE: Odd SSL problem

2005-08-31 Thread Robertson-Ravo, Neil (RX)
But possible - being expensive and not doing it for technological reasons are two different beasts ;-) -Original Message- From: Mark A Kruger [mailto:[EMAIL PROTECTED] Sent: 31 August 2005 14:41 To: CF-Talk Subject: RE: Odd SSL problem Resource-wise a secure stream is pretty

RE: keeping servers synchronized

2005-08-31 Thread Burns, John D
This is a good point, but another thing to consider besides the software is also hardware. If you have the ability to connect the machines using gigabit ethernet cards, that could also substantially help the transfer rates if you are going to have a lot of data moving. Just a suggestion to keep in

OT: Java Question

2005-08-31 Thread Qasim Rasheed
Hi All, Here is my Java class that I am using to debug JDBC PreparedStatement. /* -DebugLevel -*/ package com.javaunderground.jdbc; /** * Title: * Description: * Copyright:Copyright (c) * Company: * @author * @version 1.1 */ public class DebugLevel {

Error Trapping for Webservice

2005-08-31 Thread Kevin Bridges
Hi ... I'm writing a function that calls a webservice. I have the calls to the webservice contained in a try catch block and do not understand why I am seeing an error message. function authenticate( url, username, password ) { returnDoc = ''; try { service = createObject(

Re: Odd SSL problem

2005-08-31 Thread Rey Bango
No prob Mark. I appreciate the help. The code that Michael Dawson provided worked like a charm and allowed me to redirect to the non-SSL homepage easily. Rey... Mark A Kruger wrote: whoops... sorry. I got to start looking through all the messages before I jump in... dang it! -Original

passing arguments to a function

2005-08-31 Thread Abraham Hertzberg III
lets say i have: function (arg1,arg2,arg3) only arg1 is required. arg1 = string arg2 = date arg3 = string i want to pass in function(arg1,,arg3) if i just skipp over arg2 but give it a placeholder, i am getting an error about missing an argument for a named argument. if i pass in

SeeFusion

2005-08-31 Thread Robertson-Ravo, Neil (RX)
I know SeeFusion exists out there but this tool must be calling publically accessible hooks within ColdFusion / JRun, anyone know what these are? Did WebApper have some MM help on the tools creation? I ask, as we may want to build our own tool. This e-mail is from Reed Exhibitions (Oriel

Re: Paging through records

2005-08-31 Thread Claude Schneegans
Your method would produce the same results, but with 1 more unneccisary trip to the database. What counts is not the number of trips to the database, but what you're asking the database to do at every trip. cfoutput query=whatever startfrom=#startfrom# maxrows=#maxrows# This will make CF

Re: passing arguments to a function

2005-08-31 Thread Ryan Guill
you can use either cfinvoke to call the function directly and only specify the cfinvokeargument for the arguments you want, or if you want to keep using the same syntax as above, you can use named arguments: function(arg1=value,arg3=value) On 8/31/05, Abraham Hertzberg III [EMAIL PROTECTED]

Re: passing arguments to a function

2005-08-31 Thread Abraham Hertzberg III
isn't there a way to pass the argument name into the function? On 8/31/05, Abraham Hertzberg III [EMAIL PROTECTED] wrote: lets say i have: function (arg1,arg2,arg3) only arg1 is required. arg1 = string arg2 = date arg3 = string i want to pass in function(arg1,,arg3) if i just

CFContent question ...

2005-08-31 Thread Andy Mcshane
After I have created a document using cfdocument I am using the following code to open the pdf, cfheader name=content-disposition value=attachment; filename=wibble.pdf cfcontent type=aplication/pdf file=#expandpath('MyFilePath')# deletefile=yes reset=no This shows a dialogue box to the user

Re: Paging through records

2005-08-31 Thread Claude Schneegans
cfloop from=#startRow# to=#endRow# index=i#ListGetAt(ValueList(getMessageIds.messageId), i)#/cfloop C'mon, this is just too inefficient: you're converting column messageId of query getMessageIds to a list in the loop! See

RE: CF Test

2005-08-31 Thread Discover Antartica
Unfortunately, I would not be able to disclose the company name. My apologies. Brian Simmons [EMAIL PROTECTED] wrote:Discover Antartica wrote: Here are some questions that a company asked a friend of mine during an interview. I just wanted to see if he answered them correctly. Jochem wrote: So

Re: passing arguments to a function

2005-08-31 Thread Abraham Hertzberg III
aye, just got it from jugg... thanks On 8/31/05, Ryan Guill [EMAIL PROTECTED] wrote: you can use either cfinvoke to call the function directly and only specify the cfinvokeargument for the arguments you want, or if you want to keep using the same syntax as above, you can use named

Printing with Coldfusion

2005-08-31 Thread Rick Root
I have a need for a coldfusion application to generate a document (possibly PDF) and then print it to a file using a printer driver installed on the server, and then perform an operation on that file (email, FTP, etc) The first and last parts are easy, the printing part I'm not so sure...

Re: Printing with Coldfusion

2005-08-31 Thread Jerry Johnson
Do you actually need to print it using a print driver, or just place the file in a queue folder on the printer's RIP? This is how I've typically handled such requests. On 8/31/05, Rick Root [EMAIL PROTECTED] wrote: I have a need for a coldfusion application to generate a document (possibly

RE: Printing with Coldfusion

2005-08-31 Thread Robertson-Ravo, Neil (RX)
You amy also be able to leverage javax.print via the JVM. I haven't tried it but from the docs it looks possible. http://java.sun.com/j2se/1.4.2/docs/api/javax/print/package-summary.html -Original Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED] Sent: 31 August 2005 15:30

Re: Printing with Coldfusion

2005-08-31 Thread Joe Rinehart
If you just need the file, why not skip the printer driver? You can use CFDocument in CF7 to generate a PDF file, then do whatever you want with it (CFMail it, CFFtp it, etc.). -Joe On 8/31/05, Rick Root [EMAIL PROTECTED] wrote: I have a need for a coldfusion application to generate a document

Re: Flash Remote with cfform

2005-08-31 Thread Stephen Moretti
David Brown wrote: But not sure I understand how to convert this from flash to cfform flash action script. It seems that you have to convert the query to an array (did that with the udf they suggest) and then assign the results to a new object in your action script something like var

Re: Printing with Coldfusion

2005-08-31 Thread Rick Root
Joe Rinehart wrote: If you just need the file, why not skip the printer driver? Because we need to generate a PCL file for a specific printer. Rick ~| Logware (www.logware.us): a new and convenient web-based time tracking

RE: Error Trapping for Webservice

2005-08-31 Thread Bobby Hartsfield
Try this... -Original Message- From: Kevin Bridges [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 31, 2005 9:55 AM To: CF-Talk Subject: Error Trapping for Webservice Hi ... I'm writing a function that calls a webservice. I have the calls to the webservice contained in a try catch

resetForm() in Flash CFForm

2005-08-31 Thread Stephen Moretti
I'm submitting the contents of a flash cfform to the database via a cfc and I want to reset the form when I get a positive result back from the cfc. The code below shows the call to the cfc and the call to reset the form. I know that the resetForm() gets called because I put an alert in with

RE: Error Trapping for Webservice

2005-08-31 Thread Bobby Hartsfield
Control enter is a killer... lets try that again... cfscript function authenticate( url, username, password ) { returnDoc = ''; try { service = createObject( webservice, http://example.com/example.asmx?WSDL; ); xmlDoc = XmlParse(

RE: CFC and Flash Remoting Error

2005-08-31 Thread Kevin Aebig
The Netconnection Debugger can always see what's happening. Without seeing your script, it'll be real hard to figure this out... Cheers, Kevin -Original Message- From: Doug Kronenberger [mailto:[EMAIL PROTECTED] Sent: August 31, 2005 5:10 AM To: CF-Talk Subject: Re: CFC and Flash

Re: Printing with Coldfusion

2005-08-31 Thread Rick Root
Robertson-Ravo, Neil (RX) wrote: You amy also be able to leverage javax.print via the JVM. I haven't tried it but from the docs it looks possible. http://java.sun.com/j2se/1.4.2/docs/api/javax/print/package-summary.html I'll give this a whirl. If I can't figure it out we've got a VB

Re: Error Trapping for Webservice

2005-08-31 Thread Kevin Bridges
Ha ... that got it. I'll make sure and place those return lines where they are supposed to be! Thanks Bobby Hartsfield wrote: Control enter is a killer... lets try that again... cfscript function authenticate( url, username, password ) { returnDoc = ''; try {

RE: Error Trapping for Webservice

2005-08-31 Thread Bobby Hartsfield
Yup, catch needs to be the last thing here as well. Also the catch type is Any instead of All Glad you got it going. -Original Message- From: Kevin Bridges [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 31, 2005 11:11 AM To: CF-Talk Subject: Re: Error Trapping for Webservice Ha ...

RE: CFC and Flash Remoting Error

2005-08-31 Thread Mark A Kruger
Kevin, What version of CF? There use to be an error where you needed to add a trainly slash to your flashservices/gateway call - it has to do with the passing of the sessionid. Ben had a blog about it - but I can't seem to find it. Anyway, try: http://10.3.196.31/flashservices/gateway/ (note

Re: Paging through records

2005-08-31 Thread S . Isaac Dealey
In Oracle, there is ROWNUM... Yeah, but that's not how you get a set out of the middle with Oracle, 'cause if you specify a minimum value for rownum you don't get the expected results... well... not by itself... In oracle you use the MINUS clause, which is surprisingly efficient...

Re: Paging through records

2005-08-31 Thread Ian Buzer
C'mon, this is just too inefficient: you're converting column messageId of query getMessageIds to a list in the loop! I did say that Ian ~| Logware (www.logware.us): a new and convenient web-based time tracking

RE: Oracle SQL alternative for YesNoFormat() ?

2005-08-31 Thread Dave.Phillips
Bobby, This doesn't work for me because the values in the database are in a numeric column and stored as 1 or 0. I need the query to return 'yes' or 'no'. The query results are used for a CFINDEX, so the only option I can think of at this point is to build a NEW query and transform those

RE: Paging through records

2005-08-31 Thread Snake
Sorry I don't understand the point in your reply? I already pointed out that this other method does exactly the same thing, but also adding an additional query. We know what my original example does, as that was the whole point in this topic. Russ -Original Message- From: Claude

RE: Oracle SQL alternative for YesNoFormat() ?

2005-08-31 Thread Gaulin, Mark
This should do it (depending on the db)... SELECT CASE WHEN field = 1 THEN 'YES' ELSE 'NO' END AS yesNoField -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 31, 2005 12:23 PM To: CF-Talk Subject: RE: Oracle SQL alternative for YesNoFormat()

RE: SOT: Oracle SQL alternative for YesNoFormat() ?

2005-08-31 Thread Dave.Phillips
Thanks y'all. I think this will work. Dave -Original Message- From: Deanna Schneider [mailto:[EMAIL PROTECTED] Sent: Monday, August 29, 2005 3:31 PM To: CF-Talk Subject: Re: SOT: Oracle SQL alternative for YesNoFormat() ? SELECT CASE WHEN yourColumn = 1 THEN 'yes' ELSE 'no' END as

Re: CFContent question ...

2005-08-31 Thread S . Isaac Dealey
After I have created a document using cfdocument I am using the following code to open the pdf, cfheader name=content-disposition value=attachment; filename=wibble.pdf cfcontent type=aplication/pdf file=#expandpath('MyFilePath')# deletefile=yes reset=no This shows a dialogue box to the

RE: Oracle SQL alternative for YesNoFormat() ?

2005-08-31 Thread Michael Tangorre
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Bobby, This doesn't work for me because the values in the database are in a numeric column and stored as 1 or 0. I need the query to return 'yes' or 'no'. The query results are used for a CFINDEX, so the only option I can think of at

Re: Oracle SQL alternative for YesNoFormat() ?

2005-08-31 Thread Ken Ferguson
select case when column_name = 0 then 'no' else 'yes' end as column_name_yes_no_format --Ferg [EMAIL PROTECTED] wrote: Bobby, This doesn't work for me because the values in the database are in a numeric column and stored as 1 or 0. I need the query to return 'yes' or 'no'. The query

Re: passing arguments to a function

2005-08-31 Thread S . Isaac Dealey
lets say i have: function (arg1,arg2,arg3) only arg1 is required. arg1 = string arg2 = date arg3 = string i want to pass in function(arg1,,arg3) if i just skipp over arg2 but give it a placeholder, i am getting an error about missing an argument for a named argument. if i pass in

Re: SOT: Oracle SQL alternative for YesNoFormat() ?

2005-08-31 Thread Aaron Rouse
Not sure where I got this or if I wrote it, but had this laying around: CREATE OR REPLACE FUNCTION yesnoformat ( arg_integer IN NUMBER ) RETURN VARCHAR2 DETERMINISTIC AS var_character VARCHAR2(3); BEGIN IF arg_integer = 1 THEN return 'Yes'; ELSIF arg_integer = 0 THEN RETURN 'No'; ELSE

RE: Oracle SQL alternative for YesNoFormat() ?

2005-08-31 Thread Matt Osbun
Something like SELECT Decode(column_name,1,'Yes','No') AS column_name FROM table WHERE criteria Will return 'Yes' when column_name is 1 and 'No' when column_name is anything else Matt Osbun Web Developer Health Systems, International -Original Message- From: Michael Tangorre

Re: Paging through records

2005-08-31 Thread Claude Schneegans
I already pointed out that this other method does exactly the same thing, but also adding an additional query. My point is that adding an additional query does not imply that the overall result is less efficient, on the contrary. One may have two small queries that are much faster than one big.

RE: CFContent question ...

2005-08-31 Thread Andy McShane
Thanks for that, at least I won't waste any more time looking :-) -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: 31 August 2005 17:29 To: CF-Talk Subject: Re: CFContent question ... After I have created a document using cfdocument I am using the following

Re: Paging through records

2005-08-31 Thread Douglas Knudsen
On 8/31/05, S. Isaac Dealey [EMAIL PROTECTED] wrote: In Oracle, there is ROWNUM... Yeah, but that's not how you get a set out of the middle with Oracle, 'cause if you specify a minimum value for rownum you don't get the expected results... well... not by itself... In oracle you

RE: Paging through records

2005-08-31 Thread Snake
Not in this scenario. You have to select ALL records to extract or output the ones you want. So my original example was 1. query all the required records 2. output the ones you want The one your saying is better 1. query all the required records 2. query a subset of those records 3. output

RE: CFContent question ...

2005-08-31 Thread S . Isaac Dealey
Welcome. :) I nearly started writing a whole bunch of stuff about how that part is in the browser and you can only access what's exposed in JS (which is pretty limited), browser variations, etc. etc... and then decided it was probably best just to give a concise answer. :) Thanks for that, at

Re: Paging through records

2005-08-31 Thread S . Isaac Dealey
On 8/31/05, S. Isaac Dealey [EMAIL PROTECTED] wrote: In Oracle, there is ROWNUM... Yeah, but that's not how you get a set out of the middle with Oracle, 'cause if you specify a minimum value for rownum you don't get the expected results... well... not by itself... In oracle you

Session variable error

2005-08-31 Thread Buntin, Seth - KATE
I have this: cfif structKeyExists(session,'user') cfif isDefined(session.user.displayname) p class=toptext Logged In: cfoutput#session.user.displayname#/cfoutput input type=button class=logout value=Logout onClick=location.href =

RE: Paging through records

2005-08-31 Thread S . Isaac Dealey
Not in this scenario. You have to select ALL records to extract or output the ones you want. So my original example was 1. query all the required records 2. output the ones you want The one your saying is better 1. query all the required records 2. query a subset of those records 3.

CF_TwoSelectsRelated

2005-08-31 Thread Andy Mcshane
I searched the archives, I have searched Google and I have checked out the original authors site, http://projects.nateweiss.com/nwdc/workcode.htm, but I cannot find anybody who has actually ever got the default1 default2 values working in the CF_TwoSelectsRelated tag. Basically I love this

CFMX and ArcIMS?

2005-08-31 Thread Rebecca Wells
Does anyone here have CFMX7 and ArcIMS installed? I'm trying to install it on a Win2k server with CFMX7 (in non-J2EE mode) IIS 5. ESRI is telling me that we have to purchase JRun 4.0 separately from Macromedia or use TomCat, that it won't work with the version of JRun that gets instaled with

calling a javascript function

2005-08-31 Thread Andrew Grosset
I have a template that calls a javascript function that in turn uses cfajax to call a cfm function as below, it all works perfectly: !--- --- select size=1 id=jobData name=jobData class=form1 onChange=getStartDates(); option value=#jb.jobID##jb.oilcompany#/option /select

Re: CF_TwoSelectsRelated

2005-08-31 Thread Andrew Grosset
I searched the archives, I have searched Google and I have checked out the original authors site, http://projects.nateweiss.com/nwdc/workcode.htm, but I cannot find anybody who has actually ever got the default1 default2 values working in the CF_TwoSelectsRelated tag. Basically I

Re: CF_TwoSelectsRelated

2005-08-31 Thread Andy Mcshane
Thanks, definately worth a look if I can't get this script to work properly. I searched the archives, I have searched Google and I have checked out here? this is not the answer you're looking for but...cfajax enables you to do this: http://www.indiankey.com/cfajax/ Andrew.

Re: URGENT - Flash CFForm and Global functions

2005-08-31 Thread Felipe Fernandes
Stephen, Take a look at this: http://casacarriersantos.porta80.com.br/ click in comprar and look at the flash form at the bottom, all I couldnĀ“t do was to put ',00' in the grid. Is that what yoiu want to do? Felipe On 8/31/05, Stephen Moretti [EMAIL PROTECTED] wrote: David Brown wrote:

RE: Paging through records

2005-08-31 Thread Dave.Phillips
I agree with Isaac. The first query could even be: cfquery name=TotalCount select count(id) as TheCount /cfquery Wouldn't this make the first query even faster as it's not returning x records, it's only returning ONE record and then you can reference TotalCount.TheCount instead of

Re: calling a javascript function

2005-08-31 Thread Andrew Grosset
I have a template that calls a javascript function that in turn uses cfajax to call a cfm function as below, it all works perfectly: Problem solved! - must put head into gear before typing! ~| Logware (www.logware.us): a new

Re: CFMX and ArcIMS?

2005-08-31 Thread Paul Hastings
Rebecca Wells wrote: Does anyone here have CFMX7 and ArcIMS installed? I'm trying to what ver of arcIMS? what kind of cf (enterprise/standard)? we normally do arcIMS w/enterprise cf. for arcIMS 4 the install is dead easy, just point the arcIMS classes at cfinstall/wwwroot/web-inf/classes dir

Hashing Multiple Passwords via Query Loop

2005-08-31 Thread Bob Haroche
We have an Access DB where we need to re-set all passwords to match the user's member number (this is just a temporary change). We want to hash the new passwords. This query works without the hashing: cfquery name=changePassword datasource=#Application.Datasource# UPDATE

RE: Paging through records

2005-08-31 Thread S . Isaac Dealey
Well I think the count() example is sort of outside of the scope of what was being described... The specific question (as I understood it) was whether a pair of queries could be faster for presenting a sub-set of records in a list page -- the count() query isn't part of the task of fetching and

CF Underground VII - Call for speakers

2005-08-31 Thread Michael Smith
The CF Underground VII will be held Saturday 10/15/05 before MAX in Anaheim CA. If you are interested in speaking or want to suggest a speaker please complete the survey below by Tuesday 9/6/05 5pm http://www.cfconf.com/cf_underground7/survey.cfm Registration is also open - don't miss the

Re: Hashing Multiple Passwords via Query Loop

2005-08-31 Thread Barney Boisvert
You're trying to mix CF and SQL, which doesn't work. Check and see if Access has an MD5 function, or perhaps an ENCRYPT function that uses the MD5 algorithm. If so, you can do cfquery UPDATE members SET password = MD5(password) /cfquery and be done. If not, then you'll have to pull the

RE: Paging through records

2005-08-31 Thread Dave.Phillips
I think it applies because the whole discussion was about what's a 'faster' way to do this... My point is that the second query is getting the data to display on the page in question (say records 51 - 100), so why does the first query need to return all rows of the data? If the first query is

Re: CFMX and ArcIMS?

2005-08-31 Thread Rebecca Wells
what ver of arcIMS? what kind of cf (enterprise/standard)? ArcIMS 9.1, CFMX7 Enterprise, IIS 5.0, Win2k Server. arcIMS 9 is a bit more convoluted requires some manual work. i'm at home now so i can't give better details but i do recall it was all laid out in the esri docs. Um, yeah, in the

Re: CFMX and ArcIMS?

2005-08-31 Thread Paul Hastings
did you try cfinstallDir\wwwroot\WEB-INF\classes? ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message:

RE: Paging through records

2005-08-31 Thread S . Isaac Dealey
I think it applies because the whole discussion was about what's a 'faster' way to do this... My point is that the second query is getting the data to display on the page in question (say records 51 - 100), so why does the first query need to return all rows of the data? If the first query

RE: CFMX and ArcIMS?

2005-08-31 Thread Mike Nimer
Just save the cfusion/lib/neo*.xml files and after you install the j2ee version, copy your saved copies back into the cfusion/lib folder and that should keep all of your settings. ---nimer -Original Message- From: Rebecca Wells [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 31, 2005

RE: Paging through records

2005-08-31 Thread Stacy Young
One technique I've found to be very effective is to cache the recordset and page from there...I'll normally set a limit of 10,000 rows. (I base this off record counts from summary roll-up screens) If the amount exceeds that I fall back to leveraging rownum (Oracle) to retrieve subsets. -Stace

RE: Session variable error

2005-08-31 Thread Bobby Hartsfield
You sure the line number in the error is pointing you to this block of code? I see nothing wrong with: cfif structKeyExists(session,'user') cfif isDefined(session.user.displayname) p class=toptext Logged In: cfoutput#session.user.displayname#/cfoutput input type=button class=logout value=Logout

RE: Paging through records

2005-08-31 Thread Dave.Phillips
Good points. Thanks for your comments. :) Dave -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 31, 2005 3:06 PM To: CF-Talk Subject: RE: Paging through records I think it applies because the whole discussion was about what's a 'faster' way

RE: Paging through records

2005-08-31 Thread Stacy Young
p.s. 10K records may sound like a lot but it's typically only cached for a couple of mins, or until a new report is run by that user. Our systems are pounded each day by both internal and external folks and cfmx is rock solid using this technique. We're in finance so many of these systems are

RE: Paging through records

2005-08-31 Thread S . Isaac Dealey
Good points. Thanks for your comments. :) Welcome. That's what I'm here for. :) s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com

Re: Paging through records

2005-08-31 Thread Tanguy Rademakers
Well I think the count() example is sort of outside of the scope of what was being described... The specific question (as I understood it) was whether a pair of queries could be faster for presenting a sub-set of records in a list page -- the count() query isn't part of the task of

Re: Paging through records

2005-08-31 Thread Tanguy Rademakers
d'oh! cfquery blah blah SELECT COUNT(*) AS TotalRecords, * FROM (SELECT col1, col2, col3, ROWNUM AS myRownum FROM -- tables WHERE-- where ORDER BY -- order by) WHERE myRownum between #start# and #end#

[SOT] Finding which files in a site aren't used anymore

2005-08-31 Thread Anthony Prato
I'm back to a problem that I run into a lot. I started working at a place that does not do a good job of cleaning up files in a websites directory. (as well as tons of unused stored procedures and views) I've found plenty of tools to track down database objects, even some that check your files for

RE: CFMX and ArcIMS?

2005-08-31 Thread Hugo Ahlenius
Rebecca, You can also try the ESRI forums, for asking questions. Keep in mind that the only thing that needs to be deployed is the servlet connector, which is a j2ee servlet application (the main server stuff runs separately). I don't think it is possible to deploy it without a proper Jrun

Re: [SOT] Finding which files in a site aren't used anymore

2005-08-31 Thread S . Isaac Dealey
I'm back to a problem that I run into a lot. I started working at a place that does not do a good job of cleaning up files in a websites directory. (as well as tons of unused stored procedures and views) I've found plenty of tools to track down database objects, even some that check your

Re: Paging through records

2005-08-31 Thread S . Isaac Dealey
You can still do it in one query, returning both the total record count and just the window of records you are interested in (example for oracle): snip you then have a single small window query with an extra column (TotalRecords) that tells you how many rows are in the big query (which you

RE: [SOT] Finding which files in a site aren't used anymore

2005-08-31 Thread Russ
I think the problem of remove file b if file a is the only file that calls it could be solved with recursion, ie, running the process several times. First time will remove file a, second time will remove file b. Not as efficient, but the algorithm for calculating which files need to be deleted is

Re: Hashing Multiple Passwords via Query Loop

2005-08-31 Thread Bob Haroche
Barney Boisvert wrote: cfquery name=get SELECT memberNo FROM members ORDER BY memberNo /cfquery cfloop query=get cfquery UPDATE members SET password = #hash(memberNo)# WHERE memberNo = #memberNo# /cfquery /cfloop Excellent. This code did the trick. Apparently

Re: [SOT] Finding which files in a site aren't used anymore

2005-08-31 Thread Anthony Prato
ooo.. very good point on the href=#approot#/path/to/file.cfm but there are some good (relative to this issue) circumstances. Everything here is pretty simplistic in terms of server side processing. There aren't any urls in the database, (just tons of business logic) and I haven't seen any places

  1   2   >