Archive

Author Archive

Filter Sub-Grid Dynamics CRM 2011 Rollup 12v2

February 8, 2013 Leave a comment

link to a blog entry regarding the approach to create a filtered subgrid after installing CRM 2011 RU12v2

http://community.dynamics.com/product/crm/crmtechnical/b/magnetismsolutionscrmblog/archive/2013/01/24/filter-sub-grid-dynamics-crm-2011-rollup-12-polaris.aspx

Categories: Coding

CRM 2011 Force Form the Save via JavaScript

December 28, 2012 Leave a comment

parent.Xrm.Page.getAttribute("description").setValue("any value");

parent.Xrm.Page.getAttribute("description").setSubmitMode("always");

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

Categories: Coding

Hey I’ve got WordPress for Windows 8

August 28, 2012 Leave a comment

So far, I’m trying to figure out how this is better for me. I’m having trouble. Metro apps are providing less information on the screen with more pictures. This is great is I’m looking for an entertainment app, but it isn’t good if I’m trying to configure my stuff first, and then, everything else. It looks like Metro is displaying everything the app wants you to see first and then your personal stuff second.

This could be my initial view of the apps I’m using. I hope that is the case.

Categories: Coding

Kill non responsive apps

August 9, 2012 Leave a comment

C:\Windows\System32\taskkill.exe /f /fi "status eq not responding"

Categories: Coding

SharePoint 2010 – Set object caching user accounts with PowerShell

July 9, 2012 1 comment
From: Chris O’Brien’s blog:

http://www.sharepointnutsandbolts.com/2010/09/set-object-caching-user-accounts-with.html


Set object caching user accounts with PowerShell

In all installations of SharePoint, it’s important to properly configure object caching so that SharePoint can efficiently retrieve cached versions of items where possible. In my experience, this is one of THE most frequently forgotten configuration steps – yet Technet is clear that SharePoint cannot perform optimally without this being done. Object caching configuration mainly involves the configuration of two specific user accounts which SharePoint will use to simulate a reader and high-privileged user. If these accounts are not configured, you’ll see entries like this in the Windows event log:

Object Cache: The super user account utilized by the cache is not configured. This can increase the number of cache misses, which causes the page requests to consume unneccesary system resources.

The full details of why this configuration is necessary are in the Technet article Configuring object cache user accounts. The article outlines the process for performing the configuration, but bizarrely (IMHO) lists a process which is half PowerShell, half manual steps in Central Admin. My guess is that, just like software, shipping documentation has compromises too, and this article didn’t yet make the cut to receive the full treatment. I’ve written some PowerShell which does the full configuration – make sure you edit it to use your account names and web application URLs. You’ll need to paste this into a tool which can strip out HTML, before saving as a .ps1 file. If anyone has any trouble working with it, let me know and I’ll post the actual file somewhere.

Categories: Coding

Over 100 CRM Videos

April 13, 2012 Leave a comment
Categories: Coding

Titanium Studio

February 22, 2012 Leave a comment

IDE that seems to be able to develop Android, IPhone, Rails, PHP and native desktop apps

https://wiki.appcelerator.org/display/guides/Videos

Categories: Coding

Achievements are not for XBOX any more

February 17, 2012 Leave a comment

There is now an achievements plugin for Visual Studio.  See if you can create a class that has 10 inheritances: http://channel9.msdn.com/achievements/visualstudio

Categories: Coding

CRM Form Collapsible Sections

December 8, 2011 Leave a comment

//Add collapsible functionality to sections.
/*********************************************************************/

function attachCollapsableToSections() {
    var sections = getElementsByCondition(function(elm)
    { if (elm.className.indexOf("ms-crm-Form-Section") != -1) return true; }, null);
    for (var i = 0; i < sections.length; i++) {
        sections[i].innerHTML = ‘<img  alt="Expanded, click to collapse" src="/_imgs/navup.gif" style="cursor:hand;"/>’ + sections[i].innerHTML; sections[i].childNodes[0].attachEvent(‘onclick’, toggleVisibility);
    }
}
function attachCollapsableToSections() {
    var sections = getElementsByCondition(function (elm) { if (elm.className.indexOf("ms-crm-Form-Section") != -1) return true; }, null);

    for (var i = 0; i < sections.length; i++) {

        sections[i].innerHTML = ‘<img  alt="Expanded, click to collapse" src="/_imgs/navup.gif" style="cursor:hand;"/>’ + sections[i].innerHTML;
        sections[i].childNodes[0].attachEvent(‘onclick’, toggleVisibility);
    }

}

function toggleVisibility(e) {
    var sectionContainer = e.srcElement.parentNode.parentNode.parentNode;

    var elements = getElementsByCondition(function (elm) { if (elm.vAlign == "top") return true; }, sectionContainer);

    for (var i = 0; i < elements.length; i++) {
        if (elements[i].style.display == "none") {
            elements[i].style.display = "";           
            e.srcElement.src = e.srcElement.src.replace("navdown", "navup");
        }
        else {
            elements[i].style.display = "none";           
            e.srcElement.src = e.srcElement.src.replace("navup", "navdown");
        }
    }
}

function getElementsByCondition(condition, container) {
    container = container || document;
    var all = container.all || container.getElementsByTagName(‘*’);
    var arr = [];
    for (var k = 0; k < all.length; k++) {
        var elm = all[k];
        if (condition(elm, k))
            arr[arr.length] = elm;
    }
    return arr;
}
/*********************************************************************/

Categories: CRM Tags:

Is an app just HTML 5?

October 22, 2011 Leave a comment

I created an HTML 5 based CMS app:

http://m.wix.com/gregjonescto/icandothat

Is this the best way to build enterprise based apps – HTML 5? 

I don’t see why not.