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.

Greg Jones

October 19, 2011 Leave a comment

This is your new Flavors.me page.

via Greg Jones.

Categories: Coding

Thinking about how IT will work in the near future

October 16, 2011 Leave a comment

OS

  • Windows 8
    • Metro Look
    • Touch
    • Blend Apps with other apps
  • OS X Lion

Cloud

  • Private Clouds
    • HyperV, VMWare
  • Public Clouds
    • Amazon

App Solutions

App Development

  • Social vs Crowdware
  • Mobile vs HTML 5

Processes

  • BCP & Strategic Planning => Enterprise Architecture

Other

  • BYOT (Bring Your Own Tech.. to the office)
Categories: CIO, IT LEADERSHIP

ITIL Service Catalog

August 15, 2011 Leave a comment

I found a great example of communicating an ITIL Service Catalog from Purdue University.

http://www.itap.purdue.edu/service/catalog/about.cfm

Categories: IT LEADERSHIP, ITIL Tags:

Dynamics GP Tables

August 2, 2011 Leave a comment

Great link to all the GP Tables

http://victoriayudin.com/gp-tables/

Categories: GP

Microsoft Dynamics CRM 2011 Development Resources

August 1, 2011 Leave a comment
Categories: CRM

Disable an entire CRM Form

July 27, 2011 Leave a comment

Used to disable an entire form after a certain status has occurred:

for (var index = 0; index < crmForm.all.length; index++)
{
    if(crmForm.all[index].Disabled != null)
    {
        crmForm.all[index].Disabled = true;
    }
}

Categories: Coding, CRM Tags:

Quick SCRUM write-ups and videos

June 16, 2011 Leave a comment
Categories: Agile Tags:

Selling EA and anything else

June 13, 2011 Leave a comment

From a LinkedIn discussion about”What we need EA”

JD B. • @Wanderson – In a different forum the question was asked “how do I sell a value proposition?” The answer was “Make a clear distinction between (1) Creating a value proposition, (2) Communicating the value proposition, and (3) Communicating the value proposition plan?
# 1, the actual value proposition, should always include (a) the types of value – monetary, utility/functional, quality, perceptual/psychological – being created and (b) the business and customer perspectives of ‘the value’. McKinsey have a very interesting article on value perception/purchasing reasons in a Q4, 2010 retail survey. In summary, the results were: Utility 40%, monetary 34%, Quality 14.5%, and perceptual 11.5%
#2, A simple approach for #2 is emphasizing Value, Value, and Value, and how the Value will be created.
#3, A workable approach for #3 is When, What, Why, How, Who, and Where.
The point is that if the question had been, as it so often is, about Enterprise Architecture, the answer would be the same. It’s all about freaking value Dude :-)

Categories: Enterprise Architecture Tags:
Follow

Get every new post delivered to your Inbox.