Wednesday, 6 June 2012

Reporting services not running error while installation of crm 2011

While installation of CRM organistion I was getting error on "Reporting Services", though the reporting service was running.

Start->Microsoft Sql server 2008 R2 -> Configuration Tools ->Reporting Services Configuration Management
and make sure the required stuff is initialised

Service Account
    -> Network Service

Web Service URL
    -> Virtual Directory: ReportServer
    -> TCP Port: 80
    -> SSL Certificate: (Not Selected)


Database
     -> SQL Server Instance: devserverx
     -> Report Server Database: ReportServer
     -> Temp Database: ReportServerTempDB
     -> Report Server Language: English(United states)
     -> Report Server Mode: Native
     -> Authentication Type: Service Account
     -> Username: NT Authority\Network Service
     -> Password: *******

Report Manger URL
     -> Virtual Directory Reports


Data Error (cyclic redundancy check)


While running crm 2011 setup, I was getting following error when I was clicking next on the orgnisation creation page.

---------------------------
Microsoft Dynamics CRM Setup
---------------------------
Data error (cyclic redundancy check).
---------------------------
OK  
---------------------------

Reason: I mounted the image into CD-Rom from the remote server e.g. \\remotemachine\\folder


Solution: Copied image to local machine and mounted it to cd-rom and then installed

Friday, 25 May 2012

Metadata documentation

Error registering plugins and/or workflows

Created a plugin and created a key and signed the project with that key, when deploying getting following error


"Error registering plugins and/or workflows. Public Assembly must have public key"


When checking in the crm exprlorer the plugin is registered correctly.


It was happening due to not registering the workflow project with the signed key, either remove the project if not required, otherwise deployment process also trying to deploy both plugin and workflow assembly.

Thursday, 24 May 2012

how to reload a page

On entity form load i am showing a user dialog to select some values, and on completion of that dialog I am trying user to see the selection he made on the dialog are reflected on the entity form.

as there is no changes done on any attriubte using javascript, calling Xrm.Page.data.entity.save() is not gonna work.

Tried using Xrm.Page.getAttribute("new_attribute1").setValue(Xrm.Page.getAttribute("new_attribute1").getValue());
 Xrm.Page.getAttribute("new_attribute1").setSubmitMode("always");

The above couple of code lines will not work either, the reason is that though I am trying to use setSubmitMode("always"), still the data entity is not dirty,

so here is code i used make sure the page is reload by force, this following code is already with in many conditions so this code is reached when I need to reload page.

In my understanding setSubmitMode("always") is used to save a value of read only fields, or when we are making some changes on attribute and like to force entity to save.



        if (Xrm.Page.data.entity.getIsDirty()) {

            Xrm.Page.data.entity.save();

        } else {

            window.location.reload(true);

        }




/////////////////
in another scenario I wanted to save some of the values which i calculated using javascript, when there were some mandatory fields on the form are not populated and we don't like use at that moment of time to save values.




function ClearRequiredFields () {
        if (!Xrm.Page.data && !Xrm.Page.data.entity) {
            return;
        }
        var attributes = Xrm.Page.data.entity.attributes.get();
        for (var i in attributes) {
            var attribute = Xrm.Page.getAttribute(attributes[i].getName());
            if (attribute.getRequiredLevel() == "required" && !attribute.getValue()) {
                attribute.setRequiredLevel("none");
            }
        }
    }

Tuesday, 22 May 2012

CRM interface customisation

http://msdn.microsoft.com/en-us/library/gg328217.aspx

On CRM Entity Navigation Area we can not add new navigation groups or remove existing one. To change the group name, select group and click on properties ribbon button.

To customise ribbon button, creating new ribbon button, hiding or un-hiding existing default crm buttons use Visual Ribbon Editor from http://crmvisualribbonedit.codeplex.com/

To customise sitemap use the SiteMap Editor which can be downloaded from

http://sitemapeditor.codeplex.com/releases/view/87898


For icons have a look at http://www.iconfinder.com/