close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

D.A. sorting and search issues. WA Search not working

Thread began 3/02/2011 12:20 pm by sandy170299 | Last modified 3/03/2011 9:35 am by Jason Byrnes | 1061 views | 7 replies |

sandy170299

D.A. sorting and search issues. WA Search not working

I'm getting an error when I use the search feature after using the D.A. sort feature. This is my error:

[Macromedia][SQLServer JDBC Driver][SQLServer]Ambiguous column name 'applicationID'.

Because the query uses five different tables, two of which contain a field called applicationID, I specified the table in the code. This, however, is not working and I receive the ambiguous column name error. I'm attaching the page in a ZIP file. Thanks!

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

sandy170299

p.s. When I run the query in SQL Server, it runs just fine.

Sign in to reply to this post

sandy170299

Actually, I take that back. The error is happening in the sort criteria, not the search criteria. Line 92: #PreserveSingleQuotes(WADA_Sort_1.FinalOrderClause)# . I've also coded this in to include which table it's from, dbo.tblApplicationScores.applicationID, but that's not making any difference.

Sign in to reply to this post

Jason ByrnesWebAssist

change:

<cfset WADA_Sort_1.ColumnList = "applicationID^scorerID^totalScore" />




To:

<cfset WADA_Sort_1.ColumnList = "tblApplicationScores.applicationID^scorerID^totalScore" />
Sign in to reply to this post

sandy170299

Jason, I had already tried that. I included the table name for both the search and the sort criteria (I did the sort after I had already posted my code) and it's still not working. Still getting the same ambiguous column name error.

Sign in to reply to this post

Jason ByrnesWebAssist

it could be that the previous query is stored in a session.

Close the browser completely to end the session between tests.


to troubleshoot, change:

<cfquery name="WADAdbotblApplicationScores" datasource="csf">
SELECT TOP (100) PERCENT dbo.tblApplicationScores.applicationScoreID, dbo.tblApplicationScores.applicationID, dbo.tblApplicationScores.scorerID,
dbo.tblApplicationScores.plScore, dbo.tblApplicationScores.siScore, dbo.tblApplicationScores.ciScore, dbo.tblApplicationScores.lorScore,
dbo.tblApplicationScores.scorerNotes, dbo.tblApplicationScores.totalScore, dbo.tblApplicationScores.scoringGroupID, dbo.tblApplicationScores.scholarshipYear,
dbo.tblScoringGroups.scoringGroup, dbo.tblApplications.applicantID, dbo.tblApplicants.first_name, dbo.tblApplicants.last_name, dbo.users.Fname AS scorerFname,
dbo.users.Lname AS scorerLname
FROM dbo.tblApplicationScores INNER JOIN
dbo.tblScoringGroups ON dbo.tblApplicationScores.scoringGroupID = dbo.tblScoringGroups.scoringGroupID INNER JOIN
dbo.tblApplications ON dbo.tblApplicationScores.applicationID = dbo.tblApplications.applicationID INNER JOIN
dbo.tblApplicants ON dbo.tblApplications.applicantID = dbo.tblApplicants.applicantID INNER JOIN
dbo.users ON dbo.tblApplicationScores.scorerID = dbo.users.userID
#PreserveSingleQuotes(WADbSearch1.whereClause)#
#PreserveSingleQuotes(WADA_Sort_1.FinalOrderClause)#
</cfquery>




to:

<cfoutput>
SELECT TOP (100) PERCENT dbo.tblApplicationScores.applicationScoreID, dbo.tblApplicationScores.applicationID, dbo.tblApplicationScores.scorerID,
dbo.tblApplicationScores.plScore, dbo.tblApplicationScores.siScore, dbo.tblApplicationScores.ciScore, dbo.tblApplicationScores.lorScore,
dbo.tblApplicationScores.scorerNotes, dbo.tblApplicationScores.totalScore, dbo.tblApplicationScores.scoringGroupID, dbo.tblApplicationScores.scholarshipYear,
dbo.tblScoringGroups.scoringGroup, dbo.tblApplications.applicantID, dbo.tblApplicants.first_name, dbo.tblApplicants.last_name, dbo.users.Fname AS scorerFname,
dbo.users.Lname AS scorerLname
FROM dbo.tblApplicationScores INNER JOIN
dbo.tblScoringGroups ON dbo.tblApplicationScores.scoringGroupID = dbo.tblScoringGroups.scoringGroupID INNER JOIN
dbo.tblApplications ON dbo.tblApplicationScores.applicationID = dbo.tblApplications.applicationID INNER JOIN
dbo.tblApplicants ON dbo.tblApplications.applicantID = dbo.tblApplicants.applicantID INNER JOIN
dbo.users ON dbo.tblApplicationScores.scorerID = dbo.users.userID
#PreserveSingleQuotes(WADbSearch1.whereClause)#
#PreserveSingleQuotes(WADA_Sort_1.FinalOrderClause)#
</cfoutput>





then add:
<cfabort>

just before the doctype tag

post back the entire query that is written the the screen and the latest copy of your page.

Sign in to reply to this post

sandy170299

This is the output of my query:

SELECT TOP (100) PERCENT dbo.tblApplicationScores.applicationScoreID, dbo.tblApplicationScores.applicationID, dbo.tblApplicationScores.scorerID, dbo.tblApplicationScores.plScore, dbo.tblApplicationScores.siScore, dbo.tblApplicationScores.ciScore, dbo.tblApplicationScores.lorScore, dbo.tblApplicationScores.scorerNotes, dbo.tblApplicationScores.totalScore, dbo.tblApplicationScores.scoringGroupID, dbo.tblApplicationScores.scholarshipYear, dbo.tblScoringGroups.scoringGroup, dbo.tblApplications.applicantID, dbo.tblApplicants.first_name, dbo.tblApplicants.last_name, dbo.users.Fname AS scorerFname, dbo.users.Lname AS scorerLname FROM dbo.tblApplicationScores INNER JOIN dbo.tblScoringGroups ON dbo.tblApplicationScores.scoringGroupID = dbo.tblScoringGroups.scoringGroupID INNER JOIN dbo.tblApplications ON dbo.tblApplicationScores.applicationID = dbo.tblApplications.applicationID INNER JOIN dbo.tblApplicants ON dbo.tblApplications.applicantID = dbo.tblApplicants.applicantID INNER JOIN dbo.users ON dbo.tblApplicationScores.scorerID = dbo.users.userID

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

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

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...