1. สร้าง Security Group ขึ้นมา 1 กลุ่ม ไว้สำหรับเป็น user ในการเปิดดู Dashboard นี้ (จากตัวอย่างตั้งชื่อเป็น REFRESHSCNTR)
2. ที่ System Properties แก้ค่า webclient.exitwarn ให้เป็น 0
3. แก้ไขไฟล์ที่ SMP\maximo\applications\maximo\maximouiweb\webmodule\webclient\components\startcenter-options.jsp
โดยแก้ไขตามนี้ (900000 คือ จำนวน ms ที่ต้องการให้ auto refresh ทุก ๆ 15 นาที)
<%@ include file=”../common/simpleheader.jsp” %>
<%@ page import=”psdi.webclient.beans.startcntr.*” %>
<%
StartCenterOptions scOptions =((StartCenterOptions)control);
if(component.needsRender())
{
%>
<%
try
{
String refreshUrl = wcs.getMaximoRequestURI() + “?event=loadapp&value=startcntr&” + wcs.getUISessionUrlParameter() + wcs.getCSRFTokenParameter();
SessionContext sessionContext = new SessionContext(wcs);
StartCenterAppBean startcenter = (StartCenterAppBean)sessionContext.getCurrentApp().getAppBean();
psdi.mbo.MboRemote mbo = startcenter.getMbo();
String where = “groupname = ‘REFRESHSCNTR‘ and userid in (select userid from maxuser where personid = ‘” + mbo.getUserInfo().getPersonId() + “‘)”;
psdi.mbo.MboSetRemote groups = mbo.getMboSet(“$GROUPUSER”, “GROUPUSER”, where);
groups.moveFirst();
if ( !groups.isEmpty() )
{
%>
<script type=”text/javascript”> setTimeout(‘window.location=”<%=refreshUrl%>”‘ ,900000); </script>
<%
}
}
catch (Exception e)
{
e.printStackTrace();
}
%>
<table role=”presentation”
สีน้ำเงินคือ code ที่เพิ่มขึ้น / สีส้ม ขึ้น code เดิม
4. ทำการ Rebuild EAR และ Redeploy ใหม่
5. Assign User ที่ต้องการให้ dashboard เป็น auto refresh
Reference : http://maximodev.blogspot.com/2013/10/automatically-refresh-maximo-start-center.html