Adding SubObjects to your Report Template
You use merge fields like shown below in your Word report template to display SubObjects.
Here is a sample on a "Chattels" subObject:
TableStart and TableEnd indicate the section for that sub object by defining it with so_Name.
Merge Field <ChattelsSummary> in the sample above is the SubObject field that will display each value entered in SE or the mobile app in the report. Note how this merge field do not need the table name at it is enclosed.
You can have more than one merge field, depending on your subObject and what you want to show in your report.
ValuePRO set SubObjects
There are another type of SubObject in ValuePRO already set up in the system and these could be SalesEvidence and AdditionalOccupancies for example, where you do not use the same set of code as above to include them in your report template.
We have a sample here showing how sales evidence is used:
Another SubObject sample:
See the difference? (Also note that the <TableStart> tag is always on a new line.)
For a list of SubObjects already in ValuePRO, check the Report Fields under Templates and navigate to the needed so_field in the drop down box:
Advanced: What if I don't want the label or the heading before the subObject to show in the report when not needed?
The below sample will show Chattels include: Chattels only if entered a value into ChattelsSummary using the VPPptDel functionality:
See also: Adding SubObjects to your DET