I just got done installing Homesite on my new computer along side of CFEclipse 
and Dreamweaver because I missed Homesites searching and replacing so much.

Homesite can search for carriage returns and replace them with commas... I love 
that!

I can quickly take comma delimited data and replace the comma with a carriage 
return... I can search for tab and replace it with a comma etc...

Homesite's searching and replacing just rocks!

In the past I have created my forms. Then submit to an empty action page.  I 
grab from the debugging all of the form vars that were submitted:

FIELDNAMES=TYPE,CATALOGID,ELEMENTID,SKU,ELEMENTDESCRIPTION,PAGE,ELEMENTTYPE,TYPEOFSHOT,SIMPLEORADVANCED,PROPS,OUTLINETYPE,JID,NOTES,CAREYNOTES

Now I use home site to find the comma and replace with this:
,<cfparam name="FORM.


Now I have:
TYPE,<cfparam name="FORM.CATALOGID,<cfparam name="FORM.ELEMENTID,<cfparam 
name="FORM.SKU,<cfparam name="FORM.ELEMENTDESCRIPTION,<cfparam 
name="FORM.PAGE,<cfparam name="FORM.ELEMENTTYPE,<cfparam 
name="FORM.TYPEOFSHOT,<cfparam name="FORM.SIMPLEORADVANCED,<cfparam 
name="FORM.PROPS,<cfparam name="FORM.OUTLINETYPE,<cfparam 
name="FORM.JID,<cfparam name="FORM.NOTES,<cfparam name="FORM.CAREYNOTES

Now I do another extended replace on comma (the <cr> represents a carriage 
return):
" default="">
<cr>


Now my results are this:
TYPE" default="">
<cfparam name="FORM.CATALOGID" default="">
<cfparam name="FORM.ELEMENTID" default="">
<cfparam name="FORM.SKU" default="">
<cfparam name="FORM.ELEMENTDESCRIPTION" default="">
<cfparam name="FORM.PAGE" default="">
<cfparam name="FORM.ELEMENTTYPE" default="">
<cfparam name="FORM.TYPEOFSHOT" default="">
<cfparam name="FORM.SIMPLEORADVANCED" default="">
<cfparam name="FORM.PROPS" default="">
<cfparam name="FORM.OUTLINETYPE" default="">
<cfparam name="FORM.JID" default="">
<cfparam name="FORM.NOTES" default="">
<cfparam name="FORM.CAREYNOTES

I clean up the last bit of it and now I have in less then 30 seconds all of the 
<cfparam> tags I could ever need for this form submission.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267618
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to