Multiple Ways to Use Expanding Reporter

Scenario

This recipe is relevant for page structures with a Parent page to Children page to Descendant:

In each sub-child page, a table can be wrapped inside Scaffolding's Table Data macro.

For example:

Inside the table, configure the Text Data macro to get user input.

This recipe explains how to pull text from the nested Text Data macro and display it as a report on a different page.



Result


Recipe

Ingredients

Apps

Reporting, Scaffolding
Platform
N/A
Level

INTERMEDIATE

Estimated time

20 minutes

Macros

Suppliers

Storage format

Macro structure

You can recreate the example in the editor view:

Steps

For the first method the report will be generated based on the page filter:

  1. Create Report Table macro.

  2. Within the Report Table macro, create Expanding Reporter macro. Set the following parameters:
    Key: data:mytable
    As: "mytable"

  3. Within the Expanding Reporter macro, create Content Reporter macro. Set Labels to "customer" (a label assigned to any of the created sub-pages).

  4. Within the Report Table macro, create Report Column. Set Title to "ID".

  5. Within the Report Column macro, create Report Info macro. Set Key to expanded:mytable > data:myid.

  6. Within the Report Table macro, create Report Column. Set Title to "Content".


For the second method the report will be generated based on page title:

  1. Create Report Table macro.

  2. Within the Report Table macro, create Expanding Reporter macro. Set the following parameters:
    Key: data:mytable
    As: "mytable"

  3. Within the Expanding Reporter macro, create Content Reporter macro.

  4. Within the Report Table macro, create Text Filter macro. Set the following parameters:
    Key: content:title
    Include: ".*RockettoriaCafe.*"

  5. Within the Report Table macro, create Report Column. Set Title to "ID".

  6. Within the Report Table macro, create Report Column. Set Title to "Content".


For the second method the report will be generated based on Scope:

  1. Create Report Table macro.

  2. Within the Report Table macro, create Expanding Reporter macro. Set the following parameters
    Key: data:mytable
    As: "mytable"

  3. Within the Expanding Reporter macro, create Content Reporter macro. Set Scope to "Report on Rockettoria Cafe from Child Pages > children"

  4. Within the Report Table macro, create Report Column. Set Title to "ID".

  5. Within the Report Table macro, create Report Column. Set Title to "Content".