A code sample for calling a side-panel with Intelligent Viewer (.../viewx) in it

Options

Hello,

I would like to have a sample of code on how to manually trigger/show the side-panel widget with a document opened in Intelligent Viewer like this

I plan to use same functionality in WebReports contents which are loaded by Smart UI widgets

In some previous post I found nice samples on how to call Alert and Dialog boxes and it works well in WebReports, but is it possible to do a side-panel in a similar way?

Comments

  • To clarify, I am looking something similar to this code, which shows how to call Node's property panel

    csui.onReady2(['csui/lib/backbone',

        'csui/utils/contexts/page/page.context',

        'csui/utils/contexts/factories/connector',

        'csui/models/node/node.model', 'csui/utils/commands'

    ], function (Backbone, PageContext, ConnectorModelFactory, NodeModel, commands) {

        var context = new PageContext(),

        connector = context.getObject(ConnectorModelFactory),

        node = new NodeModel({

          id: 128157,

          actions: [

            {signature: 'Properties'}

    ]

    }, {connector: connector});

     

    var nodeCollection = new Backbone.Collection([node]),

    properties = commands.get('Properties'),

     status = {

      nodes: nodeCollection,

      context: context

    };

     if (properties && properties.enabled(status)) {

       properties.execute(status);

    }

    });


    but to open Intelligent Viewing (viewx) in side panel for particular document Node