In dit artikel
Adding the ${...} field
The ${...} field allows the user to add dynamic text to the document, for instance an account's balance or a Banana table. The Banana API interface is available at the following web address https://www.banana.ch/doc9/en/node/4714
The command can be added manually or through the command Edit - Add script
Printing the current balance of account 1020
${Banana.Converter.toLocaleNumberFormat(Banana.document.currentBalance('1020','','').balance);}
Output of the Accounts table, columns: Account, Group, Description, Balance (command not yet available)
${HTML Banana.document.table("Accounts").toHtml(['Account','Group','Description','Balance'],true);}
It is possible to write the javascript code in a separate document and include the script through the command Banana.include.
The scripts can be saved in the Documents table or in a local file.
${Banana.include("documents:myscript1");rtnValue} ${Banana.include("c://temp//myscript16.js");rtnValue}
Adding a page break
The command can be added manually or through the comand Edit - Add page break
Text in the first page
${PAGEBREAK}
Text in the second page
The command ${PAGEBREAK} is not yet available, the current command to add a page break is:
<!--pagebreak-->