The OnChange event does not occur if the field is changed programmatically using the setValue method. If you want call attribute.fireOnChange method.
Tab TabStateChange Event
The TabStateChange event occurs when the DisplayState of the tab changes due to user interaction or when the setDisplayState method is applied in code.
Use this event when you wish to change the src property of an IFRAME within the tab.
If you set the IFrame src property in the OnLoad event for an IFRAME within a collapsed tab, the value will be overwritten when the tab is expanded.
IFRAME OnReadyStateComplete Event
The OnReadyStateComplete event indicates that the content of the IFRAME has loaded and can be accessed in code.
Use this event when referencing IFRAME controls within your scripts.
Lookup Control PreSearch Event
The lookup control has a PreSearch event that occurs just before the control launches a dialog to search for records.
There is no UI to set event handlers for this event.
You must use the addPreSearch and removePreSearch methods on the lookup control to add or remove event handlers for this event.
This event occurs when the status of a process instance changes.
Use the Xrm.Page.data.process.addOnProcessStatusChange method to add event handlers for this event
and the Xrm.Page.data.process.removeOnProcessStatusChange method to remove them.
This event occurs when the user clicks the Next Stage or Move to previous stage buttons in the user interface
or when a developer uses the Xrm.Page.data.process.moveNext or Xrm.Page.data.process.movePrevious methods.
You can’t cancel the stage change using code in a handler for this event.
This event occurs when a stage of a business process flow control is selected.
You can’t cancel the stage selection using code in a handler for this event.
Knowledge Base Search Control Events
The knowledge base search control can only be added to forms for organizations that has the knowledge management feature enabled. This control has two events (OnResultOpened and OnSelection) that developers can programmatically assign event handlers to.
Subgrid OnLoad event
Subgrids load asynchronously from the form so you can’t reliably get access to the data in the subgrid in the form OnLoad event. But you can set an event handler for the OnLoad event of the subgrid.
This event will occur each time the data in the grid is refreshed, this includes when users sort the columns of the grid.
Editable Grid Events
The OnRecordSelect event occurs when a single row (record) is selected in the editable grid. This event won't occur if a user selects different cells in the same row, or selects multiple rows.
OnChange The OnChange event occurs when a value is changed in a cell in the editable grid and the cell loses focus. This event can also occur when an attribute value is updated using the setValue method.
The OnSave event occurs before sending the updated information to the server, and when any of the following occurs: There is a change in the record selection. The user explicitly triggers a save operation using the editable grid’s save button. The user applies a sort, filter, group, pagination, or navigation operation from the editable grid while there are pending changes.
Use the IOrganizationService.Create method to create an instance (record) of any entity that supports the Create message, including custom entities.
Use the IOrganizationService.Retrieve method to retrieve an instance (record) of an entity.
Use the IOrganizationService.RetrieveMultiple method to retrieve a collection records. The query can be specified using a query expression or Fetch XML query. If the query includes an aggregate function.
Use the IOrganizationService.Update method to update an existing record.
Use the IOrganizationService.Delete method to delete an existing record.
Use the IOrganizationService.Associate method to create a link between two records that participate in a relationship.
Use the IOrganizationService.Disassociate method to delete the link between two records.
Use the IOrganizationService.Execute method to execute a message. This includes common processing like create and delete of data records and metadata, or it can be specialized processing such as import or detect duplicates.
Microsoft Dynamics Social CRM
Opportunity : Losing an Opportunity
To close an opportunity with a status of Lost, follow these steps:
In the Navigation Bar, click Sales, and in the Sales area, click Opportunities.
Select an open opportunity in the data grid.
On the Opportunities tab, in the Actions group, click Close as Lost.
Accept the default values for the Status Reason, Actual Revenue and Close Date fields.
Optionally, you can associate a lost opportunity with a competitor by specifying a value in the Competitor field.
Customization Toolkit Overview - Microsoft Dynamics CRM 2011
This video is an overview of how to customize Dynamics CRM 2011. The video goes through a design scenario that demonstrates how to configure the forms, fields, views, charts and dashboards.
Solutions Management in Microsoft Dynamics CRM 2011
This demo shows how developers and ISVs can manage thier solutions in Microsoft Dynamics CRM 2011.
Generate early bound entity classes with the code generation tool (CrmSvcUtil.exe)
CrmSvcUtil.exe is a command line tool which can generate early bound classes for Microsoft Dynamics CRM. Output file can be C# or VB.Net file.
Generated file contains
All entities, one partial class for each entity
These strongly typed classes provide early binding and Intellisense support in Microsoft Visual Studio.
Generated file can be referenced by projects that use Microsoft Dynamics CRM. Following assemblies must also be referenced in that project
These assemblies can be found in SDK\bin folder of the SDK.
Running code generation tool
Make sure Microsoft.Xrm.Sdk.dll assembly is in same folder.
To list the supported command-line parameters, use the following command.
The following table lists the code generation tool parameters and a gives a brief description of their use.
Device ID used when you connect to the Online server for authentication. Only required if the device ID has not been stored on disk in the %USERPROFILE%\LiveDeviceID folder. Only used with the Microsoft account identity provider.
Device password that is used when you connect to the Online server for authentication. Only required if the device password has not been stored on disk in the %USERPROFILE%\LiveDeviceID folder. Only used with the Microsoft account identity provider.
The domain to authenticate against when you connect to the server.
The URL for the Organization service.
The file name for the generated code.
The language to generate the code in. This can be either “CS” or “VB”. The default value is “CS”.
The namespace for the generated code. The default is the global namespace.
The user name to use when you connect to the server for authentication.
The password to use when you connect to the server for authentication.
The name of the generated organization service context class. If no value is supplied, no service context is created.
Show usage information.
Suppress the banner at runtime.
Generate request and response classes for actions.
When set to true, a dialog to log into the CRM service is displayed. All other connection related parameters specified on the command line are ignored.