Table of Contents

Building a DataMiner app

If you want to build your own frontend rather than use the low-code editor or the DataMiner App agent, you can build a static website that DataMiner hosts as an integrated app. For example, you could build an operations console that shows the elements in a view and puts a refresh button in the DataMiner header bar.

Building and packaging the app

  1. Build your frontend as a static site.

    Use relative asset paths so the site works under the path DataMiner assigns to the app.

  2. Create an App.info.json file with the app's display name (Name), accent color (Color), and icon (Icon).

    If you are updating an existing app, use its ID.

    For the full list of app metadata fields, see Deploying a DataMiner App agent app.

  3. Package the built assets in a ZIP file with App.info.json at the root.

  4. Once the ZIP file is ready, upload and publish the app.

    To include the app in a DataMiner package instead, see Skyline DataMiner Web Application Project.

How DataMiner hosts the app

DataMiner displays your frontend in a sandboxed iframe with an opaque origin. This means the browser treats the app and the host page as separate origins, even though DataMiner serves both. Your app cannot access the host page's DOM, cookies, or browser storage directly. DataMiner handles sign-in and permissions and renders the surrounding interface, including the header bar.

The app and host communicate through postMessage. A message to window.parent contains a JavaScript object with case-sensitive field names, rather than a JSON string. Checking event.source === window.parent lets your app distinguish replies from other window messages. If you know the host's exact origin, you can use it instead of "*" as the target for ordinary window messages.

Next steps

Advanced search syntax