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

Can an Action script execute an cfc?

Guest
Oct 18, 2007 Oct 18, 2007

Copy link to clipboard

Copied

I have a flash grid that shows some data. When a line is clicked (onchange="listingGridChanged()")
the following actionscript is executed.

<cfformitem type="script">
public function listingGridChanged():Void {
actionMessage.text = foodList.selectedItem.Id;
}
</cfformitem>

But instead of showing the id found i will execute an cfc that retrieves data from that id.
Is this possible?
TOPICS
Advanced techniques

Views

249

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
Participant ,
Oct 24, 2007 Oct 24, 2007

Copy link to clipboard

Copied

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
Guest
Oct 26, 2007 Oct 26, 2007

Copy link to clipboard

Copied

LATEST
Yeah this is fairly easily done with flash remoting. You might want to check out www.asfusion.com as it has lots of good info on that. Also if you want to use the RemoteObject method that is more liken to using flex you can check out this posting and it has a good description. http://www.newsight.de/2006/03/01/breaking-bounds-of-cf-flashforms-remoteobject/

The key to get this to work is to understand how to use and assign the data that you are sending back from your cfc. If you want to use the return object as the data provider for another cfgrid it is fairly straight forward. Using your data in other ways can sometimes force you to write more actionscript to format your data before displaying it. For example dates can be a problem. I would suggest having your cfc format dates at the Query level before sending them back into your form.

And remember that you only have 32kb/64kb of space to work with in your flash form. Not sure what the actual limit is but what we have found is that the form can be 64kb in size but if we have a chunk of code that is larger then 32kb in size it will shut your form down with an error.

Happy Hunting!

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