close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

No results being displayed on page load

Thread began 11/14/2012 7:37 am by sandy170299 | Last modified 11/14/2012 8:14 am by Jason Byrnes | 1261 views | 6 replies |

sandy170299

No results being displayed on page load

This page was originally created with D.A., but D.A. no longer works with CF, so I had to manually tweak it, including the search, in order to get it to work now. Now, no results are displayed on the page until I press submit. Is anything jumping out at you? Thanks!

Attached Files
tblApplications_Results.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the query uses the startDate and End Date form elements in the where clause.

if you want the query to return a result on page load, you will need to edit the parameters in the recordset and set valid dates for the default values

Sign in to reply to this post

sandy170299

Yes, but I've defined the default parameters of the start date and end date before the query runs. Did I screw something up with this? :P

Sign in to reply to this post

Jason ByrnesWebAssist

looks to me like the default is 1:

<cfparam name="FORM.s_first_name" default="1">
<cfparam name="FORM.s_last_name" default="1">


you need to default to a real date.

Sign in to reply to this post

Jason ByrnesWebAssist

oh, wait your using the cutoffdate recordset:
<cfparam name="FORM.startDate" default="#cutOffStartDate#">
<cfparam name="FORM.endDate" default="#cutOffEndDate#">



make sure that is returning valid dates that exist in the tblApplications table

Sign in to reply to this post

sandy170299

I've put it back to the way it was, before I started messing with the search and recordsets. Now, I just changed the code in the Search parameters to this:

//comparison list additions
WADbSearch1 = addComparisonFromEdit(WADbSearch1,"last_name","S_Last_Name","","Includes",0);
WADbSearch1 = addComparisonFromEdit(WADbSearch1,"first_name","S_first_name","OR","Includes",0);
WADbSearch1 = addComparisonFromEdit(WADbSearch1,"dbo.tblApplications.appStatusID","S_appStatusID","OR","=",1);
WADbSearch1 = addComparisonFromEdit(WADbSearch1,"typeOfApplicant","applicantTypeID","OR","=",1);
WADbSearch1 = addComparisonFromEdit(WADbSearch1,"applicationDate","startDate","AND",">=",0);
WADbSearch1 = addComparisonFromEdit(WADbSearch1,"applicationDate","endDate","AND","<=",0);

It seems to be working now. If it ain't broke, don't fix it? :)

Sign in to reply to this post

Jason ByrnesWebAssist

ok, glad to hear it's working.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...