Cairngorm Event Question

I have an item renderer that is a link.  When it is clicked, I want a grid to be populated with data.  It's not happening.
Renderer segment:
public static const CLICK:String = 'UserAARetrieveEvent';
lb2.addEventListener(MouseEvent.CLICK, retrieveList);
addChild(lb2);
public function retrieveList(event:Event):void
dispatchEvent(new Event(UserAA_NmLk_Renderer.CLICK, true, false));
Events.as:
public static const USER_AA_RETRIEVE_EVENT:String = "UserAARetrieveEvent";
Controller.as:
addCommand( Events.USER_AA_RETRIEVE_EVENT, UserAARetrieveCommand );
UserAARetrieveCommand.as will do the execute/result/fault methods if I could get it to execute.

Simply because the command classes implement ICommand and the
signature of the method is:
public function execute( evt : CairngormEvent ) : void
OO concepts...

Similar Messages

  • Server side function not get called after dispatching cairngorm event second time on same page

    Hi All,
    I am facing a urgent issue regarding cairngorm event. Actually my page contain 3 button add,delete,save
    and  clicking of any button I do the respected functionality. For ex:
    I click the add button & on clicking of add button I fire a cairngorm evnt & after getting response from server side that the record is added
    I displayed a message that the record is added & update the data source.
    After addition of the record , with out going to other page if I perform the same functionaly(Like adding another record) on same page the cairngorm
    event not call the server side function  -  after debugging I find out that cairngorm event  reach to the corresponding excutecommand function & called that function  but it is not calling my server side function & I also din't get any error message .
    I dont know why  the server side function not get called?. similarly if I try for delete or update case the same things happend. Only for the first time it works properly but not for the second  time.
    Could any of  you please tell me why the cairngorm event not calling the server side function.
    Thank you for your kind assistance.
    Regards,
    Ujjwal

    Okay, well I think I've worked out the problem.
    In ASP.NET we would typically bind repeating controls such as DataLists and Repeaters manually using <i>Control</i>.DataBind(), because we're usually using a separate class library containing collections for our objects. Seems the SAP Table control doesn't like this approach.
    I changed the code so that the databinding is specified on the control, and call the Page's DataBind() method and it all worked fine.
    One tip: because the collection I used to bind to is in a separate class library, I receieved a <i>BC306523: Reference required to assembly MyAssemblyName...</i> message, even though I had a reference to the assembly in my project and the DLL is being properly deployed. To fix this, you must include the following directive at the top of the component's ASCX file:
    <%@ Assembly Name="AssemblyName" %>

  • Cairngorm Event Dispatcher

    I am facing one issue w.r,to event handling. In our Application, We are trying to update Operation. For this, we will select the values from the datagrid and click “update” button, it will popup in the new TitleWindow to modify the values and save. While clicking the update button, we are dispatching a Cairngorm event which will send the primary key to the database and retrieve the particular record in an Object.
    We created an object in UtilModelLocator and save the retrieved value in this Object in “result” method in a corresponding Event's Command; the values are not populated in the TitleWindow. It seems that, the both operation (1. Update Event 2. TitleWindow) are running simultaneously. So, the title window is not updated with the new values since the event operation is also in progress.
    We would like to modify it as; the title window will get fired only after the event operation is done completely.
    Could you please suggest us any solution to handle this issue?

    Hi,
    I tried dispatching the serachEvent in result method of the DeleteCommand but it seems that, it is not dispatching perfectly.
    Can we dispatch any Cairngorm events in another Cairngorm event result method?
    Regards,
    Sriivasan S

  • Cairngorm events dispatch problem

    Hi,
    We are developing a Flex 3 AIR application on Cairngorm and
    LCDS 2.6. The problem is some Cairngorm events don't get fired
    which results in null reference errors. But when we put an Alert is
    starts working. Can you suggest any solution and reason why its
    happening.
    Thanks,
    Oleg

    One thing that will cause events to appear not to fire is
    when you forget to instantiate your controller somewhere on your
    mxml file. The events will dispatch, but the command won't get
    executed.
    Another one - if you create custom events and override the
    constructor, you have to to call super(MyController.EVENT_TYPE) or
    else your event doesn't get bound to the command.

  • A query with respect to Cairngorm Events

    I am new to cairngorm .
    I am designing a StudentApplication using Flex with Cairngorm .
    I am struck at writing a Event class for Cairngorm .Please guide me
    Assume that this StudentApplication is suppourting Create , Delete , Update ,Read Operations .
    My question is do i need to write 4 Event classes , each representing that Operation ,
    Or is it possible to do in one Event class by taking 4 different Sring constants , each representing the Appropiate Action .
    package com.control
        import com.adobe.cairngorm.control.CairngormEvent;
        public class CreateEvent extends CairngormEvent
    public static const EVENT_CREATE_STUDENT : String = "EVENT_CREATE_STUDENT";
    My question is do i need to make Create , Update , Delete , Read Events for every
    Event of my Application ??
    Please guide me .
    Thanks in advance .

    Hi Kiran,
    You can write all the events in a single class say StudentEvent class and perform the appropriate action according to the event type(delete,update,add..etc) but if you do so you need to process the result returned from the remote service based on the event type in command later and write your logic.
    for ex:
    In your command layer(StudentCommand) in the result Handler...function you need to process this way..
    public function result( data : Object ) : void
                if(data != null)
                        if(_eventtype == "deletestudent")
                             // Write you logic to delete student
                        else if(_eventtype == "createstudent")
                             // Write you logic to create student
                        else if(_eventtype == "updatestudent")
                             // Write you logic to update student
                        else
                             // Write you logic to read student details
    deletestudent, createstudent, updatestudent, readsrstudent are the four event types which you decalre as Static Constants in StudentEventclass.
    If you wanna write 4 event classes for all then also its good so that you can have seperate wrapper class for all the events.
    If you want to have customized and reduced code then use the Single event class. Its based on your requirement...
    Thanks,
    Bhasker Chari

  • Albums and events question

    Hi when I drag folders containing photos into Iphoto it creates an event. What I currently do is after the event is created, I select an event, I hit the + sign in the bottom left and create an album.
    I like having my albums on the left side for quick access to my library of photos. The problem is that if I add 30 folders, 30 events are then created.
    I have to manually create an album out of each event one at a time. Is there any way that once an event is created it automatically creates and album. So say that 10 events are created, 10 albums will appear on the left.
    If I select a couple events and hit the + option and hit create an album, it will only create one album out of the events selected. I would like to select multiple events at one time and have multiple albums created instead of just one. How do I do that?
    Is what I want to do possible? thanks

    Well let me answer a question with a question
    Why have all your Events mimicked in Albums? IF you can find the pic in an Event, you can find it in an Album.
    To say nothing of all the basics: If you have the year, month, day. Title, keywords, camera a model etc etc you can use any (and all) of these to find your pics too.
    To merge Events: Simply drag one to another in the iPhoto Window.
    Regards
    TD

  • Cairngorm 3 Questions

    In order to use Cairngorm 3 on my project which I would like to do, there are several things I need to know.
    1) When will the Module Library be released?  Right now it is in Beta.
    2) Which parts of Cairngorm have been tested with Parsley 2.3?
    3) Which parts of Cairngorm do/do not work with Parsley 2.3 now?
    4) Which libraries of Cairngorm 3  will be upgraded to Parsley 2.3 and in what timeframe?
    5) Where is the roadmap for Module Library part of Cairngorm?
    I would really like to hear from Adobe on this.
    Thanks

    This is really a question for the folks that are involved in the Cairngorm product. Preferably, people on the Cairngorm team.  If there are other developers that have tried Parsley 2.3 libraries with any of the Cairngorm Libraries I would like to know what your experience has been
    as well.
    Thanks.

  • Alter system set events Question

    Version 10202 on AIX
    sql> alter system set events '4030 trace name heapdump level 536870917; name errorstack level 3';
    Questions about this statement..
    what this command is doing, i guess creating tracefile for event 4030...& the location of trace file would be the current direcotry?
    & how to setup same kind of event trace for other events, any tips....& what to check in tracefile for problem?

    The values for level I have record are 1, 2, 3, 8, and 32 so I am guessing the number shown is the address of a specific heap to be dumped. The address of a heap would potentially change with a change in the shared pool storage parameters. Where did you get the address value?
    The dump should go to the user background dump destination and not the current directory.
    PS - if you have metalink look at document: #218105.1 Introduction to ORACLE Diagnostic EVENTS
    HTH -- Mark D Powell --
    Message was edited by: MDP add PS to Metalink Doc
    mpowel01

  • Click Event Question - VB6 SDK 6.5

    A quick question for you guys:
    On the A/R Invoice form, I have a UDF that exists as a combo box.  I can trap the et_COMBO_SELECT event on that combo box just fine, however, I would like to generate a click event on the 'Name' field on the main form from the UDF et_COMBO_SELECT event.  The problem I'm running into is that because the form that contains the UDF has a different UID from the actual A/R Invoice main form, I get an error when I try to perform the click event on the 'Name' field.  The code I'm using is below.  Any help would be appreciated.
    Thanks,
    Greg
    '(A/R Invoice) Change value of eqp_DivisionCode global variable when combo select event triggers
    If eqp_pVal.FormType = -133 And eqp_pVal.FormMode = fm_ADD_MODE And _
       eqp_pVal.ItemUID = "U_Division" And eqp_pVal.EventType = et_COMBO_SELECT Then
       Set eqp_frm = SBO_Application.Forms.Item(FormUID)
       Set eqp_cmbDivision = eqp_frm.Items("U_Division").Specific
       eqp_DivisionCode = eqp_cmbDivision.Selected.Value
    End If

    Hi Greg,
    if you want to access a User Defined Field on a System Form but in header level you need to approach it as follows:
    If (pVal.EventType = et_FORM_LOAD And pVal.FormType = 139 And _
        pVal.Before_Action = True) Then
            Set oform = m_App.Forms.Item(FormUID)
            Dim oUsrForm As SAPbouiCOM.Form
            Dim num As Long
            Dim UDFformUID As String
            num = Right(FormUID, (Len(FormUID) - 2))
            num = num + 1
            UDFformUID = "F_" & num
            Set oform = m_App.Forms.Item(UDFformUID)
            oform.Items.Item("U_1").Specific.String = "Test"
        End If
    Regards,
    Lisa Mulchinock
    SAP SDK Consultant
    Galway

  • Calendar Event Question

    I'm new to iPhone, coming from Blackberry. I would like to be able to schedule an event to repeat every five weeks and another event every four weeks. Is there a way to customize this? If not, can you recommend an app which will give me a reminder every four and/or every five weeks? Thank you!

    Sorry, answering my own question. It seems you have to do it on iCloud. Kind of frustrating if you're not on your computer but at least it's possible. Thanks for reading.

  • 10G event question

    Hello all
    I am coding Forms in 10G and i have an architectural question. If i am coding a form event with plsql that is not hitting the database how do i know that it is not making a call to the app server. I am worried about coding events that make too many calls back to the server which limits performance. I have coded in .NET and the ability to have events on everything is great for features but really bad for performance. I don't want to create features that are hindering performance due to round trips.
    thanx in advance

    Hi,
    good, question, that I don't have an answer for. I would assume it to be three round trips because the trigger fire in different times and as far as I remember Forms only bundles triggers that are on a specific item.
    Forms does not know whether or not PLSQL code is associated with a trigger and this currently is discussed internally at Oracle as well as here on the forum (some month ago).
    The outcome so far is that it is difficult to not ping the server about actions taking place on thw Forms client because it could be a navigation involved. This, if not reported back to the server, leads e.g. to the :system.cursor_item giving the wrong return value. As said, this is something we are discussing but haven't come to a conclusion.
    For you this means that no matter if there is a PLSQL code associated with a trigger, a network round trip is made. However, keep in mind that we are not issuing a round trip for all triggers on an item but bundle all triggers that fire to the same time (e.g. all POST triggers on an item will cause one roundtrip)
    Frank

  • Iphoto Events Question

    This is probably a very easy question.
    If you have one event called Trips and drag photos out of that event into a few others to break them down into seperate events like Trips 2007 and Trips 2008, do the pictures you drag over to new albums get copied over so you can delete the original Trips event or does it just create a pointer from original event to new event?
    I just want to be sure so I dont have multiple copies of photos taking up space if I dont have to.
    Thanks in advance

    Patrick
    You need to be really clear on your Terminology for this one.
    do the pictures you drag over to new albums get copied over so you can delete the original *Trips event* or does it just create a pointer from *original event to new event* ?
    Are you talking about Albums or Events?
    When you drag from Event to Event the actual file is moved. Events in the iPhoto Window correspond exactly with the Folders in the Originals Folder in the iPhoto Library package file (Right click on it in the Pictures Folder -> Show Package Contents). You can move photos between Events, you can rename Events, edit them, create them, as long as you do it via the iPhoto Window. Check out the Info Pane (wee 'i', lower left) the name and date fields are editable. Edit a Event Name using the Info Pane, the Event Folder in iPhoto Library/Originals will also have the new name.
    When you add a photo to an Album it's a reference and not moving an actual file.
    So which are you talking about, Albums or Events?
    Regards
    TD

  • Events question can anyone help?

    I am brand new to the mac world...( bye bye PC forever!) I love it. I just have a quick question about iphoto events. I have my photos in events and I like that. when i double click on an event to open it up, I used to see thumbnails on the page of all events. For whatever reason, now when I go to open up a particular event it opens with one picture at a time. large pic. how do I get back to the thumbnails...I see thumbnails when I scroll over the event.....
    thanks! Nancy

    Nancy
    Welcome to the Apple Discussions.
    At the bottom right of the iPhoto Window is a slider. Drag it left.
    Regards
    TD

  • Postmerge session event question

    We have implemented a custom session event listener that utilizes the postmerge session event.
    We have observed some unexpected behavior and were hoping that the product architect or manager could explain this behavior.
    We have the following graph of objects:
    A has a many-to-many privately owned collection of B
    B in turn has a many-to-many privately owned collection of C
    After commiting a transaction involving object A we observe:
    postMerge event for A
    postMerge event of each of A's privately owned Bs
    yet NO postMerge event for any of B's privately owned Cs
    Questions:
    1) Is this the expected behavior?
    2) Since we need to do some processing of Cs, we are using the postMerge event that occurs on Bs to update the Cs. Is this a safe/correct approach?
    3) In a transaction that involved only updates to Cs, (no changes to A or B), would we see a postMerge event for each updated C?
    Thanks in advance for any clarification you can provide.
    ...Steve

    You could paste the results (tkprof ?) of the trace.
    The "missing" time could be an uninstrumented wait --- i.e. a wait event that is not captured in v$session_event. Particularly because you are using external calls.
    For example, see "Case Study 1" at http://blog.tanelpoder.com/2007/08/27/advanced-oracle-troubleshooting-guide-part-2-no-magic-is-needed-systematic-approach-will-do/
    Hemant K Chitale

  • Emailing calendar event question

    Is it possible to email a calendar event from my iMac to someone with an iPhone, so they can easily add the event to their calendar?  If I email an event, the outgoing message says:
    "To add it to your calendar, click the link below"
    But when they click the iCal...ics link in the email, nothing happens.  I know if I view the same email on my Mac in the Mail app and click on the link, I'm prompted to add the event to my calendar.
    -Thanks

    Sorry, answering my own question. It seems you have to do it on iCloud. Kind of frustrating if you're not on your computer but at least it's possible. Thanks for reading.

Maybe you are looking for

  • Error while deploying a simple bpel process

    Hello All, I have installed jdeveloper 11.1.1.3.0 and created a simple bpel process using string concat function and when I tried to deploy the same BPEL to process to a SOA server, I am getting the below error. (The connection to remote weblogic ser

  • Header or Index facility on iBooks Author and Pages?

    I'm an academic who has just published an eBook. I used iBooks Author to write it, thinking that would be as convenient as Apple equipment normally is.... BUT: Neither iBooks Author nor Pages has a)  Index facility b)  Header facility..... Finally, t

  • How to back up Bootcamp partition in 10.7 Lion

    Greetings! I would like to know if anyone could explain how to back up a bootcamp partition in 10.7 Lion. Winclone does not work in the new 10.7. I see the partition in Disk Utility, but how do I back it up? If I ever needed to restore it, how would

  • Quartz Extreme not supported after 10.4.7 update

    I recently updated to 10.4.7 and now quartz extreme is not supported. How can I resolve this problem? Mac Mini 1.42 GHz PowerPC G4   Mac OS X (10.4.7)   512 Mb RAM

  • Uninstall CSxx before install CS6

    I have installed Master Suite CS4, 5, 5.5.  Can I uninstall them all before installing CS6?  Or do I have to keep them? I have a 64bit Vista and I will be updating to Win 7 in the next month.  So I will have to re-install.  During that re-install, sa