Communicate between responders and events in Cairngorm

Hello all
I am implementing presentation model pattern in Cairngorm. Now I generally separate the responder from command classes for the sake of dividing the responsibilities - command basically set the properties on model & execute sequence commands (if any), while responders handle the task of acting on the response received from server side.
But I have a scenario where I have defined a callback function in my event class and need to call it in the responder. How can I do that? Does the responder have any idea which event triggered the whole process? If yes, how can it refer that particular event class and its methods/properties?
Can somebody help me out here?
With best regards
ShiVik

Thanks Paul.
I have basically understood the cairngorm workflow and the presentation model. I have implemented Cairngorm quite easily in many of my views. But the problems were there to see as you mentioned in your blogs about presentation patterns. Since then, I have been seeking out best practices using presentation model. But it keeps on giving me a hard time.
Sometimes it just doesn't seem worth it. Like I had created a loginState property in modelLocator to manage the view states in a login screen app. The states were ERROR, LOGGED_IN, LOGGED_OUT. The view was bound directly to modelLocator's property.
But when I thought about implementing it in presentation model, I could think about following things:
Creating a viewState property in presentation model for the view.
Binding the view to the property in presentation model. Till here everything goes smoothly.
When I update the loginState of modelLocator, I also need to update viewState of presentation model????
To update the viewState of presentation model, I need to create a callback function in presentation model.
I need to update the event as shown in this example and update the instance of that event, but what do I pass as reference to callback function?
Too much going on for me to pickup.
With best regards
ShiVik

Similar Messages

  • Can't communicate between JS and ExtendScript

    I tried this: (according to the docs it should work)
    In JS
    var csInterface = new CSInterface();
    csInterface.evalScript('$.test()', function(r){console.log(r)})
    In JSX
    $.test = function() {
                       alert("test");
                        return 65656;
    I'm seeing the alert, but the logged statement is empty. Anyone know how to communicate between the two?

    I tried a few ways but the only way I could do it properly was pretty involved:
    1) Use Socket.io to communicate between generator and extension
    2) When you want to raise an "event" from JSX, update generator settings, use a unique id for your event
    3) Parse the event in generator
    4) Emit the event from generator to extension.

  • Difference between action and event

    Hi
    while creating an action, we will find action & event handler.  What is the difference between Action and event.  If anyone provide with examples, it will be helpful for me.
    regards,
    vijaya.

    HI,
    In simple words we can put it as..IF you need any user interaction.. i.e. if your logic is based upon how user interact with your application then use Action..
    e.g. Buttons, dropdown UI elements...etc..
    Means actions are act between user and your application.
    But your application not only communicate with user.But also communicate with server too.
    so to communicate with server you need and Event
    Note. In Web Dynpro, events are called actions if they are sent from the client to the server.

  • Driver to communicate between LabVIEW and Omron CJ1G PLC

    I am trying to communicate between my Omron PLC (Model CJ1G) and LabVIEW.  I want to be able to read specific registers and be able to display and save the data in LabVIEW.
    I have the "Idustrial Automation Servers for OPC" CD but my PLC model no. doesn't appear under the Omron options.
    What other options do I have?
    Thanks, in advance,
    Felipe

    Hi Felipe:
    I checked in our PLC compatibility database and the only Omrom PLCs that are supported are the following: C20, C200, C500, C1000, C2000, CQM, and CPM1.
    The PLCs that are suppored in the IA OPC server is based on the driver dll that was supplied to us by Omron. When newer PLCs are released, they are not included in this dll and are thus not supported. You might want to contact Omron to see which OPC Server supports that PLC. You should be able to use any 3rd party OPC Server to work with DSC which will then be the OPC Client.
    Hope this helps.
    Best Regards,
    Jaideep

  • Integration between Training and Events and Attendances

    Good morning,
    It seems to be simple to automatically create a It2002 for an employee who has just finished a training course, only by doing the follow up of the course.
    well, it does not work form me. I do the follow up, I fix the course, everything seems to work fine, but the IT2002 does not get created.
    My config:
    PLOGI-TIME = '1' -> I have also tried with 'X' but no difference
    SEMIN-APART = 0420
    Created an event type, event and booked an employee. I firmly booked the event and did the followup.
    The IT2002 was not created. Is there anything else I need to do to automatically create this infotype?
    Otherwise, how can I manually create all the pending ITs for all the courses that have been confirmed from a specific date?
    PS: I am a very generous rewarder
    Many thanks

    hai
    try with the following ..i have collected this from previous thread..
    PLOGI-TIME = '1'
    SEMIN-APART = 0420
    Created Attendance Type, Quota, Deduction rules etc.
    Configured a Business Event Type, Business Event and Booked a person against the same. I firmly booked the event and did the followup.
    PLOGI PLOGI entry for the integration of Training and Event Management Entry variant
    SEMIN-TIMEP entry to specify the minimum percentage attendance for the business event to create an attendance.
    1001 relationships and the A025 relation between the E and the P has a percentage (PROZT) of 0%. Could it be the reason? If yes, how can I change this value to 100%
    created entires in T779X and it worked

  • Failed to communicate between MIDlet and Servlet

    hi all
    i got a trouble here hope someone can get me out of this.... i've run example from a website even from Sun itself which demo the communication between MIDlet and Servlet.... but below is what i got:
    "*Application not authorized to access the restricted API*"
    the source code from: http://didiksoft.wordpress.com/
    im using tomcat webserver 4.1.3.... jsdk 5.0.... Sun JWT 2.5..... is there something that i missed to configure..??? thanks in advance....

    I have the same problem in XP. I installed the whole Oracle9i product on my desktop and after a day or two the message began appearing on my machine. I couldnt use any of the tools. I tried uninstallinmg according to Oracles instruction and after installing again had the same problem.
    I logged a TAR and they advised me to reinstall but according to Oracles instructions for removing the software first.
    Will keep you posted

  • Difference between albums and events

    If I put pictures into albums from photo stream, will they be permanently saved in the album if I delete them from photo stream to save space on my devices.  My iPhone is getting full and I worry that if I take pics off the phone they will disappear from the iPad.  I use iCloud, are the back ups separate for each device?
    What is the difference between an event and an album that I create?!
    Do you get how confused I am!?!!

    iPhoto on your iphone correct? 
    It works pretty much the same as on the mac.  Albums are a collage of pictures you want to save. You can then publish if you'd like.  An event is kinda the same thing but when I add pictures to my mac or phone you can organize folder by an event ie. Birthday, Graduation, Trip, etc.  I typically organize first on my mac then sync iPhoto to the device (iPhone).
    Photo Stream saves the last 30 days of pictures on all iOs device and macs.  The pictures do take up room on the phone but you can actually disable that feature on your iphone using Setting, iCloud, turn off Photo streaming.  The pictures will be removed from the iphone but will still appear on all Photo Streaming devices that still have Photo Streaming enabled.
    I hope that makes sense.
    The pictures are only permanently saved from Photo Stream (PS) by clicking the photo in PS and save to an event.  I would do this before you turn off Photo Stream on the iphone device.

  • Difference between ALBUM and EVENT?

    Can someone please tell me what the difference is between an ALBUM and an EVENT?
    I am a little confused as to what the actual differences are.

    An Event is a folder of images with a fancy icon in the iPhoto Window. The contents of the particular Event are decided by the date and time of the Photos. Events are a view of the Library. So, every photo is in an Event because every photo is in the Library. That means if you want to have the same photo in two Events it uses twice the disk space.
    An Album is an arbitrary collection of Photos - My Favourites, Pics of My Dog from various dates and so on. Photos in an Album simply reference the pics in the Library - so a Photo can be in any number of Albums and use no extra disk space at all.
    One way to look at it: Events are basic, automatic, crude organisation. It's all date and time.
    Albums allow you to select, to group on other bases - like the content, the quality, the importance of the photo. So, go to a wedding, shoot 300 photos. They all go into the Event. Then pick the best 50 and make an Album from them. Be nice to your friends. Only show them the Album
    FWIW:
    I use Events simply as big buckets of Photos: Spring 08, July - Nov 06 are typical Events in my Library. I use keywords and Smart Albums extensively. I title the pics broadly.
    I keyword on a
    Who
    What
    Where basis (The When is in the photos's Exif metadata). I also rate the pics on a 1 - 5 star basis.
    Using this system I can find pretty much find any pic in my 40k library in a couple of seconds.
    So, for example, I have a batch of pics titled 'Seattle 08' and a  typical keywording might include: John, Anne, Landscape, mountain, trees, snow. With a rating included it's so very easy to find the best pics we took at Mount Rainier.
    File -> New Smart Album
    set it to 'All"
    title contains Seattle
    keyword is mountain
    keyword is snow
    rating is 5 stars
    Or, want a chronological album of John from birth to today?
    New Smart Album
    Keyword is John
    Set the View options to Sort By Date Ascending
    Want only the best pics?
    add Rating is greater than 4 stars
    The best thing about this system is that it's dynamic. If I add 50 more pics of John  to the Library tomorrow, as I keyword and rate them they are added to the Smart Album.
    In the end, organisation is about finding the pics. The point is to make locating that pic or batch of pics findable fast. This system works for me.

  • Looking for a easy app to use to communicate between office and our shop

    iso of an app for use between my office and backroom where parts are ordered. a time clock to click in and out while pulling order would be great.

    Sundarajan,
    generally speaking you use Forms Modules to split applications according to their logical role in an application. If for example you have a complex merchendise management application built in Forms and you use the buttons to navigate from the "product logistics" component of your application to the "pricings and advertising" component, then - because these parts are not related in business - splitting this up into modules is a good idea.
    If it is a smaller functionality that you gain from the two buttons, then using Windows or Canvases is a good idea to use. You can hide Windows and Canvases allowing you to either use a new "frame" or the same but with different content. So if the navigation you perform belongs to the same logical business process then don't use different modules. Otherwise use diefferent Forms modules.
    Frank

  • REQUEST: Differentiate between iPhoto and Events

    Hey there. Just got iLife 08 and I really like it.
    However, I have a major problem with iPhoto '08. I like the Events feature, but I have a ton of random photos that don't necessarily qualify as an event. Random shot here or there.
    In all previous iterations of iLife, the Albums and Library were only loosely linked. That is, you could delete a photo from album "Summer 07" and it wouldn't delete it from the Library. The iTunes playlist approach to photo organization, as it were.
    Now, I expected/hoped/assumed the same functionality would be extended to Events. It wasn't. I found this out after I'd deleted about a quarter of my photo library. Thankfully the undo button averted disaster.
    I don't understand why this works this way. If I have a random snapshot of, say, a sunset, one which doesn't fit into any event either contextually or chronologically, I'd like to be able to delete it from an Event while keeping it in my Library.
    I could, of course, just split off all those photos and have one big "Miscellaneous" event. But that seems to run counter to the stated purpose of Events, and it's pretty darn tedious, and I don't understand why I can't just delete a few odd photos from the Events window without erasing them off of my computer.
    Am I missing some big trick? Is there any way to change this?
    Thanks.

    The problem you're having is that you're assuming the new events replace the flexibility of the old albums. That's just not so.
    Pre-iPhoto 08, all your photos were permanently stored in the library, and grouped by time of import into "film rolls". Using your example, all your weekend events would be imported into 1 roll. From that roll, you could create as many albums as you liked. Or, you could split that album into multiple rolls, if, say, one memory card was used to shoot a football game, a sunset, and then a concert. It was up to you. Create albums, split the film roll, or both. You were happy then, I assume.
    Now with iPhoto 08, essentially NOTHING HAS CHANGED! You still have the flexibility to create your albums for football and concert, and leave all the originals in the library, including the sunset that doesn't go with the game or concert.
    Only 2 things have changed: (1) film rolls are now called 'events', and (2) instead of importing your whole memory card into a single roll, iPhoto uses your preferences to automatically separate your photos into separate rolls based on when they were shot. (you could still do this before, just manually)
    You basically have two primary means of organizing your photos: manually with albums, or automatically (via date) with events. The benefit of using albums is that it gives you the ultimate control that you want, while leaving the random photos protected in the library. The con is that you have to create and manage albums manually. The benefits of using events are that they're neatly organized by date and you have the flexibility to manually override their creation by splitting them or moving photos to any event you choose. The con of events is that, as sub-folders of the master library, every photo must be in an event, which forces you to create miscellaneous events of 1 or 2 photos--which admittedly clutters up your library--but only if you want that granularity of organization. There's nothing stopping you from having 1 single event called "football game, drunken roommate, and concert", and then 2 albums for the game and concert.
    I tend to take photos like you do: many photos of particular events, with random scattered shots of wildlife in my yard, wrecks by the side of the road, cats doing funny things, etc. And I, too, don't like having lots of extra film rolls (still on v6) for those miscellaneous shots that don't qualify in my mind as events worthy of their own category.
    So here's what I do... I never use albums because they're just too much work and they don't sort automatically. Since nearly all of my photos fall into the classic definition of an event, I primarily use film rolls (now events) to group my photos. If a roll from a camping trip happens to have 2 photos of a wild turkey in my yard, I usually leave it in the roll, but edit the roll's description to say something like "Camping trip to Catskills (+ wild turkey in yard)". That way I can see that the roll contains miscellaneous shots, and also be able to find them in the future if I search for "turkey".
    While importing new rolls/events and organizing them, if I happen to notice that I have quite a few of those miscellaneous shots in close time proximity to one another, then I'll create a "Miscellaneous-August 2007" roll/event, for example, and move them all into one place. Having them together doesn't help the random pictures at all, but it does clean up all the other events from where the random pictures came. I actually find myself doing this more frequently since I started importing the highly random photos from my cell phone. One giant "misc" event would be too crazy, and having lots of scattered 1- or 2-pic events would be too cluttered. But having just 1 misc event per month seems to be a good compromise for me.
    Apple is definitely not at fault in designing events. Really, they're nothing new compared to film rolls, except that they can split photos while importing. If you loved the old albums, then stick with them. They're 100% unchanged and still ultimately flexible. Otherwise, know the constraints of events, and make decisions based on what's important to you.

  • Unable to move between libraries and events

    For the last month everything on FCPX 10.1 has worked without a hitch.  As of today, i am unable to switch between libraries or even events within those libraries. 
    For example, i'm editing a sweet 16 event.  one event is "prep"  the other event is "church ceremony". when putting together a montage, once i am done working with the clips in "prep" I click to "church ceremony".  No change, the "prep clips remain in the browser, althought he "church ceremony" event highlights, but won't twilr down. 
    Final Cut Pro X 10.1 trial (3 days left)
    late 2011 Macbook Pro
    2.4 GHz i7
    16GB 1333 MHz DDR3
    OSX 10.9.1 Mavericks

    The image above shows all the clips inside the entire library as i had last clicked on the library itself to see all clips in the library.  Once i clicked on the "score" event, the media browser did not update to reflect only what is inside the "score" event.

  • How do you communicate between flash and java?

    Hi,
    How can you pass parameters between a Flash movie and a Java applet running on the same machine? I would like to do this without opening a new browser window or putting parameters in the url of the browser window that is running the Flash movie.

    Flash supports Javascript , check out actions.
    set the URL like you would the Javascript for
    making a method call from a webpage.
    make sure that Scriptable <PARAM> has been set to true.

  • How to Communicate between servers and Overwrite the file

    Hi,
    I have this application where in a config file is modified as per the data entered by the user through some jsps.
    Also, this application is also loaded on other server which may act as backup when the primary goes down.
    Now,my issue is:
    As soon as the file is modified i want to overwrite all the backup files on other backup servers, so that sync is maintained between all the files on all servers.
    i guess the communication between primary & backup servers could be done using RMI.
    I have gone through RMI tutorial & few examples on RMI but i'm not very clear where exactly the interface,impl and client program goes.
    i mean how does this actually work in a real time.
    Please could anybody shed some light on this.I would really appreciate.
    Thanks!

    Hi all can some one please give a solution ...Any suggestions would be greatly appreciated

  • How to communicate between Flex and JSP and show the result in an Iframe

    Hi all
    I am trying to send some data from flex to one HTTPService and trying to show the same response jsp in an Iframe. But unfortunately i am unable to get the responce Jsp's url to set as a source for iframe.
    let me explain you clearly...I have a mxml where i am having a text box and a button in the left panel and in the right panel i am having an Iframe to display jsp. So once user enters some value in the text box and clicks button then HTTPservice's send method will be called with text box's content as an arguement. So i can fetch that value from request object in jsp and display the value in jsp. So the problem here is i want display that result jsp in my Iframe. I know that , we need that result jsp URL to display in Iframe . But as i am sending POST request to HTTPservice, i am not able to get the result jsp's URL in flex side.
    So i need help desperately from great minds.So anyone of you can give me some suggestions!!!!
    Regards

    Hi all can some one please give a solution ...Any suggestions would be greatly appreciated

  • Please help!! How to communicate between applet and pop up dialog box

    Hi friend,
    I have done a AWT pop up dialog box from Applet. In this pop up dialog box, I want get user name, and display on an Applet, anyone can tell me how to do? Thanks a lot!!!!
    Alva

    You need to create two methods in your applet, getName and setName as well as a name field.
    private name = "";
    public void setName(String n)
        name = n;
    public void getName()
        return name;
    }The various constructor methods for Dialog already take the owner of the Dialog (your applet) as a parameter, so in your applet's ActionEvent handler, all you have to do is call
        name = textName.getText().trim();
        owner.setName(name);Yes, it's that easy.

Maybe you are looking for

  • [Solved] Help Needed, Unable to Upgrade.

    I tried to update my archlinux. sudo pacman -Syu But after all the packages are download, I get these messages for everything: (379/379) checking keys in keyring                                                             [###########################

  • How to create clipping paths shape like a slice of a circle?

    I want to make a DVD label by dividing the circle into 8 equal slices (like cutting a pie 4 times). In each slice I will put an actor's photo in it. I think I need to create 8 layers to house the 8 slices of photo, each layer gets a clipping path tha

  • How to acess the value in object

    Hi All, I am trying to create a table and bound the arraylist object to it.so i created a method and set value to bean variables and added the bean object to arraylist and i created a datacontrol.The i dragged and dropped the dataHolder and created a

  • Macro virus removal

    Macro virus Can anyone tell me how to get rid of this Macro Virus from my word documents? Every document that I have created for the last year or more has them. Including every copy of my book! Problem is that I didn't know it was a problem when I ke

  • New version of firefox not compatible with my OS? what are the risks?

    Hello, When I was prompted to update my firefox browser, I was subsequently told my Macbook OS 10.5.8 didn't support the new firefox and that I would therefore be subject to cyber attacks from now on, or something similar to that. I don't actually re