Try OpenEdge Now
skip to main content
Customization Guide
Customizing dashboard : Configuring a non-column-based layout renderer
 

Configuring a non-column-based layout renderer

You can edit the renderer JSP to place the widgets in customized layout.
To create a non-column-based dashboard layout in the renderer jsp, perform the following steps.
1. Create a jsp file containing the widget rendering logic as per your requirements in the OEBPS_HOME\webapps\deploy\sbm\bpmportal\layout\ext\ folder. Typically, it should contain the following code snippet.
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="com.savvion.sbm.bpmportal.domain.DashboardWidget" %>
<%@ page import="com.savvion.sbm.bpmportal.domain.Dashboard" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/bpmportal/tld/bpmportal.tld" prefix="sbm" %>
<c:set var="customColumns" value="${customColumns}"/>
...
...
In this example, the customColumns variable contains a list of dashboard widgets that you can arrange in the custom layout.
Note: You need to take care of drag and drop feature and/or re-ordering of dashboard widgets for your custom dashboard layout.
2. Set the layout type to other in the dashboard-config.xml file.
The dashboard framework does not group the dashboard widgets into columns. Business Process Portal lists all dashboard widgets in the layout renderer JSP.