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

Invoke multiple components with 1 arguments

LEGEND ,
Nov 13, 2006 Nov 13, 2006

Copy link to clipboard

Copied

Will this work?

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


TOPICS
Advanced techniques

Views

269

Translate

Translate

Report

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 ,
Nov 13, 2006 Nov 13, 2006

Copy link to clipboard

Copied

probably not. what happened when you tried it?

Votes

Translate

Translate

Report

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 ,
Nov 14, 2006 Nov 14, 2006

Copy link to clipboard

Copied

Did you try it before asking?

Did it work?

--
Adam

Votes

Translate

Translate

Report

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 ,
Nov 14, 2006 Nov 14, 2006

Copy link to clipboard

Copied

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?


Votes

Translate

Translate

Report

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 ,
Nov 14, 2006 Nov 14, 2006

Copy link to clipboard

Copied

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.


Votes

Translate

Translate

Report

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 ,
Nov 14, 2006 Nov 14, 2006

Copy link to clipboard

Copied

LATEST
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

Votes

Translate

Translate

Report

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
Documentation