Thursday, 3 November 2011

CRM 2011 Form Navigation

In CRM 2011 User can create multiple form for same entity which is explained here
http://www.youtube.com/watch?v=JW1LooWhNqc

Once multiple forms have been created, In customization select the appropriate entity form and click on assign role for selected form. This will allow user having the given permission to view form will able to see specific forms created.

There are scenarios when a user has permissions to view multiple forms of same entity but we want to show a form depending on some value on the entity attribute. This is well explained http://www.avanadeblog.com/xrm/2011/06/crm-2011-form-navigation.html link.

Javascript: datetime

Populating field value with the value selected from model dialog

On my Entity form, I created a on field change event and in javascript i am opening a model dialog window, and when user make some selection from it, I return that value back to Entity form.

Entity form

function ValueChanges()
{
 var selectedvalue = window.showModalDialog("htm web resource url", arguments);

}

on htm web-resource
var receivedarugments = window.dialogArguments;

//take some decision and show values to user, and when user selects a value call selectedValue function
function selectedValue()
{
  window.returnValue = "selected value";
   window.close();
}

Can not update fields on workflow

Issuee: When writing a workflow, and adding a step to update record, Some of field are not editable.
Reason: These fields are been marked as readonly
Resolution: Go to customizations, change fields to editable which need updating from workflow, update workflow,  and then go back to customization and set the fields back to read only.