Formatting Rule Fields

A formatting rule field lets you create a field in the text which will be populated with the formatting rule when data is assigned.

How do I insert a formatting rule field?

Place the text cursor where you want the rule’s content to appear. Select one rule in the Formatting Rules panel, then choose Insert Formatting Rule Field from the panel menu. EasyCatalog inserts a placeholder showing the rule name.

If the command is unavailable, check that you have a text insertion point and a single rule selected.

How do I populate it?

In the EasyCatalog panel, select the records you want to use, or select a group. Drag the selection onto the text frame containing the placeholder. EasyCatalog applies the named rule to the data you dropped and places the result in the placeholder.

What is the difference between dropping a group and dropping individual records?

A group. When you drop a single group from a grouped panel, EasyCatalog can save the group definition. Suppose you drop the “Lighting” group from a panel grouped by Category. If another product is later added to Lighting, rebuilding the rule includes that product. A product moved out of Lighting drops out of the listing.

Individual records. EasyCatalog saves their record keys in order. Rebuilding uses the current values of those records. To include another record, populate the field again with the new selection. Drops from active search results or a panel restricted to a fixed record set also use saved keys.

When should I enable Update Formatting Rules?

Enable Update Formatting Rules when running Update Document if you want EasyCatalog to run the rule again. Use this when the rule design changes, or when the assigned data changes which rows, paragraphs or other elements the rule should produce.

Leave the option off when you only need to update existing linked fields. For example, a price already placed in a listing can update on its own. Adding a row for a new product requires the rule to run again.

How are fields inside a formatting rule updated?

Each EasyCatalog field placed by the rule keeps its link to the record and field it came from. This also applies to fields in table cells. For example, if a rule creates a row for each product, the price in each row is linked to that product’s price field.

To update those prices, run Update Document with Update Formatting Rules turned off. EasyCatalog checks each linked field included in the update and refreshes its value in place. Plain text entered by the rule has no field link. To regenerate that text, enable Update Formatting Rules and run Update Document again.

How can I see which data a field uses?

Place the text cursor inside the populated field and choose Inspect Rule Applied To Selection… from the Formatting Rules panel menu. The report shows the rule name, data source, saved group or record keys, and the records that currently match. You can also inspect an unpopulated placeholder to check its rule name.