I wrote this script to emulate the old Atlas map control, where the name of the group on the current screen is used to lookup and show a view, if it exists with the same name.
It also will hide the atlas map control if there something to show.
This could be used on other screens with some modification. The group screen HTML document title is the name of the group and this is used to feed into a query to lookup the view.
Add an HTML control, after the Atlas map control
<a id="detailed_view" target="_blank">Open Dashboard View in New Window</a> <br /> <div style="width:2500px;height:1500px"> <iframe id="detailed_iframe" src="" width="100%" height="100%" style="margin:0; padding:0; border:none; width:100%; height:100%;"></iframe> </div> <script id="custom-script-NodeLink"> var $params= JSON.stringify({query:"SELECT top 1 '/Orion/SummaryView.aspx?ViewID=' + tostring( ViewID ) as lnk FROM Orion.Views where viewtitle = '" + $(document).attr('title') + "'"}); (function worker() { //Create the AJAX POST request $.ajax({ type: 'POST', url: '/Orion/Services/Information.asmx/Query', data: $params, contentType: "application/json; charset=utf-8", dataType: "json", success: function (response) { //On a successfull request, parse the data. //alert(JSON.stringify(response.d), null, 4); if ( response.d.Rows.length == 0 ) { document.getElementById('custom-script-NodeLink').parentNode.parentNode.parentNode.parentNode.style.visibility="hidden" }else{ document.getElementById( 'detailed_view' ).href = response.d.Rows[0]; $("#detailed_iframe").attr("src", response.d.Rows[0] + "&isNOCView=true"); //hide map since redundant document.getElementById('custom-script-NodeLink').parentNode.parentNode.parentNode.parentNode.previousSibling.previousSibling.remove() } }, complete: function() { // Schedule the next request when the current one's complete. Not positive this works yet. setTimeout(worker, 60000); }, error: function(err) { document.getElementById('custom-script-NodeLink').parentNode.parentNode.parentNode.parentNode.style.visibility="hidden" } }); })(); </script>
If you don't have or want an Atlas map control, delete the line after:
//hide map since redundant