Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Tool Tips CRM 2011

$
0
0

Hello-

I created the following scripts for an Entity.  It works perfectly. 

I want to use this script for other entities to add help tips to attribute fields.  I have tried several times but have failed.  Please let me know what I should be doing.  Thank you.

I created this Java Script.

function loadHelp() {

$.ajax({

type: "GET",

url: "http://uspdcdcrm002d/ReedSmith/WebResources/cpdc_PracticeAreaHelp",

dataType: "xml",

success: parseHelpXML

}); //end ajax

}

function parseHelpXML(data) {

var entity = Xrm.Page.data.entity.getEntityName().toString().toLowerCase();

entXML = $("entity[name=" + entity + "]", data)

$(entXML).children().each(function (i) {

var attr = this.getAttribute("name");

var txt = $(this).find('shorthelp').text();

registerHelp(entity, attr, txt);

});

}

function registerHelp(entity, attr, txt) {

var obj = document.getElementById(attr+'_c').children[0];

html = '<img src="/_imgs/ico/16_info.gif" alt="" width="16" height="16" /><div id="help_' + attr + '" style="visibility: hidden; position:absolute;">: ' + txt + '</div>';

$(obj).append(html);

}

*******It pulls or gets this data xml *******

<help>

<entity name="opportunity">

<attribute name="cpdc_subpracticearea">

<shorthelp>To activate select Practice Area and click Save.</shorthelp>

</attribute>

</entity>

</help>


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images