Re: [flexcoders] Code Highlighting Bug?

2007-01-25 Thread Steve House

Brendan,

I am getting the same problem with:

mx:DateField id=dtNeeded disabledRanges={[{rangeEnd: new Date()}]}
   selectedDate={detailObject.dtNeeded}
editable=true /

Really Annoying!  Adobe, is this a bug and is there a workaround???

Steve

On 1/22/07, Brendan Meutzner [EMAIL PROTECTED] wrote:


  Hi,

The following line causes the code-highlighting features in FlexBuilder to
stop working...

DateChooser selectedRanges={[{rangeStart:range1Start,
rangeEnd:range1End}]}  /

Is this a bug?

Brendan

 



[flexcoders] DataGrid Tooltips

2007-01-24 Thread Steve House
With Flex 2, when the user mouses over a row in a datagrid, I would
like to show details of that particular row's object in the tooltip.
The datagrid dataProvider is an ArrayCollection of objects with many
properties.  Only a few of the properties are shown in the DataGrid.

I am currently using this to get a custom tool tip...

(mx:script section)
private function createCustomTip(title:String, body:String,
event:ToolTipEvent):void {
   var rtt:RequestToolTip = new RequestToolTip();
   rtt.title = title
   rtt.bodyText = body;
   event.toolTip = rtt;
}


mx:DataGrid id=dgRequestList dataProvider={requests} toolTip= 
toolTipCreate=createCustomTip('DELETE','Click this button to delete
the report.', event)
   mx:columns
  mx:DataGridColumn headerText=Id dataField=iRequestId
width=50 / mx:DataGridColumn 
headerText=Title
dataField=sRequestTitle width=300/
   /mx:columns
/mx:DataGrid

For example, these objects also have sRequestDescription properties
that I would like to show in the tooltip.

Thanks in advance,

Steve House


[flexcoders] Popup TitleWindow with Cairngorm 2

2007-01-18 Thread Steve House
Does anyone have any advice/examples of passing data between a view
and a TitleWindow launched with the PopupManager specifically using
Cairngorm 2?

Thanks,

Steve House


Re: [flexcoders] Binding a DataGrid to an Array

2007-01-17 Thread Steve House

OK.  I think I have that working.

Thanks All!

On 1/17/07, João Fernandes [EMAIL PROTECTED] wrote:


  Steve,

why not use an ArrayCollection? in your result function do something like
this

function result(data:Object):void{
var myModel : ModelLocator : ModelLocator.getInstance();
myModel.myArrayCollection = new ArrayCollection(data.result);
}

You should be able to add Items to your ArrayCollection and see your
datagrid updated.

João Fernandes


On 17/01/07, stevehousefl [EMAIL PROTECTED] wrote:

   Using Cairngorm 2

 I have a datagrid in my view that is bound to an array in my model
 object. My app adds a new item to the array, but the datagrid is not
 updated. I see that this may not be possible using arrays and that
 arraycollections are recommended. What is the best way to bind
 (something) to this array and get the datagrid to update? Any advice?

 FYI... The property is an array because it is linked to a ColdFusion
 component array property. I tried using Array Collection on my model
 object, but it would not convert.

 Thanks in advance,

 Steve




--

João Fernandes
 



Re: [flexcoders] Re: Cairngorm Newbie Question - Please set me straight

2006-12-06 Thread Steve House

Hank,

Thanks for your reply.  I am not sure I am explaining this correctly but let
me try adding these details and see if this helps.  My backend is ColdFusion
and I have created Flex remote objects to several CFCs that each correspond
to a separate business object (not necessarily one table).  For example, I
have an employeeGateway.cfc who's methods all pertain to employees (e.g.
readEmployeeById(), readEmployeeByUsername(), addEmployeePermission()).

From what I understand I have to set up a remote object connection to each

CFC that I want to talk to.  Although I could create a single CFC to group
together lookup table queries I prefer to keep them in their distinct CFCs
to allow for future methods related to those objects.

Does this clear things up at all or am I still way off?  Thanks again for
your help!

Steve

On 12/5/06, hank williams [EMAIL PROTECTED] wrote:


  Steve,

You definitely shoud not have a business delegate for every lookup
table. I dont really understand the detail of what you explained in
your email, but communications between a client and a server should
never be as granular as mapping just directly to a table. Think of
communications with a server as asking high level questions like, who
are my top spending customers this month. This might require access
to several tables. This calculation work should be done on the server
and the results should then be delivered from the server to the
client. The client should generally not be taking the results of
several table searches and intersecting, joining, merging or anything
of the sort. That is really server side work.

Regards,
Hank


On 12/5/06, stevehousefl [EMAIL PROTECTED] cyberdust%40gmail.com
wrote:
 Douglas (and all),

 Since they are not dependent on each other, I went with just having a
 single command fire 6 new events. I will look into the MacroCommand
 though.

 As far as the 6 different datasources, it is not. Perhaps this is
 incorrect, but I have a business delegate for each lookup table and a
 service (remote object) for each Coldfusion component that I am
 talking to.

 For example:

 My EVENT_LOAD_CONTROL_PANEL executes the LoadControlPanelDataCommand
 The LoadControlPanelDataCommand fires the EVENT_READ_ALL_QUEUES (and 5
 other events)
 The EVENT_READ_ALL_QUEUES executes the ReadAllQueuesCommand
 The ReadAllQueuesCommand creates a QueueDelegate and executes
 QueueDelegate.readAllQueues()
 The QueueDelegate creates an instance of the ServiceLocator and
 executes .getRemoteObject(queueService)
 The queueService is configures in Services.mxml as

 mx:RemoteObject
 id=queueService
 destination=ColdFusion
 source=CF.queueHandler
 showBusyCursor=true
 result=event.token.resultHandler( event );
 fault=event.token.faultHandler( event );/

 Does this make sense

 Thanks,

 Steve


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Douglas McCarroll
 [EMAIL PROTECTED] wrote:
 
  Hi Steve,
 
  I'm going to take a stab at this as I've been studying the Command
  pattern (as defined in GoF) and Cairngorm lately. In fact I'll be
  presenting on the subject here in Boston tomorrow evening, so this is
  right up my alley. (www.bfpug.us) :-)
 
   how do you handle 6 different results since there is only 1
   onResult function.
 
  I think that the answer here is you don't. :-)
 
  Cairngorm has a SequenceCommand which has:
 
  public var nextEvent : CairngormEvent;
 
  You can then call its executeNextCommand() from your result() method
  which launches that event.
 
  This will work well enough if you need results from command_1 before
 you
  make the service call in command_2, which you need before command_3,
 etc.
 
  On the other hand, if that's not the case, what to do?
 
  The Gang Of Four chapter on the Command pattern describes a
 MacroCommand
  that executes a number of (Simple)Commands. As described it seems to
  simply fire them off, one after another. Wouldn't be hard to roll your
  own, extending ICommand, with an array property, and passing in
Command
  objects.
 
  I could even see creating an MacroEvent class that kept track of
 whether
  its Commands had finished and that then did something when all were
  finished.
 
  Other Cairngorm programmers, wiser than I, will probably ask you wise
  questions about why you wish to pull data from six different data
  sources... :-)
 
 
  Douglas
 
 
  -
 
  Douglas McCarroll
 
  CairngormDocs.org Webmaster
  http://www.CairngormDocs.org
 
  Flex Developer
  http://www.brightworks.com
  617.459.3840
 
  -
 
 
 
 
 
 
  stevehousefl wrote:
  
   I have a command that I would like to have pull lookup data from 6
   different BusinessDelegates. Should that one command call all 6
   delegates or should it fire 6 new events that call 6 new commands?
  
   If the one command should call all 6 delegates in its execute
   function, how do you handle 6 different results 

Re: [flexcoders] Problems trying to deploy Flex app on CF server

2006-12-06 Thread Steve House

Can you provide more details?

On 12/6/06, stephen50232 [EMAIL PROTECTED] wrote:


  Hi,

I'm trying to deploy my first Flex application on a coldfusion server.
The login page of the application runs fine until I submit the form,
then I get a:

Property message not found on mx.messaging.messages.ErrorMessage and
there is no default value.

What could be the cause of this error?

 



Re: [flexcoders] Re: Cairngorm Newbie Question - Please set me straight

2006-12-06 Thread Steve House

Hank,

Thanks for your reply.  I am not sure I am explaining this correctly but let
me try adding these details and see if this helps.  My backend is ColdFusion
and I have created Flex remote objects to several CFCs that each correspond
to a separate business object (not necessarily one table).  For example, I
have an employeeGateway.cfc who's methods all pertain to employees (e.g.
readEmployeeById(), readEmployeeByUsername(), addEmployeePermission()).

From what I understand I have to set up a remote object connection to each

CFC that I want to talk to.  Although I could create a single CFC to group
together lookup table queries I prefer to keep them in their distinct CFCs
to allow for future methods related to those objects.

Does this clear things up at all or am I still way off?  Thanks again for
your help!

Steve

On 12/5/06, hank williams [EMAIL PROTECTED] wrote:


  Steve,

You definitely shoud not have a business delegate for every lookup
table. I dont really understand the detail of what you explained in
your email, but communications between a client and a server should
never be as granular as mapping just directly to a table. Think of
communications with a server as asking high level questions like, who
are my top spending customers this month. This might require access
to several tables. This calculation work should be done on the server
and the results should then be delivered from the server to the
client. The client should generally not be taking the results of
several table searches and intersecting, joining, merging or anything
of the sort. That is really server side work.

Regards,
Hank


On 12/5/06, stevehousefl [EMAIL PROTECTED] cyberdust%40gmail.com
wrote:
 Douglas (and all),

 Since they are not dependent on each other, I went with just having a
 single command fire 6 new events. I will look into the MacroCommand
 though.

 As far as the 6 different datasources, it is not. Perhaps this is
 incorrect, but I have a business delegate for each lookup table and a
 service (remote object) for each Coldfusion component that I am
 talking to.

 For example:

 My EVENT_LOAD_CONTROL_PANEL executes the LoadControlPanelDataCommand
 The LoadControlPanelDataCommand fires the EVENT_READ_ALL_QUEUES (and 5
 other events)
 The EVENT_READ_ALL_QUEUES executes the ReadAllQueuesCommand
 The ReadAllQueuesCommand creates a QueueDelegate and executes
 QueueDelegate.readAllQueues()
 The QueueDelegate creates an instance of the ServiceLocator and
 executes .getRemoteObject(queueService)
 The queueService is configures in Services.mxml as

 mx:RemoteObject
 id=queueService
 destination=ColdFusion
 source=CF.queueHandler
 showBusyCursor=true
 result=event.token.resultHandler( event );
 fault=event.token.faultHandler( event );/

 Does this make sense

 Thanks,

 Steve


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Douglas McCarroll
 [EMAIL PROTECTED] wrote:
 
  Hi Steve,
 
  I'm going to take a stab at this as I've been studying the Command
  pattern (as defined in GoF) and Cairngorm lately. In fact I'll be
  presenting on the subject here in Boston tomorrow evening, so this is
  right up my alley. (www.bfpug.us) :-)
 
   how do you handle 6 different results since there is only 1
   onResult function.
 
  I think that the answer here is you don't. :-)
 
  Cairngorm has a SequenceCommand which has:
 
  public var nextEvent : CairngormEvent;
 
  You can then call its executeNextCommand() from your result() method
  which launches that event.
 
  This will work well enough if you need results from command_1 before
 you
  make the service call in command_2, which you need before command_3,
 etc.
 
  On the other hand, if that's not the case, what to do?
 
  The Gang Of Four chapter on the Command pattern describes a
 MacroCommand
  that executes a number of (Simple)Commands. As described it seems to
  simply fire them off, one after another. Wouldn't be hard to roll your
  own, extending ICommand, with an array property, and passing in
Command
  objects.
 
  I could even see creating an MacroEvent class that kept track of
 whether
  its Commands had finished and that then did something when all were
  finished.
 
  Other Cairngorm programmers, wiser than I, will probably ask you wise
  questions about why you wish to pull data from six different data
  sources... :-)
 
 
  Douglas
 
 
  -
 
  Douglas McCarroll
 
  CairngormDocs.org Webmaster
  http://www.CairngormDocs.org
 
  Flex Developer
  http://www.brightworks.com
  617.459.3840
 
  -
 
 
 
 
 
 
  stevehousefl wrote:
  
   I have a command that I would like to have pull lookup data from 6
   different BusinessDelegates. Should that one command call all 6
   delegates or should it fire 6 new events that call 6 new commands?
  
   If the one command should call all 6 delegates in its execute
   function, how do you handle 6 different results 

Re: [flexcoders] Re: Cairngorm Newbie Question - Please set me straight

2006-12-06 Thread Steve House

I do have a service for each CFC.
I have a BusinessDelegate for each as well with a method for each method on
the CFC.

Ex:
public class EmployeeDelegate
   {
   public function EmployeeDelegate( responder : Responder )
   {
   this.service = ServiceLocator.getInstance
().getRemoteObject(employeeService);
   this.responder = responder;
   }


   public function readEmployeeByUsername(sUsername:String) : void
   {
   var call : Object = service.readEmployeeByUsername(sUsername);
   call.resultHandler = responder.onResult;
   call.faultHandler = responder.onFault;
   }
   private var responder : Responder;
   private var service : Object;
   }


On 12/6/06, Douglas McCarroll [EMAIL PROTECTED]
wrote:


  If I understand correctly (newbie speaking) you'd have:

- A service specified on ServiceLocator for each of your CFCs

- A BusinessDelegate for each method that you'll be calling

Steve House wrote:

 Hank,

 Thanks for your reply. I am not sure I am explaining this correctly
 but let me try adding these details and see if this helps. My backend
 is ColdFusion and I have created Flex remote objects to several CFCs
 that each correspond to a separate business object (not necessarily
 one table). For example, I have an employeeGateway.cfc who's methods
 all pertain to employees (e.g. readEmployeeById(),
 readEmployeeByUsername(), addEmployeePermission()). From what I
 understand I have to set up a remote object connection to each CFC
 that I want to talk to. Although I could create a single CFC to group
 together lookup table queries I prefer to keep them in their distinct
 CFCs to allow for future methods related to those objects.

 Does this clear things up at all or am I still way off? Thanks again
 for your help!

 Steve

 On 12/5/06, *hank williams*  [EMAIL PROTECTED] hank777%40gmail.com
 mailto:[EMAIL PROTECTED] hank777%40gmail.com wrote:

 Steve,

 You definitely shoud not have a business delegate for every lookup
 table. I dont really understand the detail of what you explained in
 your email, but communications between a client and a server should
 never be as granular as mapping just directly to a table. Think of
 communications with a server as asking high level questions like, who
 are my top spending customers this month. This might require access
 to several tables. This calculation work should be done on the server
 and the results should then be delivered from the server to the
 client. The client should generally not be taking the results of
 several table searches and intersecting, joining, merging or anything
 of the sort. That is really server side work.

 Regards,
 Hank



 On 12/5/06, stevehousefl [EMAIL PROTECTED] cyberdust%40gmail.com
 mailto:cyberdust% cyberdust%2540gmail.com wrote:
  Douglas (and all),
 
  Since they are not dependent on each other, I went with just having a
  single command fire 6 new events. I will look into the MacroCommand
  though.
 
  As far as the 6 different datasources, it is not. Perhaps this is
  incorrect, but I have a business delegate for each lookup table and a
  service (remote object) for each Coldfusion component that I am
  talking to.
 
  For example:
 
  My EVENT_LOAD_CONTROL_PANEL executes the LoadControlPanelDataCommand
  The LoadControlPanelDataCommand fires the EVENT_READ_ALL_QUEUES
 (and 5
  other events)
  The EVENT_READ_ALL_QUEUES executes the ReadAllQueuesCommand
  The ReadAllQueuesCommand creates a QueueDelegate and executes
  QueueDelegate.readAllQueues()
  The QueueDelegate creates an instance of the ServiceLocator and
  executes .getRemoteObject(queueService)
  The queueService is configures in Services.mxml as
 
  mx:RemoteObject
  id=queueService
  destination=ColdFusion
  source=CF.queueHandler
  showBusyCursor=true
  result=event.token.resultHandler( event );
  fault=event.token.faultHandler( event );/
 
  Does this make sense
 
  Thanks,
 
  Steve
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 mailto:flexcoders% flexcoders%2540yahoogroups.com, Douglas McCarroll
  [EMAIL PROTECTED] wrote:
  
   Hi Steve,
  
   I'm going to take a stab at this as I've been studying the Command
   pattern (as defined in GoF) and Cairngorm lately. In fact I'll be
   presenting on the subject here in Boston tomorrow evening, so
 this is
   right up my alley. (www.bfpug.us http://www.bfpug.us) :-)
  
how do you handle 6 different results since there is only 1
onResult function.
  
   I think that the answer here is you don't. :-)
  
   Cairngorm has a SequenceCommand which has:
  
   public var nextEvent : CairngormEvent;
  
   You can then call its executeNextCommand() from your result()
 method
   which launches that event.
  
   This will work well enough if you need results from command_1
 before
  you
   make the service call in command_2, which you need before
 command_3,
  etc.
  
   On the other hand, if that's not the case, what to do

Re: [flexcoders] Re: Cairngorm Newbie Question - Please set me straight

2006-12-06 Thread Steve House

OK Thanks for your help.

Steve

On 12/6/06, hank williams [EMAIL PROTECTED] wrote:


  Steve,

I dont know much about cold fusion, but as a general architectural
strategy I think you are mistaken in thinking that combining CFCs to group
together lookups.

Programming is all about creating simple functions, then creating more
complex functions that use the simpler functions and then more complex
functions that use those, etc. I dont know what the information you are
trying to display is, but I would generally recommend (without knowing the
actual specifics here) that you should, as I initially suggested, do this
grouping on the server side. This is the kind of work that servers are
suposed to do. There is no reason the simpler functions cant also be
accessible to the client or to other objects on the server, but if you have
a complicated function that builds on a variety of queries that is almost
always done on the server side.

Of course as I said, I dont know anything about cold fusion, so the
mechanics of exactly how you do what I am talking about in CF is beyond me.
But If you are doing a ton of massaging of data in the client, it is a sign
that you server side code is not delivering high level enough information.

Regards,
Hank


On 12/6/06, Steve House [EMAIL PROTECTED] wrote:

  Hank,

 Thanks for your reply.  I am not sure I am explaining this correctly but
 let me try adding these details and see if this helps.  My backend is
 ColdFusion and I have created Flex remote objects to several CFCs that each
 correspond to a separate business object (not necessarily one table).  For
 example, I have an employeeGateway.cfc who's methods all pertain to
 employees (e.g. readEmployeeById(), readEmployeeByUsername(),
 addEmployeePermission()).  From what I understand I have to set up a remote
 object connection to each CFC that I want to talk to.  Although I could
 create a single CFC to group together lookup table queries I prefer to keep
 them in their distinct CFCs to allow for future methods related to those
 objects.

 Does this clear things up at all or am I still way off?  Thanks again
 for your help!

 Steve

 On 12/5/06, hank williams  [EMAIL PROTECTED] wrote:

Steve,
 
  You definitely shoud not have a business delegate for every lookup
  table. I dont really understand the detail of what you explained in
  your email, but communications between a client and a server should
  never be as granular as mapping just directly to a table. Think of
  communications with a server as asking high level questions like, who
  are my top spending customers this month. This might require access
  to several tables. This calculation work should be done on the server
  and the results should then be delivered from the server to the
  client. The client should generally not be taking the results of
  several table searches and intersecting, joining, merging or anything
  of the sort. That is really server side work.
 
  Regards,
  Hank
 
 
  On 12/5/06, stevehousefl [EMAIL PROTECTED] cyberdust%40gmail.com
  wrote:
   Douglas (and all),
  
   Since they are not dependent on each other, I went with just having
  a
   single command fire 6 new events. I will look into the MacroCommand
   though.
  
   As far as the 6 different datasources, it is not. Perhaps this is
   incorrect, but I have a business delegate for each lookup table and
  a
   service (remote object) for each Coldfusion component that I am
   talking to.
  
   For example:
  
   My EVENT_LOAD_CONTROL_PANEL executes the LoadControlPanelDataCommand
   The LoadControlPanelDataCommand fires the EVENT_READ_ALL_QUEUES (and
  5
   other events)
   The EVENT_READ_ALL_QUEUES executes the ReadAllQueuesCommand
   The ReadAllQueuesCommand creates a QueueDelegate and executes
   QueueDelegate.readAllQueues()
   The QueueDelegate creates an instance of the ServiceLocator and
   executes .getRemoteObject(queueService)
   The queueService is configures in Services.mxml as
  
   mx:RemoteObject
   id=queueService
   destination=ColdFusion
   source=CF.queueHandler
   showBusyCursor=true
   result=event.token.resultHandler( event );
   fault=event.token.faultHandler( event );/
  
   Does this make sense
  
   Thanks,
  
   Steve
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  Douglas McCarroll
   [EMAIL PROTECTED] wrote:
   
Hi Steve,
   
I'm going to take a stab at this as I've been studying the Command
pattern (as defined in GoF) and Cairngorm lately. In fact I'll be
presenting on the subject here in Boston tomorrow evening, so this
  is
right up my alley. (www.bfpug.us) :-)
   
 how do you handle 6 different results since there is only 1
 onResult function.
   
I think that the answer here is you don't. :-)
   
Cairngorm has a SequenceCommand which has:
   
public var nextEvent : CairngormEvent;
   
You can then call its executeNextCommand() from your result()
  method
which launches

[flexcoders] Re: Problem with Tree Control and custom ITreeDataDescriptor

2006-06-07 Thread Steve House
I should have mentioned that this is Flex 2 Beta 3.

Sorry,

Steve

On 6/7/06, Steve House [EMAIL PROTECTED] wrote:
 Help, I have created a custom ITreeDataDescriptor using a class named
 subject.  Here is the  beginning of the class definition...

 public dynamic class subject implements ITreeDataDescriptor
 {

 public var iSubjectId:Number = 0;
 public var iQueueId:Number = 0;
 public var iParentSubjectId:Number = 0;
 public var sSubject:String = ;
 public var iCreatedById:Number = 0;
 public var dtCreated:Date = null;
 public var iDeletedById:Number = 0;
 public var dtDeleted:Date = null;
 public var children:subject[];
 ...


 All of my subjects appear in the tree in the appropriate hierarchy,
 but the problem is that all of the items show up as branches including
 the end points.  I have tried implementing a custom public function
 isBranch(node:Object, model:Object=null):Boolean, and even making it
 always return false, but it never change the problem.

 Can anyone tell me what I need to do?

 Thanks in advance,

 Steve House



 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/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/