Skip to main content
Inspiring
November 13, 2006
Question

Invoke multiple components with 1 arguments

  • November 13, 2006
  • 5 replies
  • 298 views
Will this work?

<cfinvoke component="#Students#" method="ListStudents"
returnvariable="ListStudents">
<cfinvoke component="#Image#" method="MyImages" returnvariable="MyImages">
<cfinvokeargument name="pcode" value="#Form.MyStudent#">
</cfinvoke>


This topic has been closed for replies.

5 replies

Inspiring
November 14, 2006
This sort of answers your first question too. Create a struct holding your
arguments before any of the method calls needing to use those arguments,
and pass it as the argumentscollection for each.

--
Adam
Inspiring
November 14, 2006
Never mind about the 2nd question.

I just added the argumentCollection to my code and it passed everything in
the form that I had created.


Inspiring
November 14, 2006
No, it didn't work. Wasn't sure if there was a better way than what I
posted. Sorry if I worded the question wrong and didnt mention that.

I have a couple different CFCs that are triggered by the same id and wasn't
sure if there was a better way to trigger them all at once with less code.

Also, what is the proper way to pass a bunch of arguments to a CFC? Where
should I look for that?


Inspiring
November 14, 2006
Did you try it before asking?

Did it work?

--
Adam
Inspiring
November 13, 2006
probably not. what happened when you tried it?