Comment on page
A Sub Bloc is a way of embedding any other bloc inside the existing bloc. Both the parent (host) and child blocs can have data connected to each other. This allows for the creation of tools like sub lists within a main form, or perhaps access to secondary data with the ability to update it while still in the first Bloc. The Sub Bloc itself is an existing bloc in your system which is chosen when creating the field.
A very basic example of a Sub Bloc where another bloc called "Sub Bloc" is included in the bloc called "Parent Bloc". In this particular example the "Incoming Shipment Number" field has been linked with the "Shipment Number" field. This allows you to add multiple line items for every Incoming Shipment Number.
Note: The passing of data from the parent bloc to a sub bloc (or vice versa) occurs when the rules/actions occur for the field you are passing the data from.
Hint: The main principle behind a Sub bloc is for having multiple records for a single "parent" record. For example, manging invoices, you could create an invoice and add multiple line items in the sub bloc. To use this effectively it is adviseable to do two things in the Sub Bloc: 1. For the linked field in the sub bloc, add the field parameter Data Filtering Field to make sure only the data related to the value of that field appears.
For Linking Data: When the data updates on the parent bloc, the child data on the child bloc for that field automatically updates as well.
Don't forget, you can also set filtering options on the child bloc so that the only data loaded in the child bloc is data associated with the value of a certain field, in this case you could choose the child blocs linked field.