1 Reply Latest reply on Jul 10, 2012 10:46 AM by nitingopi

    About data models

    community help Level 1

      This question was posted in response to the following article: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf66ba1-7ffe.html

        • 1. Re:  About data models
          nitingopi

          In a MVC architecture the model is used to store data used in the application. I create a class and use some static properties to store data so that it can be used throughout the application. For example if there is a datagrid, I use a static arraycollection in model class. Update it whenever a service is called and by using databinding update the dataprovider of the datagrid. I have read that singleton class can also be used to accomplish this task. Is the way I use for model class is better or there exists some other ways too?