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

ValueList

Guest
Feb 26, 2009 Feb 26, 2009

Copy link to clipboard

Copied

Can we use ValueList with query of queries? When I do so, I get an error as follows:

The ValueList() function has an invalid parameter:
Parameter 1 of function ValueList must be pointing to a valid query name.
TOPICS
Advanced techniques

Views

1.2K

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 ,
Feb 26, 2009 Feb 26, 2009

Copy link to clipboard

Copied

you definitely can.

without seeing your code i may just guess that maybe your QoQ have
dynamic names? then just use arraytolist() function and specify the qoq
name and column name as array notation:

<cfoutput>#arraytolist(variables['static_part_of_qoq_name' &
dynamic_part_of_qoq_name]['column_name'])#</cfoutput>

post your code for more exact help.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

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 ,
Feb 26, 2009 Feb 26, 2009

Copy link to clipboard

Copied

Yes you can.

Read your error message very carefully. It looks pretty helpful to me.

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 ,
Feb 26, 2009 Feb 26, 2009

Copy link to clipboard

Copied

LATEST
> The ValueList() function has an invalid parameter:
> Parameter 1 of function ValueList must be pointing to a valid query name.

Actually I think you'll find that error message is ballocks. Parameter 1
of valueList() needs to point to a valid query COLUMN.

The syntax is:
myList = valueList(myQuery.myColumn);

--
Adam

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