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

Dynamic Queries

Contributor ,
Feb 27, 2007 Feb 27, 2007

Copy link to clipboard

Copied

Right now I have a coldfusion page that creates dynamic queries:
<CFSET qrySmiles = QueryNew("SmilesID,ElementID,Element")>
<CFLOOP index="SmilesIndex" from="1" to="#ArrayLen(SmilesStringArray)#" step="1">
<CFSET LastRow = QueryAddRow(qrySmiles)>
<CFSET temp = QuerySetCell(qrySmiles, "SmilesID", "#SmilesStringArray[SmilesIndex][1]#")>
<CFSET temp = QuerySetCell(qrySmiles, "ElementID", "#SmilesStringArray[SmilesIndex][2]#")>
<CFSET temp = QuerySetCell(qrySmiles, "Element", "#SmilesStringArray[SmilesIndex][3]#")>
</CFLOOP>
Does anyone know if you can do this with the cfxapi?

Thanks

James
TOPICS
Advanced techniques

Views

197

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

correct answers 1 Correct answer

Contributor , Feb 27, 2007 Feb 27, 2007
Figured it out, just use the cfx query class:
http://livedocs.adobe.com/coldfusion/5.0/CFML_Reference/CFXRef_C4.htm

Votes

Translate

Translate
Contributor ,
Feb 27, 2007 Feb 27, 2007

Copy link to clipboard

Copied

LATEST
Figured it out, just use the cfx query class:
http://livedocs.adobe.com/coldfusion/5.0/CFML_Reference/CFXRef_C4.htm

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