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

New and need help

New Here ,
Apr 02, 2015 Apr 02, 2015

Copy link to clipboard

Copied

I am tying to keep an already developed search running.  I have no experience.  Please help!

My error is coming from here:

<cfif trim(form.criteria) is not "">

    <cfset collectionname="#form.p_collname#">

<cfsearch

   collection="personify_methods"

   name="getMethods"

   criteria="#Form.Criteria#"

    maxrows = "100">

Could some one please assist me?

Views

422

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
Advocate ,
Apr 02, 2015 Apr 02, 2015

Copy link to clipboard

Copied

What is the error you are getting?

You are missing a closing </cfif> tag but that might be because you have copied and pasted incomplete code.

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
New Here ,
Apr 02, 2015 Apr 02, 2015

Copy link to clipboard

Copied

The </cfif> tag is later in the code.

The complete search is allowing you to search by keywords or product code.

The keyword area is the problem area.

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
Engaged ,
Apr 02, 2015 Apr 02, 2015

Copy link to clipboard

Copied

Are you getting an error?  Without more info it will be difficult to offer much assistance.

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
New Here ,
Apr 02, 2015 Apr 02, 2015

Copy link to clipboard

Copied

There was a problem executing the cfSearch tag with the following collections.

Collection (status code): personify_methods (-33)

The error occurred in /search_methods_results.cfm: line 34

Called from /search_methods_results.cfm: line 28

Called from /search_methods_results.cfm: line 1

32 :    name="getMethods"

33 :    criteria="#Form.Criteria#"

34 :     maxrows = "100"><!---  --->

35 :

36 : <cfoutput>

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
Advocate ,
Apr 02, 2015 Apr 02, 2015

Copy link to clipboard

Copied

What is being passed through in #Form.Criteria#?

Is this a verity or solr collection?

Have you tried re-indexing the collection?

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
New Here ,
Apr 02, 2015 Apr 02, 2015

Copy link to clipboard

Copied

haxtbh,

The last question you asked might have just answered my problem.  The problem is coming from the data source.

THANK YOU! 

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
Community Expert ,
Apr 02, 2015 Apr 02, 2015

Copy link to clipboard

Copied

LATEST

Amie_67, please mark the correct answer, as it will help someone else. Thanks.

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