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.

Initial Parameters Overview

Parameter

Description

Type Module name

If you want to load a list of Blocs outside of the existing module

Select How the blocs get displayed

Allows you to choose how the blocs get displayed on the screen (More info on each option is below)

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.

Parameter

Description

Type Module Name

Used for deciding what module to look up.

Select the local field to watch

Select a local field whose data is used to compare against the filtering bloc.

Select the bloc to use as the filter

Having chosen the module, you can now select the bloc that will be used.

Select remote field from the bloc to compare with local field data

The filtering bloc will need a field that contains the data you will be comparing against.

Select remote field from the bloc that contains the bloc names.

With this parameter you set the field that will contain the bloc names, these names will be how the filtering is determined.

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.

Parameter

Description

Choose Local Field to get data from

Choose the local field whose data will feed into the URL. For example the local field might "Persons Name", the persons name will then get added to the url

Type Field Slug to Update

You must type the field slug of the field in the other bloc that you intend on populating. Note: The reason for having to manually type the field slug is because it is not possible to choose this field using selections because of the dynamic nature of how the blocs load. We will never know what blocs are loading until the user starts using the front end.

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.

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.

Last updated

Was this helpful?