Appearance
SQL extensions
A query on the SQL tab normally turns each row of its result into a row of the graph. The extensions are columns with special names that make a query do more: repeat itself for every number in a range, run a second query for every value a first query returns, or follow a hierarchy down from a starting point. They are what lets a few short queries build a timeline, an org chart or a route map from a table that holds none of it.
A command is a line of the script, such as RESET or PUBLISH, and is described on the SQL tab page. An extension is part of a SELECT.
How they work
- A column switches it on. Add a column such as
TRUE AS [ENUMERATE]to theSELECT, with the columns that go with it. - The names are forgiving. Capital letters, spaces, underscores and hyphens do not matter:
[Start At],[START_AT]and[startat]are the same column. - TRUE means on. A switch column is on when it holds
TRUE,yesor a number that is not 0. - The other columns work as usual. The query still names
Item,Related Item,Label,Style Nameand the rest, and they make the rows of the graph. - A query inside a query is text.
ITERATEandTREE QUERYpass a whole query as a value, so a single quote inside it is written twice:''{id}''.
A script written for the Excel tool that uses them runs here without a change.
The extensions
Group rows into clustersPut rows into boxes inside boxes, with two levels or with as many as the data has.Split long labelsBreak a long label into lines of a chosen length, left, centered or right, as the query makes the row.Number rows and clustersWrite the number of a row or a cluster into a value, to keep an order or to give each cluster a style of its own.Chain nodes with edgesTurn an ordered list, such as steps, versions or years, into a chain of edges from each value to the next.Walk a treeFollow a hierarchy stored as rows, such as an org chart or a route map, down from a starting row or up from it, with a recursive query or TREE QUERY.Enumerate valuesMake a row for every number in a range, to fill the gaps in a sequence of years or to build a timeline.Align nodes on a rankPut the nodes of a query level with each other, as a team in one row or the stages of a project in line.Iterate query resultsRun a second query for each value a first query returns, to draw a group of rows for each year, department or customer.Concatenate valuesJoin the rows of a detail query into one value, such as a label that lists the members of a team.
The Placeholders page lists the counters, such as {step} and {id}, that these queries use.