Pages

A page defines the content that will be displayed on screen or per page on a PDF. A report definition can have multiple pages.

Attributes

id

a unique ID that allows the page to be referenced by the application and by the report.

title

optional title of the page.

type

the default page is standard, but the type “COVER” can be added to specify a cover page which can be customised (see Customisation).

orientation

defines the layout of the print as either PORTRAIT or LANDSCAPE.  The default is PORTRAIT.

sortOrder

orders the list:

  1. ASCENDING
  2. DESCENDING

repeat

pages can repeat over accounts or dimensions:

  1. SUBJECT - looks for a subject attribute, repeats the page for each unique subject id.
  2. DIMENSION -  looks for a dimension and data attributes, repeats the page for each unique dimension value.

data

specifies the Subject Formula for the dimension to repeat over.

Examples

<moxydoc:page id="Screening" title="Kess 10" orientation=”LANDSCAPE” sortOrder="ASCENDING" repeat="DIMENSION" dimension="ORG" data="CAS.CON">
(repeat a page per organisation)

<moxydoc:page id="Screening2" title="Kess 10" sortOrder="DESCENDING" repeat="SUBJECT" data="CAS.CON">
(repeat a page per contact)

<moxydoc:page id="CoverPage" type="COVER">

</moxydoc:page>

Conditions

A condition on a page can determine whether the page displays or prints or not.

Attributes

test

a logical test

Example

<moxydoc:page id="Comparison" title="Changes in Outcomes">

   <moxydoc:conditions>

      <moxydoc:condition test="$date2 != 'None' and $date3 != 'None'" />

   </moxydoc:conditions>

</moxydoc:page>


Click to see Comments

Help comments powered by Disqus