This project is read-only.
1

Closed

Converter Hungs With New Snippet

description

Hi,
 
I am using the following syntax in all my JavaScripts developed for CRM 4.0:
 
oStatus = crmForm.all.statuscode;
oStatusBefore = crmForm.all.sur_statusbefore;
 
if(oStatus.DataValue == 3)
{
oStatusBefore.DataValue = "Interrupted";
}
else if(oStatus.DataValue == 5)
{
oStatusBefore.DataValue = "Postponed";
}
else
{
oStatusBefore.DataValue = "Pending";
}
 
I've created the following Snippets:
 
<snippet>
  <crm4>crmForm.all.|_|;</crm4>
  <crm5>Xrm.Page.getAttribute("|_|");</crm5>
</snippet>
<snippet>
  <crm4>|_|.DataValue == |_|</crm4>
  <crm5>|_|.getValue() == |_|</crm5>
</snippet>
<snippet>
  <crm4>|_|.DataValue = |_|;</crm4>
  <crm5>|_|.getValue() = |_|;</crm5>
</snippet>
 
The first snippet works fine but the second and third hung.
 
Am I doing something wrong?
 
Thanks,
 
Luiz
Closed Mar 1, 2011 at 12:05 AM by RhettClinton
Resolved

comments

RhettClinton wrote Nov 10, 2010 at 2:34 PM

The correct snippets to include would be the following and they have to be added at the bottom of the ConversionList.xml file.

<snippet>
<crm4>.DataValue = |_|;</crm4>
<crm5>.setValue(|_|);</crm5>
</snippet>
<snippet>
<crm4>.DataValue</crm4>
<crm5>.getValue()</crm5>
</snippet>
<snippet>
<crm4>= crmForm.all.|_|;</crm4>
<crm5>= Xrm.Page.getAttribute("|_|");</crm5>
</snippet>

The latest download version has these snippets included in the ConversionList.xml file.

Thanks,
Rhett.

wrote Nov 10, 2010 at 3:05 PM

wrote Mar 1, 2011 at 12:05 AM

wrote Feb 14, 2013 at 8:18 PM

wrote May 16, 2013 at 10:16 AM