Results Box
Last updated
Last updated
A Results Box is a neat way of display data from another bloc and have it appear within the bloc you are working on.
Note: To determine what fields are shown or hidden in the results, this is controlled in the field parameters of the source data. All fields show by default but by using the Field Hidden option setting Hide in Data Results Box it wont appear in any Results Box fields. We are working to improve this, so that the fields that are shown or hidden in the results box can be controlled when building the Results box field itself, as opposed to changing parameters on the source field. This will you more freedom to build varying types of Results Boxes from the same bloc.
Note: This field can be used with .docx file tables to generate lists of data in our Template Builder. More information here.
Select Bloc
This is used to find the bloc you are going to load the data from.
Only get data matching local fields
Local Field to check: This is the field on the bloc you are working on, the value of this field will be used to search the bloc you are looking up.
Field to look up: This is the field that will be searched, so basically the value of the local field must equal the value of this remote field. The data shown will only have these matching values.
You can build as many searches as you want using the add button.
View Icon Url
If you enter a Url of the bloc in which the results box is loading data from, into this parameter, it shows an icon in the results box. When this icon is clicked, it will open the Url and you will have access to the matching record inside the Url. There you will be able to update the record and this will pass the new edited record back into your results box.
View Data Popup
If enabled, it will override the 'View Icon Url' option above, and instead, when you click the icon it will show the record in a popup. This will be a view mode only.
Select Remote field to sort by
You can also sort the results by a certain field for a neater display of data.
Tick this box to reverse the order of the results
Used to reverse the order of the results in the Results Box.
Show Delete Icon
Allows you to delete a record from the results box. It will show a delete button .
Allow Editing
When enabled, this shows a little edit icon which allows you to edit records within the results box.
Open Bloc popup to edit the record: When enabled, this opens the record in a new bloc pop up and allows you to edit the data.
Only Show the following fields
In this dropdown, you can pick which fields you want to show in the results box. You can show multiple fields using the add button.
Only Refresh the following fields after editing/deleting (Results Boxes or Dropdown/List Fields Only)
This option lets you load selected fields again after you delete or edit a record in another results box.
For example, you may have multiple results boxes in a bloc and when you edit or delete a record in a results box, it may effect the results in another results box. With this option enabled, the results box will update to reflect the changes in its records.
Set Values to Colours
This allows you to have a colour for selected values in your results box.
Record Duplication
Enabled this option if you wish to duplicate records in a results box. For example, if you have invoice 001 in a results box, there will be a duplicate button to press. Once pressed it will create a new record for invoice 002. It will duplicate the invoice and all line items.
To enable this option you must firstly, switch to edit mode and scroll down to 'Record Duplication Settings' and enable 'Show Duplicate Button in Form'. Secondly, you must go back to your results box and enable the 'Record Duplication' Parameter. To access the duplicate button, you will then select the record you wish to duplicate, select show more and in the 'Click to Edit' tab you should see the Duplicate Button.
Apply Bloc Initialisation Actions: See the following documentation for reference: