Thursday, 30 April 2015

Mvc Architecture

Model View Controller or MVC as it is popularly called, is a software design pattern for developing web applications. A Model View Controller pattern is made up of the following three parts:
  • Model - The lowest level of the pattern which is responsible for maintaining data.
  • View - This is responsible for displaying all or a portion of the data to the user.
  • Controller - Software Code that controls the interactions between the Model and View.
MVC is popular as it isolates the application logic from the user interface layer and supports separation of concerns. Here the Controller receives all requests for the application and then works with the Model to prepare any data needed by the View. The View then uses the data prepared by the Controller to generate a final presentable response. The MVC abstraction can be graphically represented as follows.




Model
  • The model is responsible for managing the data of the application
  • It responds to the request from the view and it also responds to instructions from the controller to update itself.
Controller
  •  The controller is responsible for responding to user input and perform interactions on the data model objects. 
  • The controller receives the input, it validates the input and then performs the business operation that modifies the state of the data model.      

View
  • A presentation of data in a particular format, triggered by a controller's decision to present the data. 
  • They are script based templating systems like JSP, ASP, PHP and very easy to integrate with AJAX technology.


               

Wednesday, 29 April 2015

Step by Step To Add Business rule in Microsoft Dynamic crm

Steps To Business rule in Microsoft Dynamic crm

1.Click On Entity


2.Click On form Editor


3.Form Editors Window will be open Click On business Rule Tab and click on new Business rules

4.
After click on New Business rule one pop up window Will be open 


5. Give Proper Name and add Proper Condition  then Save and Activate 


6.after adding business rule activate it.save and Publish 





Step by Step to Add Javascript as WebResource in Microsoft Dynamic Crm


Step by Step to Add Javascript as WebResource in Microsoft Dynamic Crm

1.Click on Entity (Custom Entity ar Default Entity)

2. Click on New

3. Click On FormEditor


4.Click on From Properties tab


5.In FormLibraries Click on Add 

6.click on to New 



7.Give Proper Name And Display name For WebReosurce

8.there is an Dropdown type Given on the Form which contain list of type html,CSS,Script,Data select one of the type click on TextEditor

9.add code here and save it 


10.Code  click Ok 


11. click On add 

12.Now in Event Handler Click Add  and Give Function Name Function Name means Function Which You have Cretaed in Script and Select Event On Which Event You Want Reflect the changes.i.e Onload ar Onsave.







13.Click ok Save and Publish.

Tuesday, 28 April 2015

Data Types available with Microsoft Dynamics CRM

Data Types available with Microsoft Dynamics CRM 

When creating custom fields in Microsoft Dynamics CRM (CRM), the following data types are available to you as a customizer.


Single Line of Text –  This is the simplest field type and is a string attribute.  The length can be defined between 1 and 4000 characters.  This field has special formatting if desired for storing Email, Text Area, Ticker Symbol, and Url.  Using email will create a mailto link for that field.  Ticker Symbol will provide a quote for the ticker entered into the field when the value is clicked.  Url will display a link to the value entered in the field.  Text Area can be displayed as more than one line on the form.

Option Set This is commonly referred to as a pick list or drop down field.  A user is only allowed to select from the choices provided.  A “blank” value is acceptable.  A default value can also be defined.  NOTE: If you have an option set that will be used on other entities in your deployment, you will want to create a global option set for system consistency.

Two Options This is similar to an option set but only contains two values, Zero (0) and One (1).  The display of those values can be changed to represent whatever you like. No (0) and Yes (1) are common display values for this field.  Another interesting note about this field is that it can be displayed on the form as a pick list, radio buttons, or check box.  The value is set in the form designer after the field is placed on the form.

Multiple Lines of Text – This field is similar to Single Line of Text, however, it can store much more data than Single Line of Text.  This field will be displayed as more than one line on the form.

Date and Time – This field stores date and time data.  You can choose to have both the Date and Time displayed or only the Date portion.

Lookup – This field represents a link to another entity.  It will create a 1:N relationship in the database with this field representing the “1” side of the relationship.

The fields below are different ways to store numerical values in CRM.  In all cases, you can set minimum and maximum values.  This is valuable if you want to constrain data entry to non-negative
values or from 0 to 100 for example.  The minimum and maximum values are different for each data type and are set at the minimum and maximum range when the field is created.

Whole Number – This field allows you to store round (or whole) numbers, meaning no decimal points.  The whole number field has different types which can be selected for Duration (activity), Time Zone, and Language (multilingual support).

Floating Point Number – This field allows for numeric values with up to five (5) decimal points.  The precision of this field is arbitrary, which means it can be used to represent both very large numbers as well as very small numbers.

Decimal Number – This field stores numeric values with up to ten (10) decimal points.  The precision of this field is absolute.

Currency This field is used to store monetary values.  Based on your currency settings, the correct currency symbol is also displayed such as the dollar sign or euro symbol.  It can also hold up to four (4) decimal points.

Create new Entity in Microsoft Dynamics CRM

Create a new entity

You can create new entities for your Microsoft Dynamics CRM implementation to address specific business requirements. After you create a custom entity, additional tasks are required to ensure that the entity is accessible to your users.

By default, when an entity is created, only the System Administrator and System Customizer security roles have any privileges to read or change data in the custom entity. You must add privileges explicitly to all security roles that need to use the new entity.

Steps to follow to create a New Entity in Microsoft Dyanamics Crm 

  1. Go to Settings > Customizations(How do I get there?)
  2. Choose Customize System
  3. Choose Entities and then on the command bar, choose New.

  4. Add Details Like Display Name ,Plural Name.
  5. Plural Name Nothing but name is Visible at Fron End 
  6. Select Area Under Which You Want dispaly Your Entity Like Sales , marketing , Service
  7. Then Click On save and Close 
  8. Publish All customization