[flexcoders] Cairngorm Event Question

2012-09-21 Thread Davidson, Jerry
Where can I ask a Cairngorm/Flex Event Question?  I posted in the Adobe forum, 
but as usual have not received any replies.

The question is how to get something to happen.  When the user clicks an item 
renderer in one grid I want to populate a second grid with data.

Here are the relevant parts=
UserAA_NmLk_Renderer.mxml:
  public static const CLICK:String = 'USER_AA_RETRIEVE_EVENT';

  override public function set data(value:Object):void
  {
removeAllChildren();

if (value == null ||
  value == )
{
  return;
}

super.data = value;

var lb2:LinkButton = new LinkButton();

lb2.label = value.individualName +
  :  + value.rspVer;

lb2.addEventListener(MouseEvent.CLICK, retrieveList);
addChild(lb2);
  }

  public function retrieveList(event:Event):void
  {
dispatchEvent(new Event(UserAA_NmLk_Renderer.CLICK, true, false));
  }

Event.as:
  public static const USER_AA_RETRIEVE_EVENT:String = UserAARetrieveEvent;

Controller.as:
  addCommand( Events.USER_AA_RETRIEVE_EVENT, UserAARetrieveCommand );

When I step through it I get to the dispatch and the proper label appears in 
the top grid.  But I never get to UserAARetrieveCommand.

I am getting very desperate on this and have been fighting it for days.

Any help including the problem or where to go with the problem will be greatly 
appreciated!

Jerry


[flexcoders] Cairngorm Event Question

2008-06-18 Thread donvoltz
I have been building on my cairngorm experience and have come up to a
snag.

I understand the whole idea about using the controller to trap and
respond to events, however, how do I deal with custom view components
that need to respond to an event.

For example, I have a custom component that contains an advanced data
grid. I am filling the modelLocator with data from the server and
using this as the data provider for the advanced data grid. The
problem I have is when the user selects a different date, I generate a
cairngorm event to load new data from the server. This information is
dealt with in the controller, however, I am not able to send the event
to the custom component to refresh the advance data grid and display
the data.

Would someone help me to understand how I can use the events, or
generate a new custom event to trigger some activity within a custom
view component

Thanks for the help

Don



Re: [flexcoders] Cairngorm Event Question

2008-06-18 Thread Alen Balja
You can try Universal Mind Cairngorm Extensions:

http://code.google.com/p/flexcairngorm/

Among others it has these Event features:


   - Built-in support to transport responders for direct view or business
   logic callbacks.
   - Implementation of AnnounceFaultEvent to allow business logic to
   centralize error reporting and logging.
   - Implementation of EventGenerator to allow developers to automate
   dispatching of sequences of events.
   - Events now should self-dispatch... for direct deliver to the
   business/controller layer.


Alen



On Thu, Jun 19, 2008 at 6:18 AM, donvoltz [EMAIL PROTECTED] wrote:

   I have been building on my cairngorm experience and have come up to a
 snag.

 I understand the whole idea about using the controller to trap and
 respond to events, however, how do I deal with custom view components
 that need to respond to an event.

 For example, I have a custom component that contains an advanced data
 grid. I am filling the modelLocator with data from the server and
 using this as the data provider for the advanced data grid. The
 problem I have is when the user selects a different date, I generate a
 cairngorm event to load new data from the server. This information is
 dealt with in the controller, however, I am not able to send the event
 to the custom component to refresh the advance data grid and display
 the data.

 Would someone help me to understand how I can use the events, or
 generate a new custom event to trigger some activity within a custom
 view component

 Thanks for the help

 Don

  



[flexcoders] Cairngorm event question.

2007-05-22 Thread Tero Pikala
Hi 

 

I’m designing my first Cairngorm application and would like to have opinions
about events to create. 

 

I will definitely have LoginEvent which takes place after user has entered
credentials and clicked “Login” button. 

 

Should I also create events like LoginSuccessfulEvent, LoginFailedEvent and
PasswordExpiredEvent which would happen in result to a server response? 

 

I think I should but this being my first project I’m not sure about it and
would like to have some feedback from the experts. 

 

Thanks 

 

 

 

Tero 


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: 20/05/2007
07:54



No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: 20/05/2007
07:54
 


RE: [flexcoders] Cairngorm event question.

2007-05-22 Thread Dimitrios Gianninas
Not neccesary cause you will handle the response from the server in your 
result() method. I only create the LoginSuccessEvent to let the main app know, 
hey all good, show the app now.
 
Dimitrios Gianninas
Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tero 
Pikala
Sent: Tuesday, May 22, 2007 8:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm event question.



Hi 

I’m designing my first Cairngorm application and would like to have opinions 
about events to create. 

I will definitely have LoginEvent which takes place after user has entered 
credentials and clicked “Login” button. 

Should I also create events like LoginSuccessfulEvent, LoginFailedEvent and 
PasswordExpiredEvent which would happen in result to a server response? 

I think I should but this being my first project I’m not sure about it and 
would like to have some feedback from the experts. 

Thanks 

Tero 


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: 20/05/2007 07:54



No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: 20/05/2007 07:54


 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pieces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L’expéditeur original ne renonce a aucun 
privilege ou a aucun autre droit si le présent message a été transmis 
involontairement ou s’il est retransmis sans son autorisation.  Si vous n’etes 
pas le destinataire visé du présent message ou si vous l’avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pieces jointes, de votre systeme.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pieces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient etre 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l’expéditeur.