• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Check Dups

Participant ,
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
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

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
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

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
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

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 26, 2007 Jan 26, 2007

Copy link to clipboard

Copied

LATEST
From 2 other tables

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation