All Collections
How-To Guides
Using Expression Groups
Using Expression Groups
Lucas Tran avatar
Written by Lucas Tran
Updated over a week ago

An expression group is a group formed from multiple expressions from the model template. The goal of an expression group is to isolate a section of the label and be able to make displacements of the fields as a group as opposed to moving each field one at a time.

For example, given the below label.

The field expressions related to the address of the company can be grouped together. Since they follow the same indentation, any change to the placement of one of the address fields will result in the displacement of others. So, to avoid having to repeat the displacement for each expression line individually, we can create a group that will move all the fields at once.


Creating a group

To create a group, in the Label Model screen of your desired label, navigate to the Groups tab in the Detail section of the screen.

  1. Click on Add Row

  2. Give a name to the group

  3. Click Save.

Assigning the group

Once the group is created you can assign it to an expression line, in other words, a field.

In the image above, we've assigned the "Address" group to the last 4 expressions (FROMNAME, FROMSTREET, FROMCITY, FROMCOUNTRY)

Each of these corresponds to lines 1 through 4 on the image below

Now with the expression group assigned. whenever a displacement of one of 4 lines in the address is made, the displacement will be applied to all members of the group.

Using the Up, Down, Left, and Right buttons in the toolbar, you can move the group to the ideal position.

However, if you manually change the position on one of the fields in the group, either via the Pos. X or Pos. Y columns, the other fields within the group will not follow the change.

Did this answer your question?