Bloc List

The Bloc List component allows you to retrieve lists of Blocs in various ways, some include ways of getting data from these blocs.

This tool is useful for building dynamic navigation around your system. Perhaps you may want to load certain blocs based on a specific criteria like the value of data in those blocs. This tool is also used for other features in the Bloc Settings, for example "Can Assign Users to Other Blocs"

Another popular use for this tool is to get a quick overview of data in other blocs based on certain values you may want to check.

Initial Parameters Overview

A normal input field will appear, however when you begin typing it will search/autocomplete all the blocs available to you for clicking (useful if there are a large number)

Using another Bloc to filter your form list

It is possible to use another bloc entirely to filter the blocs you see based on values you would like to match. For example, even though a module might have 4 Blocs, let's call them Bloc 1, Bloc 2, Bloc 3, Bloc 4, it is possible that you may only want to see Bloc 1 and Bloc 3 for one reason, and Bloc 2 and 4 for another. Using this feature, you can create those rules using a bloc of your choosing.

This feature was originally built to allow customers to filter Test Types. So for instance, for 1 unit they wanted to load all of the tests for that Unit Type, and then load a series of different tests for a different unit.

Caution: This feature relies on Bloc names not changing. The titles are used as the means of joining/filtering what to load. We hope to improve this in the feature to allow for Bloc name changes after the field is created.

If your list of blocs are appearing as "buttons" or "links with latest data" it is possible to attach data to that url. This means when you load the url the fields with that data will get populated: https://url....?urlFieldSlugData={"part_number":"PART1"} would populate a field with the field slug part_number with the value PART1.

This option becomes particular powerful in combination with the Data Filtering Field parameter set on the bloc that is being linked to. Using this you could load a list of blocs, click on one and instantly just see the data you are concerned with without seeing anything else.

This option allows us to choose the fields that will appear in the list of blocs. In the example below there is just one field chosen: "Test Result". Note: We are forced to type field slugs because it is not possible to know what blocs will be loading on the front end.

To see data for that bloc, the field slug must exist in the bloc, otherwise it will just appear as if there is no data. In the example above for instance, it could be said Bloc 3 either has no data added or has no field called "Test Result".

Choose the Fields of the data you want to filter by

For the "Links with Latest Data" option, this feature allows you to filter data based on values in your bloc. This means it will not necessarily just get the latest value, but it will get the latest data that contain values from fields you are using to look up data.

Caution: For similar reasons as the options above, field slugs must be identical across any blocs you would like to filter data by.

Last updated