Skip to main content
Inspiring
May 14, 2009
Question

CF Structure

  • May 14, 2009
  • 1 reply
  • 1193 views

my structure element does not show all the values when I do the following:

<CFSET

client_address="#q_Info.street1# #q_Info.street2# #q_Info.street3# #q_Info.foreign_cityzip# #q_Info.country_code#">

All of these actually show values:

#q_Info.street1#

#q_Info.street2#

#q_Info.street3#

#q_Info.foreign_cityzip#

#q_Info.country_code#"

By doing this:

<CFSET client_address="#q_Info.street1# #q_Info.street2# #q_Info.street3# #q_Info.foreign_cityzip# #q_Info.country_code#">

client_address only show the value of #q_Info.street1#

Is there some kind of rule that I can't assign more values as the value of this structure element?

This topic has been closed for replies.

1 reply

ilssac
Inspiring
May 14, 2009

No there is no rule....

If you dump  the structure is it correct?

<cfdump var="#q_Info#">

What if you use string concetination

<CFSET client_address=  q_Info.street1 & " " & q_Info.street2 & " " & q_Info.street3 & " " & q_Info.foreign_cityzip & " " & q_Info.country_code>
mega_LAuthor
Inspiring
May 14, 2009

I tried your suggestion:

<CFSET client_address=#q_Info.street1# &" "& #q_Info.street2# &" "& #q_Info.street3# &" "& #q_Info.city# &" "& #q_Info.state_code# &" "& #q_Info.zipcode# &" "& #q_Info.postnet_zip#>

It doesn't do anything, the result is still showing only the first value

I cfdumped the value, the element only show 1 value.

ilssac
Inspiring
May 14, 2009

What does <cfdump var="#q_Info#"> just before that <cfset....> tag show?