MYOB Greentree

HideShow

  • Contents
  • Index
  • Search
 
Display results with all search words

 

Dynamic Space Allocation


A reporting method is created to enable you to create a dynamic space for displaying text within a report section. The nominated text will take up as much space as it needs to print in full, but the space will not be left empty if there is no text to print.

To print notes in a dynamic space, use the Get all lines of text method, which is generically available for any class. You must provide these input details for the method.

Normally the text you will want to display will be an attribute called standardText, however it could be any other text attribute. Drag the relevant property into the Message to display line. You can specify the number of characters you want to print across the report page.

If Truncated is set:

  • To true, the characters will be cut off at the end of the line if they do not complete.
  • To false, the text will wrap to a new line if it cannot fit completely into the previous line using the characters per line.

The method will look similar to this when complete:

getlinesoftext

Click OK to save the version of the method. The next step is to drag the method version into the relevant section - because this method returns a collection, a new repeating section will be created. Select the new section and add the database field lineOfText, which is available on the Available Fields Palette for the section. This is the only field in the section.

Next, add a new section below the all lines of text section. Access the Section Properties for the new section and set the position to be a Repeat Footer.

Within this section, position the method Delete all lines of text (you must create a version of the method first - it does not require any input).

The final step is to minimise the new repeat header section to be as small as possible. The report will now print the SELECTED text with space being dynamically allocated.

information

This process is a workaround as the full function required to support dynamic space allocation has not yet been developed.