Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Common Methods (includes.js)

This feature is mainly intended for OEM 

Frevvoproduct
frevvo partners. Often there are common rule code that is reused over and over in many forms. Traditionally this code must be duplicated in each form. 
Frevvoproduct
is now packaged with a file in
Frevvoproduct
 .war
Frevvoproduct
frevvo is packaged with a file in tomcat/webapps/frevvo/WEB-INF/rules/includes.js which is initially empty. OEM 
Frevvoproduct
frevvo partners can put commons functions into includes.js. There is a second file com.frevvo.forms.model/src/main/resources/com/gauss/forms/rule/executor/includes.js also in the WEB-INF directory whose contents are defined by
Frevvoproduct
. /WEB-INF/rules/includes.js which is initially empty. OEM 
Frevvoproduct
partners can put commons functions into includes.js. There is a second file com.frevvo.forms.model/src/main/resources/com/gauss/forms/rule/executor/includes.js also packaged in
Frevvoproduct
 .war whose contents are defined by
Frevvoproduct
. frevvo.

When you write any form rule you can now call functions defined in these two includes.js files above. The first one is for OEM partners to create and repackage with frevvo.zip. The second one is frevvo's and is automatically updated when there is a new release and should not be modified by OEM partners.

Extracting common functions into includes.js can simplify rules by calling a common method in includes.js rather than

...

coding the common code into each rule.

Note that includes.js is parsed and compiled once when 

Frevvoproduct

frevvo starts. If you update this file with new functions and fixes to existing functions you must restart 

Frevvoproduct

frevvo for the changes to take affect. 

Changing the Value Property of Controls in Signed Sections

...