Mehr zu: Publixx (EN)

publixx - Smart Tables (english)

Transform flat data into sophisticated tables with sorting, filtering, cell merging, and pivot capabilities — all configured through an intuitive visual wizard.

Smart Tables

Transform flat data into sophisticated tables with sorting, filtering, cell merging, and pivot capabilities — all configured through an intuitive visual wizard.

Why Smart Tables?

Smart Tables solve a common challenge: your data is flat (one row per item), but your documents need structured, professional tables with merged cells, grouped headers, and cross-tabulation. The PTL (Publixx Table Language) engine handles this transformation automatically.

📄 Flat Data (JSON/Excel) cat | prod | price | stock Screws | M6x20 | 0.18 | 500 Screws | M6x30 | 0.22 | 350 Screws | M8x20 | 0.24 | 420 Bolts | HX-8 | 0.45 | 200 Bolts | HX-10 | 0.55 | 180 ...100+ rows PTL Engine Sort • Filter • Merge 📊 Professional Table Category Product Price Stock Screws M6x20 € 0.18 500 M6x30 € 0.22 350 M8x20 € 0.24 420 Bolts HX-8 € 0.45 200 HX-10 € 0.55 180 ✓ Sorted • ✓ Merged cells • ✓ Styled
Smart Tables transform flat data into professionally formatted tables with merged cells

Key Capabilities

  • Normal Mode: Classic tables with column groups, cell merging, and sorting
  • Pivot Mode: Cross-tabulation (rows × columns → values) for analysis tables
  • Visual Wizard: 4-step configuration without coding
  • Live Preview: See results instantly as you configure
  • Multi-Format Export: Works in PDF, PowerPoint, Word, HTML, and InDesign

Two Table Modes

📋 Normal Mode Classic tables with flexible structure SKU Dimensions Length Width Price Stock A-001 100mm 50mm € 12.99 45 A-002 150mm 75mm € 18.50 32 ✓ Column grouping (multi-level headers) ✓ Vertical cell merging ✓ Multi-column sorting ✓ Row filtering 🔄 Pivot Mode Cross-tabulation from flat data Month North South West January € 12,400 € 8,200 € 9,800 February € 15,100 € 9,500 € 11,200 March € 14,800 € 10,100 € 12,500 ✓ Row field → Y-axis (left column) ✓ Column field → X-axis (top headers) ✓ Value field → Cell content ✓ Aggregation (sum, avg, count...)
Choose Normal Mode for structured tables or Pivot Mode for cross-tabulation analysis

The 4-Step Wizard

The Smart Table wizard guides you through configuration without writing any code. Each step builds on the previous one, with live preview showing your results.

1 Choose Mode Normal or Pivot? Select table type 2 Structure Select & arrange columns 3 Rules Sort, filter, merge transformations 4 Preview Live result & styling options Apply ✓
Four steps from data to professional table

Step 1: Choose Mode

Select whether you need a Normal table (structured columns) or Pivot table (cross-tabulation). This determines the rest of the wizard flow.

Use Normal Mode when...Use Pivot Mode when...
You want specific columns with custom headers You need a matrix of rows × columns
Data should be grouped by category Values are distributed across two dimensions
Cell merging for repeated values Aggregation (sum, average, count) is needed

Step 2: Define Structure

Normal Mode Structure

  • Select Fields: Choose which data fields become columns
  • Drag to Reorder: Arrange columns in your preferred sequence
  • Create Groups: Drag columns into a group for multi-level headers
  • Set Properties: Label, alignment, format, link template per column

Pivot Mode Structure

  • Row Field: Values become the left-most column (Y-axis)
  • Column Field: Unique values become column headers (X-axis)
  • Value Field: The data displayed in cells
  • Aggregation: How to combine multiple values (first, sum, avg, etc.)

Step 3: Transformation Rules (Normal Mode)

Sorting

Add one or more sort rules. Multi-level sorting is supported (sort by category, then by price).

Filtering

Include only rows matching specific criteria:

OperatorExample
eq (equals)status = "active"
neq (not equals)category ≠ "archived"
gt / ltprice > 10
gte / ltestock ≥ 100
containsname contains "Pro"
inregion in ["North", "South"]

Cell Merging

Merge cells vertically when consecutive rows have the same value. Perfect for category grouping.

Step 4: Preview & Style

See your table rendered live. Adjust styling options:

  • Header Colors: Background and text color for column headers
  • Row Header Color: For pivot tables, the Y-axis column style
  • Alternating Rows: Zebra striping for readability
  • Border Style: Color and width of cell borders
  • Font Settings: Family, size, and text color

PTL Configuration Format

Behind the wizard, Smart Tables use PTL (Publixx Table Language) — a JSON-based configuration format. You can view, copy, or import PTL configurations directly.

Basic PTL Structure

{
  "ptl": "1.0",
  "columns": [...],
  "rules": {...},
  "pivot": {...},
  "tableStyle": {...}
}

Column Definition (Normal Mode)

{
  "columns": [
    {
      "id": "sku",
      "label": "Article No.",
      "field": "sku",
      "align": "left",
      "format": null,
      "merge": false,
      "link": "https://shop.com/item?id={sku}"
    },
    {
      "id": "dimensions",
      "label": "Dimensions",
      "children": [
        { "id": "length", "label": "Length", "field": "length", "align": "right" },
        { "id": "width", "label": "Width", "field": "width", "align": "right" }
      ]
    },
    {
      "id": "price",
      "label": "Price",
      "field": "price",
      "align": "right",
      "format": { "type": "currency", "decimals": 2 }
    }
  ]
}

Column Properties

PropertyTypeDescription
idstringUnique identifier for the column
labelstringDisplay name in header
fieldstringPath to data field (e.g., "specs.length")
alignstring"left", "center", or "right"
formatobjectNumber/currency/percent formatting
mergebooleanEnable vertical cell merging
linkstringURL template with {placeholders}
childrenarraySub-columns for grouped headers

Pivot Configuration

{
  "pivot": {
    "rowField": "month",
    "colField": "region",
    "valueField": "revenue",
    "aggregation": "sum",
    "rowSort": "asc",
    "colSort": "asc",
    "rowLabel": "Month",
    "emptyValue": "—",
    "valueFormat": { "type": "currency", "decimals": 0 }
  }
}

Aggregation Functions

FunctionDescription
firstFirst value encountered
lastLast value encountered
sumSum of all values
avgAverage of values
minMinimum value
maxMaximum value
countNumber of values
concatConcatenate all values

Table Styling Options

Column Headers (Header X) headerX.bg headerX.color Grouped Header groupHeader.bg Row Headers headerY.bg (Pivot) Data cells Alternating row cells.alternating cells.alternateColor cells.borderColor cells.borderWidth Global: fontFamily, fontSize, textColor
Styling options for different table areas

Common Use Cases

📦 Product Catalogs (Normal Mode)

Group products by category with merged cells. Include specs tables with grouped dimension columns.

📊 Sales Reports (Pivot Mode)

Transform transaction data (date, region, amount) into a monthly breakdown by region with summed revenue.

🔧 Technical Specifications (Normal Mode)

Screw catalogs, cable specifications, component lists with linked part numbers and merged categories.

📅 Availability Matrix (Pivot Mode)

Show product availability across locations or time periods in a cross-reference grid.

Export Compatibility

Smart Tables render correctly across all Publixx export formats:

FormatSupportNotes
PDF✅ FullVector rendering, clickable links
PowerPoint✅ FullNative PPTX tables
Word✅ FullNative DOCX tables
Excel✅ FullNative XLSX with formulas preserved
HTML✅ FullSemantic <table> with CSS styling
InDesign✅ FullNative InDesign tables via JSX
Images (PNG/JPEG)✅ FullRendered as part of the page

Publixx Smart Tables — Professional tables from simple data

PTL Engine v2.0 | publixxTABLE Wizard v2.2