Sep
27

ColdFusion MX 7 Updater released

32 comments Posted by: Laura

This is really a great updater, as it has several bug fixes plus some enhancements. Everybody using Flash Forms should download it right now! We would like to thank Mike Nimer and the ColdFusion team for the many bug fixes and enhancements made to the Flash Forms.

These are my favorites:

  • Script cfformitem type to write your own ActionScript functions, no more savecontent hack needed
  • onload for Flash forms, no more ugly hacks
  • onFocus and onBlur events for Flash Forms
  • Mac OSX support
  • date mask in cfgrid works
  • id=“” works for most controls now
  • cftextarea tag has a new attribute, html=”true|false”,

On the down side, new ActionScript keywords have been banned from Flash forms:

  • createchild
  • Createchildatdepth
  • Createchildren
  • Createclasschildatdepth
  • Createclassobject
  • Createemptyobject
  • createobject
  • httpservice
  • remoteobject
  • Uiobjectdescriptor
  • webservice

ColdFusion Updates Download page

Category: ColdFusion |

32 Comments so far

Write yours
PaulH
actually, as you probably already know, you could set cftextarea objects html=true to turn on html rendering.
WayneG
2. WayneG wrote on September 28, 2005 at 4:20 AM
With these actionscript keywords been banned how does this impact the use of remoting? Currently using the old method of remoting before the updater works fine. As you well know the newer version of remoting didnt work with flash forms.

These look like actionscript keywords that flex uses for remoting that have been banned?

You did previously mention in your posts that the method used for remoting by the MXNA READER could no longer work with the new updated version. Is this the case?

If so, what are the correct methods of implementing remoting using flash forms via facade for form drive applications?

Thanks for all the insight.
Ryan Guill
I second WayneG's Questions.
Nahuel
Remoting is safe, all these keywords don't affect the use of it.
FYI we are writing an article for Devnet about Remoting that will be published soon :)
Robert Smith
5. Robert Smith wrote on September 28, 2005 at 2:55 PM
Can you help explain this macromedia comment?

"The cfformitem tag type attribute now includes script as a valid value, which lets you create functions in Flash forms; this reduces the possibility of reaching the 32KB or 64KB limit errors."

How does this work?

Could you post some examples of how this would be better than cfsavecontent?

Thanks as always
Laura
Robert,
That refers to making functions. They offer many advantages, as I wrote in this post:
http://www.asfusion.com/blog/entry/filtering-a-grid-as-you-type---using

It helps with the size limit problem because you can reuse functions. With the cfsavecontent approach, the code gets duplicated in every control you add it.

Az
What would have helped the limit even more was adding the ability to use classes instead of inline styles. The inheritance of styles is good, but the use of classes that could be defined similar to functions or even in an attached style sheet would be the ideal solution. I've only run up against the size limit with multi-page, heavily styled forms.
Nahuel
Az,
I agree 100% with you. To avoid that I use this to set my styles in the onLoad event, using globals styles:
_global.styles.Button.setStyle("borderThickness", 1);
_global.styles.Panel.setStyle("backgroundColor", 0xE5F0F9);
WayneG
9. WayneG wrote on September 29, 2005 at 2:01 AM
Nahuel: is there any way one could have a small preloader prior to the actual flash form loading. I have found that much larger flash forms leave the user waiting with a blank page?

Is this download time for the flash form also dependant on having you combo boxes or grids been populated via remoting whilst the form is compiling. Would it not be better to have large grids make the remoting call once the form has compiled. if so how would you suggest this be scripted correctly?

You did mention that remoting is still possible, does this mean only but means of netservices only or can the new method be used?
Ryan Guill
I am confused by the 32K or 64K statement...

Is it 32K sometimes and 64K others?
Brian Sloan
11. Brian Sloan wrote on September 29, 2005 at 11:15 AM
Nahuel,

I am changing all of my styles to the _global.setStyle method because I hit the 32k error. It seems to be helping. What are the rest of the control names. ex. date input, text input, ect...

Thanks,
Brian
Neil Bailey
Laura,

I am attempting to make a remoting call using a cfFormItem type="script" function, and I just can't seem to make it work..... any pointers? Thanks in advance - you guys truly are the tip of the sword :)
Neil Bailey
I figured it out; thanks anyway Laura and Nahuel. Looking forward to the next post.
WayneG
14. WayneG wrote on September 29, 2005 at 10:07 PM
Neil: please would you bve so kind to share that remoting call that you have managed to get working
Neil Bailey
WayneG,

I am sure that this can be greatly improved upon, but it works:

<cfFormItem type="script">
//function to process the return object from the CFC
function getGridData( results: Object ):Void {
_root.existing_open_position.dataProvider = results;
}   

//function to alert any error messages that get thrown while calling the CFC
function onStatus( stat: Object ):Void {
//if there is any error, show an alert
alert("Error while calling cfc:" + stat.description);
}

function populateGrid():Void {
//I am sure you will recognize most of THIS code <cfoutput>
//create connection
var connection:mx.remoting.Connection = mx.remoting.NetServices.createGatewayConnection("http://#cgi.HTTP_HOST#/flashservices/gateway/");
//declare service
var myService:mx.remoting.NetServiceProxy;
</cfoutput>

var responseHandler = {};
         
responseHandler.onResult = getGridData;
responseHandler.onStatus = onStatus;
               
//get service
myService = connection.getService("components.someCFCCall", responseHandler );
               
//make call
myService.someFunction(someParameterList);   
}

</cfFormItem>

I am sure that there are much cleaner ways of doing this (I am an AS moron) - having a function dedicated to returning the NetService as an object, as opposed to having the code to create one in every single remoting function - but, for the moment, this works, and its better than what I had yesterday :)

David D Brown
16. David D Brown wrote on September 30, 2005 at 6:39 AM
Is there an update to Dreamweaver 8 for the new tags?

Nahuel
Brian
I made a post making an example:
http://www.asfusion.com/blog/entry/using-global-css-in-your-cfform

Ryan
I don't know either :(

disidiosus
18. disidiosus wrote on October 04, 2005 at 4:49 AM
As to the 32k/64k confusion, is it possible that the size limit depends on the server edition you are using?
David R. Schaller
19. David R. Schaller wrote on October 21, 2005 at 7:29 AM
WayneG : is there any way one could have a small preloader prior to the actual flash form loading(?)

David: Has anyone providing a response to this question? I have started to replace many of my html forms with cfform flash forms but have noticed that loads times can vary a lot. I would like the users to see something other that the white screen while waiting. Any ideas?

---------------------------------------------
RE: CFFORM cfformitem script:
The new ability to add the cfformitem type="script" is a great change from using the cfcontent work around. However, aren't we backtracking here? Whatever happened to separating the display from the code? Is there a work around for this?
Neil Bailey
20. Neil Bailey wrote on October 21, 2005 at 9:09 AM
David,

As for the flash forms taking a long time to load, keep any and all coldfusion code OUT of the form (such as loops, coldfusion variable names, etc), and the form will load just fine.

The FIRST time you load a form after making changes to it, the form has to recompile into an SWF file, so it takes some time. After that, it will load just fine.

As for seperating the code from the UI. You can still do that - just include an .AS file that contains all of your actionscript code.


Mike K.
21. Mike K. wrote on October 24, 2005 at 9:46 AM
I came up with a way to create a real function in CF MX 7.0. One that does not work like the normal cut/paste, which happens when calling CF functions based on <cfsavecontent>, but I guess this would not be of much value now that the updater has been released. However, if anybody wants to know, email me and I'll post my solution. I needed it because I was coming up against the 32k limit too.
steve mckean
I was looking over your real estate application and after looking at the Sunday edition of the Maui News I think you $9M price variables need to triple... $9M for half an acre...what is this place becoming?
Saikumar
23. Saikumar wrote on March 14, 2006 at 12:45 AM
Hi,

Flash forms 32KB to 64KB .. How to do that...

I see in lot of posts as 64KB... How can we achieve that... Flash form limitation to 64KB ..

Please suggest
J Buda
24. J Buda wrote on September 29, 2006 at 3:26 AM
Hi...not sure if this is the right place for this.

I have updated our coldfusion server to 7.02 from 7.01, however my Cfchart no longer works, none of the code has changed..only since the update has it ceased!

Im getting this error when attempting to display a cfchart (in any format)..

500
com/gp/api/styles/chart/MxStatisticalChartStyle

I have no idea what that means! Any help would be greatly appreciated!
Laura
J Buda,
Unfortunately, we cannot help you with that. I would seek help at Adobe...
Ben
Any update on when the new devnet article will be released about changes to remoting with the new updater? Not having luck finding any examples of using remoting after the updater.
Sandra
28. Sandra wrote on December 05, 2006 at 8:22 AM
Hi,

I just ran into the 32KB limit =(. Is there any way to change this limit to 64KB? Does any of you know if using Flash remoting will help?
Laura
Sandra,
Remoting does not help, but removing the styles does. See this example: http://www.asfusion.com/blog/entry/using-global-css-in-your-cfform
Tony
What has happened to the "cfgridupdate" tag in CF 7.02 - its doesn't seem to work?????
Royal T
31. Royal T wrote on April 03, 2007 at 9:47 AM
Every since I ran the updater my cfform loads are sparatic.

My remoting script was working fine, but now the only way I can get the movie to load is to remove the last three rows of my function:
<cfformitem type="script">
function insertLeadStatus():Void {
var connection:mx.remoting.Connection = mx.remoting.NetServices.createGatewayConnection("#Interface.remoteConnectionPath#");
var myService:mx.remoting.NetServiceProxy;
var responseHandler = {};
var theList = displayLeadStatuses;
responseHandler.onResult = function(results: Object):Void { theList.dataProvider = results;   };
responseHandler.onStatus = function(stat: Object):Void { alert("Error while calling cfc:" + stat.description); };
myService = connection.getService("intranet.components.leads", responseHandler );
myService.addLeadStatus(leadStatusName.text, leadStatusDescription.text);
leadStatusName.text = "";
leadStatusDescription.text = "";
}
</cfformitem>


Obviously my remoting will not work without the last three lines as that is where I pass the variables to the component and clear the add form.... very strange anyone have any ideas?
mgwalks
is ther a way to tell if the updater is running?

Leave your comment

Comment etiquette: As a gesture to those subscribed to this post, please keep your comments relevant to the post.

Your email address will never be displayed.
Email is gravatar enabled.Gravatar are the pictures you see next to the comments. If you like to have one, visit gravatar



Allowed tags:

<code>
All other tags will be shown as such, when in doubt, use the preview.

Leave this field empty:


Preview:

Refresh Preview
1. You wrote on