Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scaffolding Cloud: Converted Scaffolding Server macros to Scaffolding Cloud macros.
Live template
templateTypetemplate
templateOption{"label":"Use Case livetemplate cloud ready","value":"979936585","templateType":"template"}
templateTypeOption{"label":"Confluence template/blueprint","value":"template"}
templateId979936585
excerptScenario This recipe retrieves the last row of a Table Data macro when the table is dynamic in size and uses  Scaffolding Table Data  and  Text Data  macros in the reporting process. Result Recipe Apps Reporting for Confluence Server & Data Center, Scaffolding Level Easy Estimated time 10 minutes Macros Local Reporter, Report Block, Report Body, Report Info Suppliers Collection Supplier Storage format You can copy and paste this code into the Confluence Source Editor : mytable Test mytext line text INLINE INLINE @self Getting the last entry from Table Data macro: data:mytable > collection:last > data:mytext Macro structure You can recreate the example in the editor view: Steps Let's start by creating a dynamic table which allows a user to enter data. Create a  Table Data  macro with the name " mytable ". Inside that  Table Data  macro, create a table with one column and two rows. Like this: Now create a  Text Data  macro under the " Test " column. For the  Text Data  macro, set the  Field Name  parameter to " mytext ",  type  to " line ", and Content  to " text ". Outside the  Table Data  macro, create a Report Block macro. Within the Report Block macro, create Local Reporter macro and set the Key to " @self ". Within the Report Block macro, create a Report Body Macro, and type "Getting the last entry from Table Data macro:". Still within the Report Body macro, create a Report Info macro and set the Key to " data:mytable > collection:last > data:mytext ". Line-by-Line Explanation N/A
fieldGroupKeys{"6aqnjkbqoz":["net.customware.confluence.plugin.scaffolding__6aqnjkbqoz__data_0_z13vz64mnpguhtxoa5jp"]}