{"id":2027,"date":"2010-01-11T08:34:05","date_gmt":"2010-01-11T16:34:05","guid":{"rendered":"http:\/\/www.sapien.com\/blog\/?p=2027"},"modified":"2010-01-12T15:13:20","modified_gmt":"2010-01-12T23:13:20","slug":"primalforms-2009-exported-script-formatting","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2010\/01\/11\/primalforms-2009-exported-script-formatting\/","title":{"rendered":"PrimalForms 2009: Exported Script Formatting"},"content":{"rendered":"<p>In order to start the planning stages of the next version of PrimalForms, we decided to conduct a review the current version. After gathering user feedback on the subject, we concluded that the script formatting needed a makeover to make it easier for the users to read the final script. In order to address user feedback prior to the release of the next version of PrimalForms, we decided to incorporate these changes in this month\u2019s service build of PrimalForms 2009 (v1.1.4).<\/p>\n<p>The first step we took in the makeover was to define the script\u2019s regions with clear comments and appropriately indent the script\u2019s lines to make it easier to read.<\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2010\/01\/OldSectionComments.png\"><img loading=\"lazy\" decoding=\"async\" title=\"Old Section Comments\" style=\"border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"88\" alt=\"Old Section Comments\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2010\/01\/OldSectionComments_thumb.png\" width=\"244\" border=\"0\" \/><\/a><\/p>\n<p>Fig. 1: <font size=\"2\">Old Section Comments<\/font><\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2010\/01\/SectionComments.png\"><img loading=\"lazy\" decoding=\"async\" title=\"New Section Comments\" style=\"border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"97\" alt=\"New Section Comments\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2010\/01\/SectionComments_thumb.png\" width=\"244\" border=\"0\" \/><\/a><\/p>\n<p><font size=\"2\">Fig. 2: New Section Comments<\/font><\/p>\n<p>Next, we redesigned the generated form code so that each control was cleared labeled and contained within a single section of script. To reduce the total number of lines generated in the script, we streamlined some property assignments to a singe line.<\/p>\n<p>&#160;<a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2010\/01\/OldFormattedFormScript.png\"><img loading=\"lazy\" decoding=\"async\" title=\"OldFormattedFormScript\" style=\"border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"97\" alt=\"OldFormattedFormScript\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2010\/01\/OldFormattedFormScript_thumb.png\" width=\"244\" border=\"0\" \/><\/a> <\/p>\n<p><font size=\"2\">Fig. 3: Old Form Script Formatting<\/font><\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2010\/01\/FormattedFormScript.png\"><img loading=\"lazy\" decoding=\"async\" title=\"FormattedFormScript\" style=\"border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"97\" alt=\"FormattedFormScript\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2010\/01\/FormattedFormScript_thumb.png\" width=\"244\" border=\"0\" \/><\/a> <\/p>\n<p><font size=\"2\">Fig. 4: New Form Script Formatting<\/font><\/p>\n<p>The new formatting makes the generated script smaller in size, easier to read, and the best part is that you don\u2019t have to wait to get this update. <\/p>\n<p><a href=\"http:\/\/my.sapien.com\">Click here<\/a> to download the latest build.<\/p>\n<p>If you don\u2019t have PrimalForms 2009, download the trial version <a href=\"http:\/\/primaltools.com\/products\/info.asp?p=PrimalForms\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to start the planning stages of the next version of PrimalForms, we decided to conduct a review the current version. After gathering user feedback on the subject, we concluded that the script formatting needed a makeover to make it easier for the users to read the final script. In order to address user [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[509,21,25],"tags":[85,313,28,314,447,312],"class_list":["post-2027","post","type-post","status-publish","format-standard","hentry","category-primalforms-software-news","category-software-news","category-windows-powershell","tag-formatting","tag-forms","tag-powershell","tag-primalforms","tag-script","tag-winforms"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/2027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=2027"}],"version-history":[{"count":6,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/2027\/revisions"}],"predecessor-version":[{"id":2033,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/2027\/revisions\/2033"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=2027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=2027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=2027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}