Difference between revisions of "HTML Content Portlet"

From MT Marvelit
Jump to: navigation, search
(IFRAME Example - embed Pentaho Report in DASH)
(HTML Content Portlet Preferences)
Line 55: Line 55:
  
 
<nowiki>src="http://demo.xxx.com/pentaho/Pivot?solution=xxxexamples&path=gidash&action=pivot_sales_filter_region.xaction&region=$P{pRegion}"></nowiki>
 
<nowiki>src="http://demo.xxx.com/pentaho/Pivot?solution=xxxexamples&path=gidash&action=pivot_sales_filter_region.xaction&region=$P{pRegion}"></nowiki>
 +
 +
== Adding Date Control ==
 +
  
 
== HTML Content Portlet Preferences ==
 
== HTML Content Portlet Preferences ==

Revision as of 11:34, 13 November 2008

Add HTML to Your Pages

With DASH Professional - you can place custom HTML on any page by using the HTML Content Portlet You can utilize this portlet to do the following:

1. Add custom text to any page
2. Add javascript to add create unique controls and data entry fields
3. Add frames and link to other web pages for custom applications
4. Add virtually any HTML controls to your pages.

HTML Content Portlet

Add the HTML Custom Portlet to any section of your pages. The portlet opens in edit mode. Enter data in the following fields:

Html1.jpg

Select from Saved Content: Once a HTML Content Portlet is Saved - it is stored in a table in the DASH database. Select a value to add saved content.

Parameter List: Enter Lever names that will be used in the HTML Content Portlet. When you tab out of the field - default value entry boxes are displayed so you can enter default values.

Saved Name: Enter a name to reference the HTML Content. This is saved in the database and is displayed in the Select from Saved Content pulldown once saved.

content: Enter HTML or Javascript to be displayed/executed

IFRAME Example - embed Pentaho Report in DASH

Here is a completed HTML Content Portlet that displays an iframe accessing a Pentaho Chart on a remote server. Levers are referenced in the Parameter List. The portlet displays areas for setting default values. The portlet content is saved in the database as pentaho1 with ContentID = 1.

The content is an html iframe command. When the page is displayed - the iframe is executed and the lever values are passed to the remote page. A Chart is generated and displayed on the DASH page. The SRC tag of the HTML Content for this example is:

src="http://demo.xxx.com/pentaho/ViewAction?solution=xxxexamples&path=gidash &action=chart_bar_revenue_by_productline.xaction&region=$P{pRegion}&years=$P{pYear}&width=400&height=400">

Notice how the levers are passed to the remote page - $P{pRegion}&years=$P{pYear} - When users select those levers on the page and click the button - the page is refreshed and the new values are passed to the remote page and used to generate the report.

Html2.jpg

The above portlet - displays this chart on the DASH page.

Html3.jpg

IFRAME Example - embed Pentaho Pivot report in DASH

Here is a similar example that displays a pentaho pivot report:

Html4.jpg

The SRC tag of the HTML Content for this example is:

src="http://demo.xxx.com/pentaho/Pivot?solution=xxxexamples&path=gidash&action=pivot_sales_filter_region.xaction&region=$P{pRegion}">

Adding Date Control

HTML Content Portlet Preferences

Preferences as set to enable pages to have the same behavior for all users. When a page is displayed - preferences are accessed in the database for the user/page combination. If that user has not accessed that page before than default preferences for the page are used. Thes have to be set for every portlet on a page. To add preferences - Click the Edit Defaults icon in the upper right corner of the HTML Content Portlet. It is the icon next to the edit or pencil icon. The Edit Defaults Screen is displayed:

Html5.jpg