[flexcoders] Binding to property or use a custom event and event.target.myProperty ?

2006-11-17 Thread willmorganuk
I have a simple custom component, based on a richtexteditor, that
cleans up it's own html when it's submit button is clicked.

Question: Is is best to access the new 'clean' html from the main
application via a [Bindable] property or dispatching a custom event
when the internal processing is completed? Does it matter?

THANKS!

Will.




[flexcoders] I've got me data bindings in a terrible twist. FB2b3

2006-06-08 Thread willmorganuk
Hi All - I'm getting really confused here. The help docs offer
examples of binding webservice results to either UI components or
objects, such as an ArrayCollection. 

This is all good and fine, but shouldn't I be binding these results to
a model? And then bind UI comps to the model too?

Here's what I thought would happen (an initApp() function starts the
ball rolling with getAllActiveCustomers).

mx:WebService id=theWebservice ...

mx:operation name=getAllActiveCustomers/

mx:operation name=getCustomerDetail
mx:request{ActiveCustomerModel.CUST_ID}/mx:request
/mx:operation

/mx:WebService


mx:model id=ActiveCustomerModel
{theWebservice.getAllActiveCustomers.lastResult}
/mx:model

mx:model id=CustomerDetailModel
{theWebservice.getCustomerDetail.lastResult}
/mx:model


mx:Button label=Get details on: {ActiveCustomerModel.CUST_NAME}
click=theWebservice.getCustomerDetail.send()/

mx:DataGrid dataProvider={CustomerDetailModel} ...
...
/mx:DataGrid


The model can update the GUI components, and vise-versa, the
webservice requests can use the model and the webservice results can
update the model. Right? All one happy circle of pushing data about?

So, what are the best practices for data binding? Is this anywhere
even close? Is it sensible to use (I'm not even sure if this actually
would work)? Is there one rock-solid example of managing webservice
requests  results, and mx:models and user-input?

Should I send data within the
webservice.operationName.send(ActiveCustomerModel.CUST_ID)??? 

Should I go and sell used cars?

Help! Thanks!






 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Font changes to FlexBuilder IDE (2b3)

2006-06-05 Thread willmorganuk



Hi - does anyone know how to change the font of the MXML editor? I've
looked about in windowpreferences and can't seem to find anything. 

Thanks.









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] ComboBox default label.

2006-06-05 Thread willmorganuk
Hi All,

Any idea how I can add the usual Select An Item as the first label
to a comboBox? The labels are from a webservice and I'm using
lableField=GAL_NAME so there isn't one available to me. How do I add
that into the dataProvider?

Any help appreciated. Thanks, Will.





 Yahoo! Groups Sponsor ~-- 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Easy Noobie Question...Datagrid counting rows

2006-05-30 Thread willmorganuk



Hi all - does anyone know how to count the rows in a dg that are
populated with data? 

Getting the columns is simple enough with dg.columnCount but
dg.rowCount is giving an incorrect number.

Do I have to do a count of the dataprovider instead? 

Thanks, Will.









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] sending htmlText from RichTextEditor to webservice

2006-05-11 Thread willmorganuk



Hi!

Complete noobie question here. Seems like it should be easy to answer
though...

I want to send the htmlText from an mx:RichTextEditor to a coldfusion
webservice which then in turn inserts into an MS Access db.

I've played around with request{RTE.htmlText.toString()}/request
and had no luck. Any ideas?

THANKS!









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: sending htmlText from RichTextEditor to webservice

2006-05-11 Thread willmorganuk



Got it working now (RTE.htmlText), but the font size=10 tag is a
little large when it's placed on n html page :) need to find a way to
strip that out from the string...









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.