The base URL of the Cadenza server this client is requesting
The iframe this client is using for embedding Cadenza.
EmbedCreate multiple geometries.
The workbook map view in the background
The type of geometries to create
Optional__namedParameters: CommonEditGeometryOptionsA Promise for when the iframe is loaded
EmbedEdit multiple geometries.
The workbook map view in the background
The features to edit. The last feature in this collection is directly set up for editing.
Optional__namedParameters: CommonEditGeometryOptionsA Promise for when the iframe is loaded
Post Message ParentSends a message to parent Cadenza window to close the window containing this application
EmbedCreate a geometry.
Note: Under the hood, creating a geometry is similar to editing a geometry.
That's why the events use the editGeometry prefix.
The workbook map view in the background
The geometry type
Optional__namedParameters: CommonEditGeometryOptionsServerDownload data from a workbook view.
Note: The file name, if not provided, is generated from the name of the workbook view and the current date.
The workbook view to fetch data from.
The data type you want to get back from the server.
Currently, "csv", "excel" and "json" are supported for embedding targets of type view with a view type of
table and indicator. "pdf" is supported for embedding targets of type report and of type view with a view type
of "JasperReports report".
Optional__namedParameters: { fileName?: string; filter?: FilterVariables; parts?: TablePart[] }Options
OptionalfileName?: stringThe file name to use; The file extension is appended by Cadenza.
Optionalfilter?: FilterVariablesFilter variables
Optionalparts?: TablePart[]Table parts to export; If not specified, all parts are exported.
EmbedEdit a geometry.
The workbook map view in the background
The geometry to edit
Optional__namedParameters: CommonEditGeometryOptionsA Promise for when the iframe is loaded
Post MessageExpand/collapse the navigator.
The expansion state of the navigator
ServerFetch the intersection areas from a workbook map view layer in JSON format for a given area.
The workbook view to fetch object info from.
Layer path to identify the layer (identified using layer paths or print names)
The intersection geometry
Optional__namedParameters: {Options
Optionalbuffer?: DistanceBuffer size for geometry of the transition
OptionalincludeGeometryValidationReport?: booleanEnables the list of corrected geometries, including error descriptions
Optionalsignal?: AbortSignalA signal to abort the data fetching
OptionaluseAutoCorrection?: booleanEnables the automatic correction of invalid geometries
OptionaluseMapSrs?: booleanThe intersection geometry and the result geometries are in the map's SRS (otherwise EPSG:4326 is assumed)
A Promise for the fetch response
ServerFetch data from a workbook view.
The workbook view to fetch data from.
The data type you want to get back from the server.
Currently, "csv", "excel" and "json" are supported for embedding targets of type view with a view type of
table and indicator. "pdf" is supported for embedding targets of type report and of type view with a view type
of "JasperReports report".
Optional__namedParameters: { filter?: FilterVariables; parts?: TablePart[]; signal?: AbortSignal }Options
Optionalfilter?: FilterVariablesFilter variables
Optionalparts?: TablePart[]Table parts to export; If not specified, all parts are exported.
Optionalsignal?: AbortSignalA signal to abort the data fetching
A Promise for the fetch response
Fetch object info from a workbook map view.
The workbook view to fetch object info from.
Layer path to identify the layer (identified using layer paths or print names)
The IDs of the objects to select
Optional__namedParameters: {Options
Optionalfilter?: FilterVariablesFilter variables
OptionalfullGeometries?: booleanReturn non-simplified geometries
Optionalsignal?: AbortSignalA signal to abort the data fetching
OptionaluseMapSrs?: booleanUse the map SRS instead of WGS84
A Promise for the fetch response
Post MessageGet data from the currently shown workbook view.
Currently, only map views are supported.
The requested data type. Currently, only "png" is
Optional__namedParameters: { height?: number; width?: number; withScale?: boolean }Options
Optionalheight?: numberThe height of the resulting map image in px.
Optionalwidth?: numberThe width of the resulting map image in px.
OptionalwithScale?: booleanWhether to show the scale line and the scale on the map image.
Subscribe to a postMessage() event.
The event type
The subscriber function
An unsubscribe function
Post MessageReload the views of a worksheet.
Optional__namedParameters: { invalidateCaches?: boolean }Options
OptionalinvalidateCaches?: booleanWhen true, caches will be invalidated for objecttypes used in the worksheet
A Promise which resolves when the views of the worksheet have finished reloading
EmbedSelect objects in a workbook map.
The workbook map view
Optional__namedParameters: {Options
OptionaldisabledUiFeatures?: UiFeature[]Cadenza UI features to disable
OptionalextentStrategy?: ExtentStrategyDefines the initial map extent; If not given, Cadenza's default logic is used.
Optionalfilter?: FilterVariablesFilter variables
Optionallayers?: (string | WorkbookLayerPath)[]Layers to restrict the selection to (identified using layer paths or print names)
OptionaloperationMode?: OperationModeThe mode in which a workbook should be operated
Optionalsignal?: AbortSignalA signal to abort the iframe loading
OptionaluseMapSrs?: booleanWhether the coordinates specified in other parameters are specified in the map's SRS (otherwise EPSG:4326 is assumed)
A Promise for when the iframe is loaded
Set custom validity state of the geometry editor in addition to the default validation state (including errors and warnings). When set to error the dialog submission is blocked. If there already is a custom state set it will override it. Passing '' will reset the custom state to undefined, meaning no custom state is displayed. If no geometry editing is started, the method call has no effect.
The message to show in the dialog
Optionaltype: CustomValidityType = 'error'The type of message (defaults to 'error')
EmbedShow a page, workbook, worksheet or workbook view in an iframe.
The source to show
Optional__namedParameters: {OptionaldataType?: DataTypeSet to 'pdf' for embedding targets of type report and of views with view type of "JasperReports report" to show the generated report PDF directly (without any Cadenza headers or footers).
OptionaldisabledUiFeatures?: UiFeature[]Cadenza UI features to disable
OptionalexpandNavigator?: booleanIndicates if the navigator should be expanded.
Optionalfilter?: FilterVariablesFilter variables
OptionalhideMainHeaderAndFooter?: booleanWhether to hide the main Cadenza header and footer
OptionalhideWorkbookToolBar?: booleanWhether to hide the workbook toolbar
OptionalhighlightGlobalId?: GlobalIdThe ID of an item to highlight / expand in the navigator
OptionallabelSet?: stringThe name of a label set defined in the basicweb-config.xml (only supported for the welcome page)
Optionallayout?: LayoutThe layout to be used; the dashboard layout is used by default or the linear layout if there is not enough space.
OptionaloperationMode?: OperationModeThe mode in which a workbook should be operated
Optionalsignal?: AbortSignalA signal to abort the iframe loading
OptionalworksheetPlaceholders?: WorksheetPlaceholdersMaps the worksheet placeholder IDs in report embeddings to the print names of the worksheets to replace them with.
A Promise for when the iframe is loaded
EmbedShow a workbook map view in an iframe.
The workbook map view to show
Optional__namedParameters: {Options
OptionaladditionalLayers?: LayerDefinition[]Layer definitions to be imported and shown in the background, as a basis for the drawing. IMPORTANT: The Cadenza referenced with cadenzaClient must be configured to support the import of GeoJSON, and the (system) privileges of the corresponding user must also be set in such a way that the import of GeoJSON is possible.
OptionaldisabledUiFeatures?: UiFeature[]Cadenza UI features to disable
OptionalexpandNavigator?: booleanIndicates if the navigator should be expanded.
OptionalextentStrategy?: ExtentStrategyDefines the initial map extent; If not given, Cadenza's default logic is used.
Optionalfilter?: FilterVariablesFilter variables
Optionalgeometry?: GeometryA geometry to show on the map
OptionalhideMainHeaderAndFooter?: booleanWhether to hide the main Cadenza header and footer
OptionalhideWorkbookToolBar?: booleanWhether to hide the workbook toolbar
OptionalhighlightGlobalId?: GlobalIdThe ID of an item to highlight / expand in the navigator
OptionaloperationMode?: OperationModeThe mode in which a workbook should be operated
Optionalsignal?: AbortSignalA signal to abort the iframe loading
OptionaluseMapSrs?: booleanWhether the coordinates specified in other parameters are specified in the map's SRS (otherwise EPSG:4326 is assumed)
A Promise for when the iframe is loaded
Notes:
Embed: The method embeds Cadenza in the given iframe.Post Message: The method communicates with an embedded Cadenza via postMessage.Post Message Parent: The method communicates with a parent/opener Cadenza via postMessage.Server: The method communicates with the Cadenza server via HTTP.hideMainHeaderAndFooterandhideWorkbookToolBarparameters - the parameters cannot override the configuration of an embedding target.