RE: [InterSystems-Zen] Display deepsee dashboard into zen

38 views
Skip to first unread message

Daniel Kutac

unread,
Mar 23, 2017, 10:25:46 AM3/23/17
to intersys...@googlegroups.com

Ashok,

 

Your page can be as simple as this:

 

Class dk.isir.ui.zen.BI Extends dk.isir.ui.zen.templates.Contents (contains styles and page design, not need for the sake of example)
{

/// Displayed name of this page.
Parameter PAGENAME As COSEXPRESSION = "$$$Text(""Analytická nástěnka"")";

Property Dashboard As %String(MAXLEN = 500, ZENURL = "DASHBOARD");

/// This callback is called after the server-side page
/// object and all of its children are created.<br>
/// Subclasses can override this to add, remove, or modify
/// items within the page object model, or to provide values
/// for controls.
Method %OnAfterCreatePage() As %Status
{
            do ##super()
           
            set tDash=%page.%GetComponentById("dash")
     set tDash.src="_DeepSee.UserPortal.DashboardViewer.zen?DASHBOARD="_..Dashboard_"&NOTITLE=1&NOBORDER=1"
            Quit $$$OK
}

XData Contents [ XMLNamespace = "http://www.intersystems.com/zen]
{
<page xmlns="http://www.intersystems.com/zenwidth="100%" containerStyle="height: 100%;">
<hgroup width="100%" containerStyle="background: url(/csp/broker/images/outlook_window_bar.jpg) center center repeat-x;" height="25" valign="middle">
<spacer width="10" />
<label value=" " id="pageNameLabel" containerStyle="color: #15317E; font-weight: bold; font-family: Verdana;"/>
</hgroup>
<!—page content here -->
<iframe id="dash" src="" frameBorder="false" 
width="100%" hidden="true" enclosingStyle="width:100%; height: 100%;"  >
</iframe>
</page>
}

/// This client event, if present, is fired when the page
/// is first loaded or whenever it is resized.<br/>
/// If this is called at load time, then <var>load</var> will
/// be true.
ClientMethod onlayoutHandler(load) [ Language = javascript ]
{
            // this is needed by HTML5
            var dash=zen('dash');
            dash.setProperty('height',zenGetWindowHeight() - 10);
            dash.setProperty('hidden',false);
}

}

 

The point is to have an iframe that serves deepsee content dynamically, based on src attribute value

 

HTH

 

Dan

 

From: intersys...@googlegroups.com [mailto:intersys...@googlegroups.com] On Behalf Of Ashok Choudhary
Sent: Tuesday, March 14, 2017 5:42 AM
To: InterSystems: Zen Community <intersys...@googlegroups.com>
Subject: [InterSystems-Zen] Display deepsee dashboard into zen

 

How to display deepsee dashboard in a zen page?

 

Please share me the code.

 

Thanks,

Ashok

--
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To post to this group, send email to InterSys...@googlegroups.com
To unsubscribe from this group, send email to InterSystems-Z...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/InterSystems-ZEN?hl=en
Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions
---
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to intersystems-z...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages