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

Passing Struct To CFC Within A Grid Bind

New Here ,
Oct 28, 2008 Oct 28, 2008
Why does the following not work? When trying to pass the struct it gives me the error "Complex object types cannot be converted to simple values." Can I not pass structs within binds to a CFC? Obviously in this example i'm only passing a single numeric value, but what I really want to do is pass a full struct that contains a list. If there's an easier way to pass a list, that works too!
525
Translate
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 ,
Oct 28, 2008 Oct 28, 2008
I don't understand most of this except the part about easy ways to pass a list. All lists are strings. Pass it as one.
Translate
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
New Here ,
Oct 28, 2008 Oct 28, 2008
Dan,
Thank you for the reply. I tried passing a list, but since in CF lists are basically just comma-delimited strings, when passing the variable the receiving CFC thinks i'm passing more than one argument and not one object filled with commas. Maybe I just did it the wrong way? So for example:
Translate
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
New Here ,
Dec 08, 2008 Dec 08, 2008
I still need help on this subject.

I have tried everything. Passing a string, a struct, an array. I just can't seem to figure out how to pass complex variables through a bind. Anyone have any help on this?
Translate
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 ,
Dec 08, 2008 Dec 08, 2008
LATEST
cf has a nice listchangedelims() function - you can change the list
delimiter from comma to, say, | (pipe), and in your cfc either specify
pipe as delimiter in any list functions you use or change it back ot
comma using the same function.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Translate
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