Skip to main content
May 13, 2008
Question

# within a #

  • May 13, 2008
  • 1 reply
  • 537 views
Line 7 fails because CF does not like: .#what#.XmlText inside a ##. I tried Evaluate, DE etc, but could not get it working. Any ideas?
This topic has been closed for replies.

1 reply

Inspiring
May 13, 2008
try
<cfset temp = QuerySetCell(myquery, "#What#",
getRecords.qdbapi.record .#what#.XmlText, i)>

or
<cfset temp = QuerySetCell(myquery, "#What#",
getRecords.qdbapi.record
["#what#"].XmlText, i)>

or
<cfset temp = QuerySetCell(myquery, "#What#",
getRecords.qdbapi.record ["#what#"][XmlText], i)>


btw, no need for pound signs inside cf functions.
thus <cfset temp = QueryAddRow(myquery, #NumRecords#)>
can also be just <cfset temp = QueryAddRow(myquery, NumRecords)>


Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
May 13, 2008
I tried all 3 choices provided. All 3 got different errors
#1:Missing argument name.
#2: Element device is undefined in a Java object of type class coldfusion.xml.XmlNodeList referenced as
#3: Variable XMLTEXT is undefined.

Pl help.