This content has been marked as final. Show 5 replies
Try like this,
<CFSET TemplatesAndForms=application.menuWords & ".#session.MyLanguage#." & TemplatesAndForms>
> Try like this,
> <cfsetting enablecfoutputonly="yes">
> <CFSET TemplatesAndForms=application.menuWords & ".#session.MyLanguage#." & TemplatesAndForms>
> <cfsetting enablecfoutputonly="no">
It might be useful to read this:
Just tried your solution and get the following:
Complex object types cannot be converted to simple values.
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. This was possible in ColdFusion 2.0 but creates an error in later versions.
The error occurred in D:\cfmx\cfdev_working_folder\UKCHAPP40\dsp_LeftMenuModule.cfm: line 17
16 : <cfoutput>
17 : <cfset TemplatesAndForms=application.menuWords & ".#session.MyLanguage#." & TemplatesAndForms>
18 : </cfoutput>
I tested your code with some appliation and session variable assignments of my own and it worked well. But I am not sure if your #session.MyLanguage# variable is of complex type in nature or not.
Thankyou for your reply Adam Cameron , it worked.
need to do some more reading up on structures :)