VO in Cairngorm framework?

Hi,
Do you think if I can use object object in Flex to take place
VO in cairngorm application? and I can use struct in cfc as input
argument type.
I try to use VO but I am not lucky to make it work with cfc.
Thanks
Mark

WebOrb allows you to use AMF with .NET. You don't have to stick to web services / XML:
http://www.themidnightcoders.com/products/weborb-for-net/developer-den/technical-articles/ introduction-to-flex-and-net-integration.html
Concerning Modules, States and Components, you must be confused. They are not of the same nature.
- Modules are to break down an application into smaller chunks you can download as needed.
- Components are reusable (usually visual) classes that you can instantiate in MXML or ActionScript and that can themselves be written in MXML or ActionScript
- States represent the states of a given component
You can use all of these in a single project.
In addition, use the history manager and URL fragments for deep linking so users can bookmark you can link directly to a given section of your Flex website.
>>> Also, how do you change the state of pages with the Cairngorm framework ? Is it done in commands where we have the actual business process and get the results from the web service ?
You can use the presentation model pattern. The view state and view logic of each view are located in a corresponding presentation model. When a command calls a service and gets a result, it modifies the application model the presentation model binds to, thereby triggering a change of state in the UI trough data binding.
The view binds to the PM. The PM binds to the application object model. The command updates the latter. Via data binding, both the PM and the view are updated. For example, the view state that is maintained in a PM can correspond to an actual state in the view defined in the <mx:states> tag:
http://blogs.adobe.com/tomsugden/parsley/

Similar Messages

  • How to use generated code from "Import Web Services" with Cairngorm Framework

    I recently downloaded Flex Builder 3 beta 2 and tried out the
    wizard that lets you import web services. The code that is
    auto-generated makes if fairly straight forward to consume web
    services using the object types defined in the WSDL. No longer does
    the developer need to decode the XML payload! The only problem I am
    having is how does you integrate the auto- generated code with the
    Cairngorm framework? This seems like a huge question for anyone who
    might want to leverage Cairngorm and the auto-generated proxy code
    in the same project (like me).
    Here are the problems that I see so far.
    1) How do you configure the generated service class to work
    with the Cairngorm service locator? The service constructor only
    accepts a “LCDS destination string” which implies that
    you must use Lifecycle data services. Unfortunately, the project I
    am trying to retrofit currently uses a WebService and does not use
    data services. All I really need to do is change the endpoint URL
    (ie from local to a development server). This issue is noted in the
    bug https://bugs.adobe.com/jira/browse/FB-8456. What I think is
    needed is a way to set the endpointURI in the Services.mxml file.
    2) Even if I come up with a hack around #1, I do not receive
    a callback to my IResponder even though I register it immediately
    after the method call. I can register and listener function within
    my business delegate and receive the callback, but my Command
    object, which implements IResponder, does not receive the call back
    even though it is registered. From what I read in the ASDocs it
    should but it doesn’t for me!
    These are the issues I have observed in 3 hours of messing
    with this. I hope this makes sense. I would love to integrate
    auto-generated web service proxies into Cairngorm but I don’t
    see a straight forward way without re-architecting Cairngorm. Has
    any one else run across this issue? If so, do you have any insights
    on how to proceed? Any help is appreciated.

    Since I posted this question, I have abandoned the notion of
    auto-generated web services and embraced the good old FDS concept
    where the RemoteObject meta-tag does all the conversion work for
    me. We are now using the Granite DS package and it is working well
    for us. I would love to consume web services, but it just isn't
    worth the hassle when all you have to do with Granite (and FDS) is
    cast your return objects to the proper object type.
    BTW, since this posting, I have investigated competing Flex
    app frameworks. After my research, I checked out the PureMVC
    framework. Wow!! Cairngorm always left me with an uneasy feeling
    and I guess I am not alone. Apparently, Cliff Hall felt the same
    way. That is why he started the project. I like his approach alot
    more than Cairngorm especially since it includes notifications
    which allow me to broadcast my own app level events independent
    from the AS Event framework. Check out PureMVC. For what it is
    worth, it has my humble endorsement. Cliff was even gracious enough
    to acknowledge the other Adobe Consulting guys for their work. Good
    for you Cliff, I respect that. Check out a better way at
    http://www.puremvc.org/

  • How to achieve modularize in flex using cairngorm framework?

    Hi,
    I have seen many articles on flex and cairngorm but haven't found enough information on how to achieve modularization in flex using cairngorm framework.
    Please let me know any information regarding this.
    Thanks in advance.
    Vishnu

    Hi Sumit,
    I am also working similar kind of requirement. In my case I tried to add new tab subtab using personalization , how ever the add new item button is not enable.
    So I created new stacklayout and tried to add this to new tab in the existing subtablayout by using co process form request code:
    public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processRequest(oapagecontext, oawebbean);
    OracleCallableStatement oraclecallablestatement = null;
    OracleConnection oracleconnection = (OracleConnection)oapagecontext.getApplicationModule(oawebbean).getOADBTransaction().getJdbcConnection();
    try{
    oracleconnection.setAutoCommit(true);
    oraclecallablestatement = (OracleCallableStatement)oracleconnection.prepareCall("begin GLO_TMPVIJ_PRCV(:1); end;");
    oraclecallablestatement.setString(1,"In the custom co process request");
    oraclecallablestatement.execute();
    }catch(SQLException sqlexception)
    throw OAException.wrapperException(sqlexception);
    OASubTabLayoutBean subTabLayout =
    (OASubTabLayoutBean)oawebbean.findChildRecursive("ApplicationDetsTabLayout");
    OASubTabBarBean subtabbar = (OASubTabBarBean)oawebbean.findIndexedChildRecursive("subTabBar");
    OALinkBean link = (OALinkBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext,
    OAWebBeanConstants.LINK_BEAN, null,
    "link");
    OAStackLayoutBean commentsRN =
    (OAStackLayoutBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext,
    "/xxhr/oracle/apps/irc/candidateManagement/webui/CommentsRn",
    "CommentsRn", // always specify name
    true); // region created in Oracle9i JDeveloper OA Extension
    subTabLayout.addIndexedChild(commentsRN);
    subTabLayout.addIndexedChild(link);
    in this I am not ale to add the new tab.
    Regards,
    Vijay Reddy.

  • New Flex WebSite in Cairngorm Framework

    Hello All,
    I am a newbie to flex. Somehow i learnt flex technology, Cairngorm Framework and ActionSript 3.0. Now i am planning to start flex website.
    My architecture,
    FLEX[CairnGorm] --> .NET WEB-SERVICES --> MY-SQL 5.0
    Now, i had the project set up. My only doubt is, what to use for the flex pages, Module or States or Componets ?????
    I know the advantages and disadvantages of each.But i appreciate if any expert guides me ....
    Also hwo to change the states of pages in Cairngorm framework..is this done in commad where we vhave the actual business process and get the results
    from the web service ?
    Please guide me...
    Regards,
    Ravie

    WebOrb allows you to use AMF with .NET. You don't have to stick to web services / XML:
    http://www.themidnightcoders.com/products/weborb-for-net/developer-den/technical-articles/ introduction-to-flex-and-net-integration.html
    Concerning Modules, States and Components, you must be confused. They are not of the same nature.
    - Modules are to break down an application into smaller chunks you can download as needed.
    - Components are reusable (usually visual) classes that you can instantiate in MXML or ActionScript and that can themselves be written in MXML or ActionScript
    - States represent the states of a given component
    You can use all of these in a single project.
    In addition, use the history manager and URL fragments for deep linking so users can bookmark you can link directly to a given section of your Flex website.
    >>> Also, how do you change the state of pages with the Cairngorm framework ? Is it done in commands where we have the actual business process and get the results from the web service ?
    You can use the presentation model pattern. The view state and view logic of each view are located in a corresponding presentation model. When a command calls a service and gets a result, it modifies the application model the presentation model binds to, thereby triggering a change of state in the UI trough data binding.
    The view binds to the PM. The PM binds to the application object model. The command updates the latter. Via data binding, both the PM and the view are updated. For example, the view state that is maintained in a PM can correspond to an actual state in the view defined in the <mx:states> tag:
    http://blogs.adobe.com/tomsugden/parsley/

  • Cairngorm Framework Examples

    Iam new to Cairngorm Framework and we need to use this design pattern in our project.
    In our project Flex is calling webservice using action script and processing the result returned from webservice call.
    Can anybody advise me how i can start using  Cairngorm Framework in my project.
    Any sample code , links to websites and suggestions would be a great help.
    Thank You.

    Here is the list of some links:
    http://www.cairngormdocs.org/exampleApps/CairngormDiagram/index.html
    http://cairngormdocs.org/blog/?cat=6
    http://labs.adobe.com/wiki/index.php/Cairngorm#What_is_Cairngorm.3F
    http://cairngormdocs.org/blog/?p=13
    http://www.cairngormdocs.org/tools/CairngormDiagramExplorer.swf
    http://www.mail-archive.com/[email protected]/msg80957.html//www.mail-archive.com/[email protected]/msg80957.html
    http://labs.adobe.com/wiki/index.php/Cairngorm:Cairngorm2.2.1:Release_Notes
    http://labs.adobe.com/wiki/index.php/Cairngorm:Cairngorm2.2:Release_Notes
    http://translate.google.com/translate?hl=en&sl=de&u=http://www.flexforum.de/showthread.php %3Ft%3D188&sa=X&oi=translate&
    resnum=1&ct=result&prev=/search%3Fq%3Dcairngorm%2B%252B%2Blogging%2B%252B%2Berrors%26start %3D30%26hl%3Den%26sa%3DN
    Thanks.

  • CairnGorm Framework

    Hi I am new to flex.
    Please explain me the flow of cairngorm framework. how we can
    use with java back end.
    I am very much interested to know the cairngorm Frame work.
    Thanks in adv.

    http://www.adobe.com/devnet/flex/articles/introducing_cairngorm.html

  • Code samples for using HTTPServices in Cairngorm framework

    Hello there,
    Does anyone have any samples for retrieving data through
    HTTPServices using the cairngorm framework model. All samples on
    the web, as far as I have searched, lead only to remote services
    mode of communication only.
    Any help here would be greatly appreciated.
    Thanks,
    Arun B
    [email protected]

    I wrote a sample code modifiying the Remote Object examples
    .. I got this working now . Please ignore this message, just incase
    anyone needs my sample just email me..

  • How to use cairngorm framework in flex 4?

    Hi Everyone!
    Right now i am working with Flex 3.5 sdk using cairgorm architecture. Now i want to move to Flex 4 sdk with cairgorm architecture. I tried to use the cairngorm architecture in flex 4 sdk. But i did not get the output.
         Please anyone let me know how to use the cairngorm artchitecture in flex 4 sdk.
    Thanks in advance.!

    Read about Presentation Model. Refactor towards that and you should fine.
    C

  • Trying to learn Flashbuilder but using the cairngorm framework is tough

    i thought learning the oldest flex framework would be a good starting point on how to develop future flashbuilder/flex projects.
    i am going through the tutorials but the carnigorm tutorial is extremely painful. 
    i have never been buzzword compliant because my philosophy is to keep explanations very, very simple. 
    Is there a better way to learn a flex architecture?
    Please help if any of you have the same problems.

    May be you should start with the resources that are available on the developer center: http://www.adobe.com/devnet/flex/?view=gettingstarted
    Thanks,
    Gaurav Jain
    Flex SDK Team
    http://www.gauravj.com/blog

  • Question abourt Cairngorm framework?

    Hi
    I do not understand why we put the following line in main
    page.
    <control:myController id="controller" />
    <business:Services id="services" />
    but no code in main page use the IDs for control and
    business.
    Thanks
    Mark

    These are creating references to your service.mxml object and
    your application controller object that the cairngorm objects use
    in looking up events and executing services.
    The service.mxml file has all the rpc or web service config
    data like:
    <mx:HTTPService id="ControlNavLoadService"
    url="
    http://localhost:8090/febatmon/XML/ControlNav.xml"
    />
    The appController object should extend the FrontController
    and is used as a central repository for event execution like this:
    public class AppController extends FrontController {
    public static const LOAD_CONTROL_NAV_EVENT : String =
    "LOAD_CONTROL_NAV_EVENT";
    public function AppController() {
    addCommand( AppController.LOAD_CONTROL_NAV_EVENT,
    ControlNavLoadCommand );

  • Best use of a model in cairngorm

    I am a little confused about the use of a model , ModelLocator, in cairngorm
    I have it created and it all works fine but whats the best way to access it, Currently i have numerous forms that all do something like
        <fx:Script>
            <![CDATA[
                import com.model.ModelLocator;
                [Bindable] private var model:ModelLocator = ModelLocator.getInstance();
    and then later on
                private function fun1(evt:Event):void
                   model.something = "blah"
                   var s1:String = model.anotherSomething;
    or whatever
    Is it ok to have varibles all over the place in different mxml files all creating a private var model, does this comsume resouces or is it ok because its static
    Also i have several arrayCollections 11+ , plus other stuff in the model, is this ok

    Hi JockMahon,
    Its ok fine you can go with that..
    However remember one thing you will be declaring any variables in the ModelLocator class only if you are using them through out your application .. I mean more than one mxml page or AS files. However if you require any property or variable only within a single file then you can declare it locally within the file instead of decalring it in
    ModelLocator.
    The ModelLocator class in cairngorm framework is a singleton class so in how many files you have a model variable it will actually refer or return only single static instance of the ModelLocator class.
    [Bindable] private var model:ModelLocator = ModelLocator.getInstance();
    So how many times you have a variable by using the above style of decalring you will only get a single static reference to the instance of ModelLocator class. No ne instances are created. Its like you get a pointer to the model variable.
    Hope it is clear now.
    Thanks,
    Bhasker

  • What is cairngorm and is it currently used in companies?

    HI,
    I am new to flex technology and wants to know about the cairngorm framework.
    Is this something that is still used in companies and is worth learning?
    What is the current version of cairngorm?
    Please provide some important article links that uses cairngorm for building Flex applications.
    Thank you in advance.

    Dear Bashir,
    1.MRP is material requirements planning which plans the required quantity of depedent material's along with the required date.
    2.MRP procedure is sub divided into a normal MRP,Master Production Scheduling and Consumption Based Planning.
    3.Cosnumtion BAsed planning is further sub-divided into Time Phased Planning,Reorder Point Planning and Forecast based
    Planning.Reorder point planning can be automatic or Manual.
    4.MRP type is differentiated using the MRP type value assigned in the MRP1 view of the material master.
    5.Some of the MRP types are PD - MRP,M0,M1,M2,M3 - MAster Production Scheduling related,VB - Manual reorder point
    planning,VM-Automatic reorder point planning.
    6.It is possible to take the MRP for the whole plant/for a specific MRP area using the batch MRP job.
    7.MDBT is the T Code for scheduling the MRP job or it can be scheduled for the program RMMRP000 using the T Code SM36
    and the results can be checked using SM37.
    Regards
    Mangalraj.S

  • Cairngorm View Helper - Command resuability and tight coupling with view

    I am new to Cairngorm framework. Currently we are converting
    our project to Cairngorm framework. I have some very basic doubts
    regarding the framework. Basically I am a java/J2ee
    programmer and got very good experience in struts framework
    and other J2EE design patterns.
    I have some doubts and needs advice from the community .
    My very first doubt is regarding the ViewLocator pattern used
    in the Cairngorm framework to access
    the view from Command class. At a very high level my
    understanding about command pattern is that command object
    shouldn't know anything about the caller. Command should execute a
    the business logic and update the model.
    But if we use the ViewLocator pattern the command object
    should know about it's caller class and the method name of the
    view/viewhelper class which should be executed after the command
    logic. In this scenario we will not be able to reuse the command
    class and a very tight coupling is established between the command
    and view.
    I have read from flex and cairngorm related blogs about an
    'Observer' and 'ChangerWatcher' patterns which seems to be right
    approach for me rather than using the ViewLocator. But as far as I
    know these are not part of the framework.
    I would like to know what is the recommended approach from
    the cairngorm framework team for executing View related logic after
    firing the Cairngorm event.
    If we use the ViewLocator pattern, there is no reusability as
    far as the command is concerned and also a very tight coupling is
    happening with the command and view.
    Is this the right approach..?
    Please advice..

    Hi, the view Locator has very issues that we have to have in mind, y most of the  problems are similar when we are using the Drag Manager , when we are using modules and load this view dynamically.
    The solution is simple and you told it. Binding by Watchers in the model Locator and checking the model locator variables when we load a module.
    In the view that we want to change we can add a Change Watcher linking a model locator variable to a function in the view, we change the model in de command and automatically change the value in the view.
    There are 2 ways to do the same concept, but is good only when the call to a cairngorm only affects the view that its calling it and known more has to know, so in theory you don’t need to change the model to impact the view.
    First is adding a Iresponder in to the event by Get Set so in the view, when you create a event for cairngorm and have to pass through the event an IResponder  (mx.rpc.IResponder). When you are in the command in the result or fault you can do event.responder.result = event or event.responder.fault = event and this well go directly into the view result o fault. So you don’t have to pass through the model. (Responder is your get set in the Event of private var _responder:IResponder)
    The other way is the same but using UM cairngorm that has CallBacks. And it’s pretty much the same but the event and all the cairngorm has callbacks and notifyCaller.
    Well I hope I said something useful.
    I did a UM cairngorm diagram in English http://www.developyourdream.net/tutoriales/tutoriales_flex_avanzados/cairngorm_universal_m ind/Cairngorm.swf
    Sorry me English and if somebody talks Spanish you can go check my blog http://www.developyourdream.net/ 

  • LOCAL SHARED OBJECT in CAIRNGORM

    Hi,
    I am new to Cairngorm framework.
    I want to use Local shared object in Cairngorm framework,I am confused where i have to create and where i will get data and how i can add to lso.
    If any example or suggestions  to use Local shared object It is helpful for me.
    Thanks in Advance.
    Regards
    Naresh

    Hi,
    I am also new to flex.
    But here is what I think.
    You may want put it into servicelocator since sharedobject is not part of you cilent datamodel.
    Use delegate to update your modellocator with value from sharedobject.
    Hope it can help.
    If you solved the problem, pls also post it and we can learn together:)
    Best

  • UpdateTimersClass in Cairngorm

    Hello.
    I have 2 views in my viewstack. When I enter the second view, I want a few timers to start getting my data continuously. So I have a class with my timers and they eventually dispatch events when they reach TimerEvent.TIMER.
    But to implement the Cairngorm framework I want to know where is the best place to put this UpdateTimersClass. I added it as a
    <timer:UpdateTimers />
    in my second view and put the UpdateTimes class in com.domain.namespace.timer.
    The problem is, the updatetimers starts before I have entered my second view.
    Any tips on how to do this the most correct way in Cairngorm?
    Regards Niclas

    Hi,
    yes, it's ok.
    You should define a name for event and it's enought. All other info and data you can get from model.

Maybe you are looking for