Skip to main content

MVC Architecture

Hi Folks, Today I’m writing about MVC the MODEL, VIEW, CONTROLLER in Force.com application development platform. MVC is basically an Architecture Pattern which has some separation of concerns, in a Software.

Separation of Concerns means that classifying a Module in Sub-Modules which are integrated and interactive to each other.


Components

A Model basically manages data and enforces rules and validations on the data, currently in context. It’s a central component of the design pattern.

A View is your HTML/Javascript based representation of your data pulled from your Model. It can be a chart or some tabular formatted page to view information.

A Controller is a conveying medium between model and view which helps view to show data by pulling it from model. It basically accepts inputs and converts into instructions or commands to model or view.


Working

A model stores the data retrieved by the controller and displayed in the view.

A view generates new outputs for the user based on the changes in the model.

A controller sends commands to model to change the state or it can send commands to view to change the representation of the model.


Benefits

There are two key benefits of MVC design pattern that we can attach multiple views to a model to show data in different ways. And we can change the way that a view responds to an input by a user, without changing the view’s presentation.

So this is it for now and as we move ahead with our topics we’ll learn more about the MVC architecture pattern. I’m hoping that this article will help you to know a basic about MVC.



Stay tuned to Salesforce Nation…

Comments

Popular posts from this blog

Getting Started With Salesforce.com and Force.com

Salesforce.com is a CRM(SAAS) Which is a model used to Collaborate between different departments of an organization and to manage Activities according to the work flow of an organization or everything that a company wants to track. Before getting started with Salesforce.com I want to tell about CRM Editions and their Pricings which we should not discuss here so to learn about Editions and Pricings of Salesforc.com click here  . Now we know about it’s Editions and Pricings so that an organization can buy a Salesforce.com CRM as per the requirement . Ok let’s move ahead. To getting started, we must have a Developer edition account so you can signup for developer edition account here . Salesforce.com and Force.com   Salesforce.com and Force.com – When we get logged in to our developer account and click on Setup at top right position that takes us to the Force.com home page from here we can create and configure a new application. And if we click on Home tab it...

Force.com Applications

Hi Folks, Today I’m writing about the Force.com Applications for Salesforce.com. Developing an application on force.com has a defined process. This process goes as -  We can develop our application in Developer Edition Org. After being developed an application must be tested in a Sandbox. Since it’s a tested application it must be submitted for the Security Scanner reviews. Scanner scans our application for security, complexity and other issues. If our application gets a “No issues found” result then only it can be pushed on App Exchange. App Exchange is a marketplace for force.com applications. App Exchange is just like Google App Store. From the App Exchange we can download and install applications directly into our Salesforce.com CRM org. An application is a collection of different Kinds of Components as we see after logging into CRM. Components available in an application have a big picture behind it’s view and behavior so before understanding these compone...

Salesforce.com (CRM)

Hi Folks, In this article I’m going to share some basics of Salesforce.com CRM. Salesforce Provides many business solutions as in Sales Cloud, Service Cloud, Marketing Cloud etc. But this is not it here we can customize these applications as per our requirement and even after customizations if it doesn’t fulfill our requirements then we can develop a lot more using force.com and about those things we will discuss in further articles. So let’s discuss on the basic stuff first. So now as we all know, Salesforce.com provides a CRM(SAAS) Which is a model used to Collaborate between different departments of an organization and to manage Activities according to the work flow of an organization or everything that a company wants to track. Salesforce is providing solutions for Sales, Service, Marketing etc. for an Organization, through Salesforce.com. CRM is a major component of Salesforce. Goals of Salesforce.com CRM o    Increase Sales Revenue o    Increa...