<link href="https://cshost/img/csui/themes/carbonfiber/theme.css" rel="stylesheet"> <script src="https://cshost/otcs/cs/widgets?crossOrigin=true&version=2"></script> <style> body { margin: 0 } #perspective { height: 100vh } </style> <div class="binf-widgets" id="perspective"></div> <script> csui.require.config({ config: { // Choose the language if the browser preferences should be ignored. i18n: { locale: 'de', loadableLocales: { root: true, de: true } }, // Avoid the automatic ticket refresh that does not work on integration pages. 'csui/utils/authenticators/core.authenticators': { enableRedirectingFormAuthenticator: false }, // Show a Back button on the container toolbar of the nodestable widget. 'csui/integration/folderbrowser/commands/go.to.node.history': { enabled: true } } }); csui.onReady3({ connection: { url: 'https://cshost/otcs/cs/api/v1', supportPath: '/img', // Generated in OScript with $CSUI.Utils.GetOITCSTicket(). session: { ticket: '<%= data.ticket %>' } } }, [ 'csui-options', 'csui/lib/marionette', 'csui/utils/contexts/perspective/perspective.context', 'csui/controls/perspective.panel/perspective.panel.view', 'csui/pages/start/perspective.routing' ], function (csuiOptions, Marionette, PerspectiveContext, PerspectivePanelView, PerspectiveRouting) { 'use strict'; // Create a new context with an authenticated connector. var context = new PerspectiveContext({ factories: { connector: { connection: csuiOptions.connection } } }); // Enable routing with hash-based routes. var routing = PerspectiveRouting.getInstance({ context: context }); routing.start(); // Create a perspective-hosting control. var view = new PerspectivePanelView({ context: context }); var region = new Marionette.Region({ el: '#perspective' }); region.show(view); // Navigate to a specific node. var nextNode = context.getModel('nextNode'); nextNode.set('id', 38842); // Navigate to the landing page. // var applicationScope = context.getModel('applicationScope'); // applicationScope.set('id', ''); }); </script>