Quantcast
Viewing all articles
Browse latest Browse all 131

Containers – Fields With Multiple Values

Prerequisites

The Pagination module is required to for container functionality.

Sample Data

A sample workspace and document is provided for reference and relates to the example described below. Import the data source using the File->New->EasyCatalog Panel->Import Data Source… menu option.  The data contains two fields with lists of names:

Key boys names girls names
1 Liam,Noah, Oliver, Elijah, James, William, Benjamin, Lucas, Henry, Theodore Olivia,Emma,Charlotte,Amelia, Ava,Sophia,Isabella,Mia,Evelyn,Harper
2 Hadrian,Stewart, Hank, Melvin, Bill, Graham, Stuart, Dale Katharine, Kristen, Catriona, Donna, Jordan, Lorraine, Rhian, Suzanne

In the data values are separated with a comma. EasyCatalog requires them to be delimited with a carriage return, so cleansing has been applied to the sample.

Containers

Fields like this need to be flagged to Contain Multiple Values via the Advanced field options. Image fields are already treated as multi value fields. When populating a container, these types of fields are identified and the maximum number of  values found. During container population EasyCatalog then duplicates the original record, creating proxy records each set of the multi value fields. Formatting Rules can then be created and assigned to be populated:

Once Per Record

The formatting rule will be populated with all duplicated records.

Once Per Field Value

The formatting rules is populated once for each duplicates record.

Example

These examples shows both cases. The first rule (Once Per Field Value) is repeated for each set of values, while the second(Once Per Record) populates a table with all.

Image may be NSFW.
Clik here to view.

When number of values in the fields used varies, any missing are treated as blank.

The post Containers – Fields With Multiple Values appeared first on 65bit Software.


Viewing all articles
Browse latest Browse all 131

Trending Articles