Wednesday, September 16, 2015

Entity Home - Bind Javascript function on Custom Button

This technique work to bind java script function in entity home page.

https://rajeevpentyala.wordpress.com/2012/05/23/loading-dependent-jscript-libraries-in-ribbon-buttons-execution-crm-2011/

The solution is simple. We can add all the required libraries to <Actions> node like below
 <JavaScriptFunction Library=”$webresource:common” FunctionName=”isNaN” />
Note – Since <JavaScriptFunction> requires a function name, pass “isNaN”.
Now my <Actions> node look like below
<Actions>
<JavaScriptFunction Library=”$webresource:account_ribbon” FunctionName=”sayHello”>
</JavaScriptFunction>
<JavaScriptFunction Library=”$webresource:common” FunctionName=”isNaN”>
</JavaScriptFunction>
</Actions>



#AW CRM Consultant Maison Consulting & Solutions

Load Multiple JavaScript Libraries

Loading dependent jscript libraries in ribbon button’s execution CRM 2011





<Actions>
<JavaScriptFunction Library=”$webresource:account_ribbon” FunctionName=”sayHello”>
</JavaScriptFunction>
<JavaScriptFunction Library=”$webresource:common” FunctionName=”isNaN”>
</JavaScriptFunction>
</Actions>




#AW CRM Consultant Maison Consulting & Solutions

Microsoft Dynamics CRM 2013 – Calling Custom Actions Using JavaScript

http://www.plusconsulting.com/Blogs/Lists/Posts/Post.aspx?ID=56



#AW CRM Consultant Maison Consulting & Solutions

Improving CRM JavaScript Code with an Xrm.Page Common Library

JavaScript references in Microsoft Dynamics CRM 2013

Microsoft CRM syntax for common jscript requirements



JavaScript Reference for Microsoft Dynamics CRM 2011

2013







#AW CRM Consultant Maison Consulting & Solutions

Tuesday, September 15, 2015

IFrame Set Src


IFrame src can be set on Form Load event, but this technique not work all time as On Load can be complete before loading IFrame. In this case, IFrame Url set to its default value.
The work around is to set IFrame Src in IFrame Event Handler on 'readystatechange' event.

So, add webresource library on form and register the function on IFrame event handler to set the Src.

In below code, I have register IFrame function on IFrame event handler. Now my IFrame Url set successfully.

Wednesday, September 9, 2015

Disable Pending Email Warning Message


CRM show pending email warnings when there are pending emails. For some reason you have created an email message, tried to send it but it never got sent and is stuck in pending. To get rid of these annoying warnings, I have found two methods mentioned below.













Method 1) Using Advance Find
Do an advanced find and search for email messages where you are the owner and the status is Pending Send.

Asp.Net MVC (5) - Exception Filter - HandleError

Applicable on Asp.Net MVC5 HandleError Filter This belongs to Exception Filters category (Authentication Filter, Authoriz...