Adobe Community
All community
This category
This board
Knowledge base
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results forÂ
ShowÂ
 onlyÂ
|
Search instead forÂ
Did you mean:Â
Global community
Language:
Deutsch
English
Español
Français
Português
日本語コミュニティ
Dedicated community for Japanese speakers
í•œêµ ì»¤ë®¤ë‹ˆí‹°
Dedicated community for Korean speakers
Sign In
Exit
Home
ColdFusion
Discussions
Check Dups
Home
ColdFusion
Discussions
Check Dups
0
Upvote
Check Dups
emmim44
Participant
,
/t5/coldfusion-discussions/check-dups/td-p/669227
Jan 26, 2007
Jan 26, 2007
Copy link to clipboard
Copied
Do you know How I will check the duplicates value and display a message in CF? I dont want to use javascript...Here is the sample select box..
<select name="Vr12H8H" id="VR#fid##b#" >
Sample result:
<select name="Vr12H8H" id="VR371" >
<select name="Vr12H8H" id="VR381" >
TOPICS
Advanced techniques
Views
223
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
4 Replies
4
Jump to latest reply
Dan_Bracuk
LEGEND
,
/t5/coldfusion-discussions/check-dups/m-p/669228#M63153
Jan 26, 2007
Jan 26, 2007
Copy link to clipboard
Copied
If you are giving your select controls id values based on a query output, write your query so that it doesn't return records.
If you want to check something for multiple occurrences, the sql is
select field1, field2, etc, count(*)
from some tables
where whatever
group by field1, field2, etc
having count(*) > 1
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
emmim44
AUTHOR
Participant
,
/t5/coldfusion-discussions/check-dups/m-p/669229#M63154
Jan 26, 2007
Jan 26, 2007
Copy link to clipboard
Copied
If the db table is empty, it doesnt do work ...I need smth that will check if a one hits the submit button..it should display a message about the dups..
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Dan_Bracuk
LEGEND
,
/t5/coldfusion-discussions/check-dups/m-p/669230#M63155
Jan 26, 2007
Jan 26, 2007
Copy link to clipboard
Copied
If the db table is empty, where are you getting your id variable from?
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
emmim44
AUTHOR
Participant
,
/t5/coldfusion-discussions/check-dups/m-p/669231#M63156
Jan 26, 2007
Jan 26, 2007
Copy link to clipboard
Copied
LATEST
From 2 other tables
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Post Reply
Preview
Exit Preview
never-displayed
You must be signed in to add attachments
never-displayed
Â
Resources
Documentation
ColdFusion User Guide