[Working with scripts]: Using Scriptlets in Elixir Repertoire Designer/Remote

RenderIf
The “RenderIf” script is called for each section, band and component in the report to determine whether it should be rendered. You may enter a script expression that results in a boolean value. If the value is true, the item is rendered, if the value is false, the item (and any children of the item) is not rendered.

Please refer to NoDataFound.jar for sample on displaying ‘No Records Found’ when there is no data.

To use the sample :

  1. Download “NoDataFound.jar” from the above link
  2. Copy “NoDataFound.jar” and place at $ELIXIR_REPORT_DEsIGNER_HOMExt
  3. Run Elixir Repertoire Designer
  4. Click on “Add FileSystem” and select “Jar FileSystem”
  5. Enter “KnowledgeBase” for Name and locate “NoDataFound.jar”

OnRenderBegin
The “OnRenderBegin” script is executed after RenderIf returns true. This script allows you to configure the item (which might be a section, band, or component) prior to rendering. You may also initialize variables that are needed by subsequent scripts.

OnRenderEnd
The “OnRenderEnd” script is executed after rendering of the item (which might be a section, band, or component). This script allows post-processing of the render result. As the render result may vary based on the data input, it is advisable to use OnRenderBegin where possible, rather than “OnRenderEnd”. For example, a field may output zero, one or more Text elements depending on the input data - you shouldn’t assume you will always get one Text result out.

OnLayout
The “OnLayout” script is called when a band is positioned on a page. This event occurs after “OnRenderEnd”. At the point “OnRenderEnd” is called, the component has been rendered, but no page layout has been done. If the band won’t fit on the current page, it may get pushed to the next one. In this case, any page footer will be rendered first. Next, the page header of the next page will be rendered, finally, the “OnLayout” will be triggered now the component has been placed on the page.

You should use “OnLayout” to process page-specific information - for example page totals. You can’t use “OnRenderEnd”, because the appropriate page is not yet known and the totals may get added to the previous page instead.

Please rename the following attachment from .txt to .jar
NoDataFound.txt