Posts

Showing posts with the label scripts

New XrmToolBox plugin! Form Libraries Manager

Image
Last month, I had to work on some JavaScript web resources cleaning and I wanted to rename all my web resources. This is not so complicated when using the Web Resources Manager plugin to drag and drop JavaScript files to some new folders. The difficult part was to update all forms that used some shared web resources like JSON2, jQuery and XrmServiceToolkit. So, I decided to write… a plugin for the XrmToolBox. So, let me introduce the Form Libraries Manager This plugin can list all JavaScript web resources and all forms (only active forms for CRM 2013). You can select web resources to add and forms where to add them. If multiple web resources are selected, you can order them and choose where to display them : at the beginning of the scripts list for forms or at the end. I’m sure this will help people to initialize all their forms with required web resources. It can also remove in bulk selected libraries. For each selected library, if it is used by a form event, a warning is display...

Did you notice the script finder?

Image
Maybe you noticed there was a new tool in the toolbox. It’s a really simple one that displays all scripts referenced on all entities accross an organization. It is really useful when you arrive on a project without knowing what was really done on forms. I will maybe add an export feature as I’m quite sure someone will ask for it. Just an extra information: thanks to the toolbox, it took me only 30 minutes to develop this tool!

New version of Form JavaScript Manager (v1.1)

I had some feedback on this tool and then, here is a new version. Updates: It is now possible to export several entities at the same time, by selecting from a list or by manually writing. Bug fixes: It could happen that the form event scripts are inverted if already exist in the form. Thus, a script could go onSave in the onLoad. Download:

New tool: JavaScript Form Manager

Image
After a few days (weeks?) of silence, I am pleased to offer you my latest tool: JavaScript Form Manager. What does this tool? Export of form JavaScript (onload, onSave, onchange) in JavaScript file on disk Preview of scripts Edit scripts (ie launching the default text editor or Visual Studio) Import scripts from JavaScript files to the form and publish entities Supported input file name: entityName-onloadORonsave[-anythingElse].js entityName-onchange-attributeName[-anythingElse].js Examples: account-onload.js / onload-account-test.js / account-onchange-name.js / account-name-onchange-anotherTest.js This tool allows you to avoid navigating in the forms to test and manage your scripts. You do now everything from the tool, in a graphical way. Download: Screenshot : As usual, feel free to give me feedback if you encounter problems or if you think that this program can be improved