Skip to main content
Participant
October 28, 2008
Question

Passing Struct To CFC Within A Grid Bind

  • October 28, 2008
  • 1 reply
  • 605 views
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!
    This topic has been closed for replies.

    1 reply

    Inspiring
    October 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.
    akMorganHAuthor
    Participant
    October 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:
    akMorganHAuthor
    Participant
    December 8, 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?