Using data from a database or other source to build portions of your web page dynamically enables efficient and effective web page creation by freeing the screen's author from hardcoding values. To give widgets access to data sources and allow data preparation tools to fetch required input data, widget definitions include an actions
element. Within the actions
element, you may include directives to:
Read and set context variables
Make database calls directly
Call scripting languages such as BeanShell or Groovy
Call other OFBiz Services
Some initial preparation has to be done to add new actions, as follows:
1. Open a Screen widget definition file and select a screen to add an action to.
2. If your Screen widget definition does not have an
actions
element defined, add one.