Transformer! 2.6 Released

Version 2.6 of Transformer!, the ultimate Dynamics CRM JavaScript conversion tool is now available.

New in this release:

New Transformations:

1. .GetControl

Now converts to .getControl

 

2. crmForm.attachEvent(“onsave”, onsave);
crmForm.all.productid.attachEvent(“onchange”, productonchange);

Now converts to:

Xrm.Page.entity.addOnSave(onsave);
Xrm.Page.getAttribute(“productid”).addOnChange(productonchange);

 

3.  crmForm.all.new_name.fireEvent(“onchange”);

Now converts to:

Xrm.Page.getAttribute(“new_name”).fireOnChange();

 

4.  document.getElementById(‘crmFormSelector’).innerText;

Now converts to:

Xrm.Page.ui.formSelector.getCurrentItem().getLabel();

 

5.  Variables named ‘url’ were accidentally being replaced with getSrc().

Now converts to:

document.all.IFRAME_msn.src = url + crmForm.ObjectId
Xrm.Page.getControl(“IFRAME_msn”).setSrc(url + Xrm.Page.data.entity.getId()

 

6. “Falsy” values are now converted into their actually true and false values.

For example:

crmForm.all.new_actividadciiuid.Disabled = “”;
crmForm.all.new_actividadpatrimonialid.Disabled = “True”;

Now converts to:

Xrm.Page.getControl(“new_actividadciiuid”).setDisabled(false);
Xrm.Page.getControl(“new_actividadpatrimonialid”).setDisabled(true);

 

New Feature

A new option has been added that will allow you to generate a list of all of the functions found in the converted JavaScript.  I found this very useful when converting large code-bases because it helped to quickly identify duplicate functions and also gave me a really good overview of the system.

 

Take a Test Drive

Visit the Transformer! product page to get additional information, download the trial version, or view a sample conversion report.

Leave a Reply 1 comment