And here I am coming across this in a search :-)
Kind of got the same problem but in 6.1.1.
The workaround above seems to fix it for me also but changing the type in
my case doesn't give as good an overview of the options to the users as the
array did.
Alternative bug fix I've put in below but the error I'm getting is coming
from this type of property....
<cfproperty ftseq="200" ftfieldset="Subject Hub" ftwizardStep="Related
Content" name="aSubjectHub" type="array"
required="true" default="" fttype="array"
ftalias="subjects" ftlabel="Selected Subject Hub" ftJoin="dmNavigation"
ftShowLibraryLink="false" />
And the error I get is coming from the
core/packages/formtools/navigation.cfc method editDropdownTree.
Error Details
Message Complex object types cannot be converted to simple values.
Exception Type Expression
Detail The expression has requested a variable or an intermediate
expression result as a simple value, however, the result cannot be
converted to a simple value. Simple values are strings, numbers, boolean
values, and date/time values. Queries, arrays, and COM objects are examples
of complex values.
The most likely cause of the error is that you are trying to use a complex
value as a simple one. For example, you might be trying to use a query
variable in a cfif tag.
Tag Context C:\Inetpub\farcry\core\packages\formtools\navigation.cfc (line:
107)
C:\Inetpub\farcry\core\packages\formtools\navigation.cfc (line: 75)
C:\Inetpub\farcry\core\tags\wizard\object.cfm (line: 35)
C:\Inetpub\farcry\core\tags\wizard\object.cfm (line: 355)
C:\Inetpub\farcry\core\tags\wizard\object.cfm (line: 350)
C:\Inetpub\farcry\core\tags\wizard\object.cfm (line: 229)
C:\Inetpub\farcry\core\tags\wizard\object.cfm (line: 15)
C:\Inetpub\farcry\core\tags\wizard\object.cfm (line: 1)
C:\Inetpub\farcry\projects\website\webskin\Course\edit.cfm (line: 176)
C:\Inetpub\farcry\projects\website\webskin\Course\edit.cfm (line: 1)
C:\Inetpub\farcry\core\packages\fourq\fourq.cfc (line: 442)
C:\Inetpub\farcry\core\packages\fourq\fourq.cfc (line: 332)
C:\Inetpub\farcry\core\webtop\conjuror\invocation.cfm (line: 152)
The problem is actually on line 108 and it's this....
<cfoutput><option value="#objectid#"<cfif
*listFindNoCase(arguments.stMetadata.value,
objectid)* or arguments.stMetadata.value eq objectid>
selected="selected"</cfif>>#RepeatString("- ",
qNodes.nlevel-rootlevel)##qNodes.objectName#</option></cfoutput>
In the case of this type the value of arguments.stMetadata.value is an
empty array not a string.
The workaround I've had to put in place is to overwrite that method in my
project and add the following line after the <cfparam>'s
<cfif isArray(arguments.stMetadata.value)>
<cfset arguments.stMetadata.value =
arrayToList(arguments.stMetadata.value) />
</cfif>
So far doing that seems to have allowed me to use the array element again.
Cheers,
James
--
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry