<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>crm.atechnisch.nl &#187; forms</title>
	<atom:link href="http://crm.atechnisch.nl/tag/forms/feed/" rel="self" type="application/rss+xml" />
	<link>http://crm.atechnisch.nl</link>
	<description>How to improve Microsoft Dynamics CRM</description>
	<lastBuildDate>Wed, 25 Nov 2009 08:12:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Multilingual Labels on Custom Buttons</title>
		<link>http://crm.atechnisch.nl/2008/01/multilingual-labels-on-custom-buttons/</link>
		<comments>http://crm.atechnisch.nl/2008/01/multilingual-labels-on-custom-buttons/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 09:59:56 +0000</pubDate>
		<dc:creator>Huib Aarts</dc:creator>
				<category><![CDATA[Client Side Scripting]]></category>
		<category><![CDATA[MS CRM 4.0 Customizations]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[Multilingual]]></category>

		<guid isPermaLink="false">http://crm.atechnisch.nl/2008/01/30/multilingual-labels-on-custom-buttons/</guid>
		<description><![CDATA[In addition to the last post and a new Feature of MS CRM 4.0, I have improved my script to create a Button on a MS CRM Form with a Multilingual Extension.I will show the same script as in the last post, see Screens over there, but with the Multilingual possibilities:

//to hide the address details [...]]]></description>
			<content:encoded><![CDATA[<p align="left">In addition to the last post and a new Feature of MS CRM 4.0, I have improved my script to create a Button on a MS CRM Form with a Multilingual Extension.I will show the same script as in the last post, see Screens over there, but with the Multilingual possibilities:</p>
<pre class="brush: css;">
//to hide the address details onload
crmForm.all.address1_name_c.parentElement.parentElement.parentElement.style.display ='none';

//USER_LANGUAGE_CODE: Provides an LCID value representing the Microsoft Dynamics CRM Language Pack that the user has chosen
var Lang = USER_LANGUAGE_CODE
//if language is English
if (Lang == &quot;1033&quot;)
{
var BtnTxt = &quot;Show Address Details&quot;
}
//if language is Dutch
if (Lang == &quot;1043&quot;)
{
var BtnTxt = &quot;Bekijk Adres Details&quot;
}
//if language is French
if (Lang == &quot;1036&quot;)
{
var BtnTxt = &quot;Affiche les details de l'adresse&quot;
}

// Replace the attribute new_button with the button and create a link to the onclick function
function CreateButton() {
var fieldTable = crmForm.all.new_button_d;

var html = &quot;&lt;table border='0' cellspacing='0' cellpadding='0'&gt;&lt;tr&gt;&lt;td width='0px'&gt;&quot; + fieldTable.innerHTML + &quot;&lt;/td&gt;&lt;td width='200px'&gt;&lt;input type='button' id='btn_details' onclick='Button_OnClick()' style='background-color:#d8e8ff' style='border-width:2px'/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&quot;;
fieldTable.innerHTML = html;

//hide the new_button attribute
document.all.new_button.style.display='none';
crmForm.all.new_button_c.innerText=&quot;&quot;;

//change the label of the button dependend on the language
var objBtn = document.getElementById('btn_details');
objBtn.value = BtnTxt;
objBtn.title = BtnTxt;

}
// Function to be triggered onClick
Button_OnClick = function() {
//to show the address details
crmForm.all.address1_name_c.parentElement.parentElement.parentElement.style.display ='block';
//In this case I hide the button, because I haven't added the button has not function anymore in this case
crmForm.all.new_button_c.parentElement.parentElement.parentElement.style.display ='none';
}
// Initialization: Execute the selected sample
CreateButton();
</pre>
]]></content:encoded>
			<wfw:commentRss>http://crm.atechnisch.nl/2008/01/multilingual-labels-on-custom-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
