Defaulting view mode when embedding in a url

Comments

4 comments

  • Avatar
    James McKenzie

    Yes I would love to have this functionality as well.  A url parameter to achieve this would be really wonderful.  For example you could do '?embed=true,viewmode=true'

    0
    Comment actions Permalink
  • Avatar
    Barry Jones

    I'd also like to see this functionality

    0
    Comment actions Permalink
  • Avatar
    Alan Trapanese

    As a workaround, you can add this script to dashboard (used in sisense 7.4.3):

    dashboard.on('initialized', function(e, args) {
    prism.$command.execute('dashboard.commands.toggleDashboardEditMode', {$scope: prism.user}, {dashboard: dashboard});
    });

    You can also convert it to a plugin, so you can avoid to add it to all your dashboards!

    Hope it helps.

     

    1
    Comment actions Permalink
  • Avatar
    Nathan Giusti

    I found this also works. 

    dashboard.on('domready', function(d) { $("button[title='Switch to view mode']")[0].click()})

     

    0
    Comment actions Permalink

Please sign in to leave a comment.