Extracting Scaffolding Data from Children Pages

Scenario

This recipe is relevant for page structures containing Parent page to Children page to Descendent:

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

For example:

It’s possible to configure the Text Data macro inside the table to get user input. 

This recipe shows how to extract text from the Text Data macro (nested inside the Table Data macro) and display it as a report on a different page.



Result


Recipe

Ingredients

Add-ons

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

  1. Add a report-table macro.

  2. Add the expanding-reporter macro within a report-table macro and specify the following:
    Key: data:tableData
    Asexr
    - Match Alltrue

  3. Add a content-reporter macro within expanding-reporter macro and specify the following:

    - Spaces@self
    Typespage
    ScopeCafe Rockettoria Projects > descendents
    - Match All Criteriatrue


  4. Add a report-column macro within the report-table macro and specify the following:
    TitleCoffee Machine Details

  5. Add a report-info macro within the new report-column macro and specify Key as expanded:exr>data:textData

  6. Add another report-column macro within the report-table macro and specify the following:
    TitleRemarks

  7. Add text-data macro within the  report-column macro above and specify Field Name as "remarks". 

  8. Save the page.