PrimalForms 2011: Slimmer Form Code

In the latest service release (v2.0.11) we updated PrimalForm 2011’s code generator so that it produces slimmer scripts. We wanted to increase the readability and at the same time reduce the size of the generated script.

The following is a script block generated by the previous version of PrimalForms 2011:

Old Generated Script

Now we have the same script block generated by the latest version of PrimalForms 2011:

New Generated Script

By utilizing PowerShell’s ability to convert strings into appropriate objects, the generated code is now cleaner and easier to read.

 

UPDATE: In the next service build, the generated script will get even slimmer by removing the DataBinding.DefaultDataSourceUpdateMode line of each control:

Generated Script Next Build