2/24/14

MSCRM Page Navigation with Account Parameters using JavaScript

When adding a page navigation link, we have the options to set the URL to use to a web resources or an external link. When using either one, we may want to be able to pass a parameter on the URL, but  this option is not available from the customization form interface. To address this, I use our old good friend JavaScript to handle the injection of parameters on the URL. The first step is to...

2/13/14

MSCRM Create Password Field with JavaScript

Dynamics CRM does not currently provide the ability to add password fields to a form. With this script, we show a way to make an input field on an Entity Form to be of type “Password”. OGBIT.PasswordField = {     Init: function (fields) {         var ids = fields.split(';');         for (var idx in ids)...

1/30/14

MSCRM Get User Information with JavaScript

When working with Dynamics CRM forms, we can use the XRM client object model to query the fields and controls on the page. A common field on every form is the current user id. This however only provides the internal system id or GUID. When we need more information about the user, we can use the ODATA web services to get additional information. This script provides us with a helper function to...

1/4/14

IFrame SharePoint Page

Most websites do not allow their content to be loaded in IFRAMEs.  The main reason is to prevent “web framing” in which a remote website frames another to get clicks.  This is also applicable to SharePoint applications in which the frame options are set to allow SAMEORIGIN only which means that framing is only allowed to pages on the same domain. In SharePoint, there is a way to enable...

12/21/13

ASP.Net Show Assembly Build Date

When creating an about page for a web application, we often add the build date information. To get the build date, we can query the executing assembly file and get the last write time property. /// <summary> /// returns the file write date /// </summary> /// <returns></returns> private static string GetAssemblyDate() { string date = string.Empty; try { var assembly...