Skip to content

Embed Designer (EMBED)

The EMBED page builds the URL a SAS Visual Analytics report object needs, and a report page that shows the same thing outside the report. It exists because that URL is easy to get wrong by hand: it carries a route, the switches that describe the object, a mapping per parameter, and sometimes a date transform, and a typo in any of them shows up as a filter that quietly does nothing.

The result is two links. The URL for the Embedded Table goes into the report's data-driven content object. The URL for the Report is a page on this deployment that renders the same tabs and prompts around the same embedded table, which is what you open when someone asks what the report will look like, or when you want to test a mapping without editing the report.

The contract those links obey - va, header, va_parmap, column visibility, filter modes - is described in Embedding inside SAS Visual Analytics. This page is about the screen that writes it.

A report is tabs

A report is one or more tabs. Each tab is one Data Controller table plus the prompts that filter it, which is how a Visual Analytics report is usually built: a tab per topic, each with its own parameters.

Tabs are added, renamed and removed across the top. The name is what the report shows, so it is worth writing as the reader's heading ("Orders", not "Topic 2").

Choosing the table

The LOAD Table tree on the left lists the libraries and tables you can open in LOAD - the same list, for the same reason: a report can only edit a table its author could edit anyway. Opening a library and typing in its search box narrows the tables.

The table you pick is the table that will be embedded: the one whose rows the reader edits. It is not the source of the prompt values, which is the next section.

Prompts

A prompt is a control in the report - a picker, or a text box - whose value filters one column of the tab's table.

Field What it decides
Name The key the embedded object matches on. It defaults to the column's name, and is prefilled once you choose one.
Library / Table Where the picker's list of values is read from. Both default to the tab's own table, and may point somewhere else - the values are a picker, they are not the filter.
Column The column of the tab's table that the value filters.
Type text, number or date, which decides how the value is written into the filter.
Formula A relative period, for date prompts - see below.

Names must be unique across the whole report, not just the tab. The embedded object finds a prompt by its name, so a repeat would hand one tab's value to another tab's filter. Reusing a column name is fine: the second prompt is numbered (REGION, REGION_2) rather than refused.

Relative date prompts

A date prompt can carry a formula instead of a hand-picked date, so that a report opened next quarter still filters the previous one. The formula is a period (Quarter, Month, Year), an offset in periods, and how many periods it covers.

Formula Filter on the embedded table
Quarter, offset -1, periods 1 the quarter before the one the value falls in
Quarter, offset 0, periods 4 the four quarters starting with the current one
Month, offset -12, periods 3 the same three months a year earlier

The resolution happens in Data Controller, not in the page: the formula is written into the embed URL as a RANGE(period,offset,count) transform, and the report sends the selected date as the reference. That means the filter is built where every other filter is, it follows the same date and datetime rules, and it works whether the report is refreshed or a prompt changes. The transform syntax, its calendar rules and its SAS equivalents are on the Visual Analytics page.

A relative prompt is still a picker. The reader chooses a value, and the formula resolves the period that value sits in - so a report can offer "pick a date, see its quarter" without the author computing anything.

Tab options

The tab description is the box directly under the tabs, above the table: it writes a line at the top of the tab in the report - what the reader is looking at, or a note about what a prompt does. It is optional, so it carries a placeholder rather than a label.

Show header adds header=1 to the embed URL: the Data Controller title bar, the back button and the sub-nav. It is off by default, because a table a report drives is framed content and the header's navigation leads out of the report.

Show log button adds va_log=1, a SAS Logs button on the embedded editor's toolbar - the only way to the request log when there is no header. Debug adds debug=1, which makes that log worth reading for the load that carries it.

Column labels adds labels=1 to the embed URL, so the grid shows column labels rather than variable names, which is the same switch as the grid's own Show labels / Show names toggle.

Other URL parameters are typed one at a time and shown as chips. Enter adds a parameter, the cross removes it, and the & separators are never typed - the chips are what the URL carries. This is where a parameter belonging to your estate's configuration goes, if there is one.

Two details worth knowing: the page's own log button and verbose logging are page features and add nothing to the URL, and the switches that do reach the URL are the ones Data Controller documents - header, labels, va_log and debug here, plus va and va_parmap, which the page always writes.

The two URLs

URL for the Embedded Table is the one that goes into the report. It is the editor route for the tab's table, with va=1 (the report drives the object, and the editor's own furniture goes with it) and one va_parmap entry per prompt, carrying its column and, where there is one, its date transform:

https://yourserver/DC/#/editor/DEMO.ORDERS?va=1&va_parmap=REGION-REGION&va_parmap=SOME_DATE-SOME_DATE:RANGE(QUARTER,-1,1)

URL for the Report is this deployment's report page with the whole report in it - every tab, its table, its prompts and its options. Opening it renders the report; adding &edit=1 opens the same thing in this designer. There is nothing stored on the server: the definition is the link, so a report can be sent to a colleague, bookmarked, or kept in a ticket.

The link already carries &va=1, which says the page is running in a report context: it listens for the values the hosting report sends, and that is what makes it work as a web-content object. Remove it and the page renders as a page of the app instead, with its prompts yours to drive.

The report page

Opening the report link shows the tabs across the top, the tab's text, one control per prompt, and the tab's table below it.

Changing a prompt sends the new values to the embedded table as a message, which is the same path a Visual Analytics parameter takes. The table filters where it stands: it does not reload, so the reader keeps their scroll position and does not lose their place.

The embed log is closed by default. It records what the page sent, when, and what the embedded table reported, which is what to read when a prompt appears to do nothing. It is a diagnostic for the person building the report, not something a reader needs.

Things that go wrong, and what they look like

A prompt filters nothing. The value is sent, the mapping is applied, and no rows change. Check the prompt's column is the column you meant to filter; the embed log shows the mapping the page posted.

The designer says a column is missing. The table's columns changed after the report was built. The prompt's column is shown as not in this table and the real ones are offered beside it; pick one and the link updates.

A prompt's picker is empty. The values are read from the prompt's library, table and column, which default to the tab's own table. An empty picker usually means the column has no values to read, or the reader cannot see the library the values come from.

The report has no filter at all. Check the tab was saved with its prompts - a prompt with no column is dropped from the link, since there is nothing for it to filter.