public class KPIAppBean extends AppBean
DIRECTPRINT_LINK, DIRECTPRINT_WATTACH_LINK, LONG_OP_INPRG, LONG_OP_READY, QUERY_ALL, QUERY_ALL_BOOKMARKS, QUERY_KEY, QUERY_NONE, QUICK_LINK
ALL_BOOKMARKS, ALL_RECORDS, ATTR_COLUMN, ATTR_DEFAULT, ATTR_QBE, ATTR_READONLY, ATTR_REFRESH_TABLE, ATTR_REQUIRED, ATTR_RESET, MAX_TABLEROWS, TABLE_ALL_SELECTED, TABLE_AT_FIRST_PAGE, TABLE_AT_FIRST_ROW, TABLE_AT_LAST_PAGE, TABLE_AT_LAST_ROW, TABLE_DETAILS_EXPANDED, TABLE_EXPANDED, TABLE_FILTER_EXPANDED, TABLE_FILTERED, TABLE_REFRESH_ALL_ROWS, TABLE_REFRESH_FILTER, TABLE_REFRESH_ROW, TABLE_REFRESH_TITLE, TABLE_ROW_CHANGED, TABLE_START_EMPTY, TABLE_SUBSELECT_ON, TABLE_USE_SUBSELECT
EVENT_CONTINUE, EVENT_HANDLED, EVENT_STOP_ALL
Constructor and Description |
---|
KPIAppBean() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatNumber(double dNumber)
Format the number to make it upto 2 decimal places in fraction and remove trailing zeros
|
double |
getDouble(java.lang.Object dNumber)
Returns double from an number object
|
java.util.Vector |
getKPIInfo()
Gets current info of the KPI into the session.
|
void |
initializeApp()
Overridden to make sure when an KPI is being opened it should open up on Trend Tab
|
boolean |
isNewKPI()
Returns true of the current KPi being created is new and not saved
|
void |
openlinkedkpi()
Opens linked KPI
|
int |
openreport()
Opens linked KPI
|
boolean |
refreshChart()
Event handler method for "refreshchart" event, when clicked from Refresh Chart Button in the
KPI Application in Trend Tab
|
void |
save()
This method is overridden to provide the functionality for save.
|
java.lang.String |
setKPIInfo()
Sets current info of the KPI into the session.
|
java.lang.String |
setTrendGraphInfo()
Sets information to draw the trend graph into a one object and sets in session for the servlet to grab
|
void |
updatekpis()
Called when UPDATE event is fired.
|
void |
validateTrendInfo()
Validates the settings for Trend Chart
|
addrow, appinfo, autoInitiateWorkflow, BOOKMARK, canExit, canSaveBasedOnLocks, CLEAR, clearfilter, convertPortalParameters, DELETE, DUPLICATE, ensureRecord, find, fireStructureChangedEvent, FLTRLASET, getAppInfo, getCurrentQueryDescription, getCurrentQueryName, getCurrentRow, getKPIId, getKPISelect, getKPIWhere, getMboSet, getPortalEvent, getQueryOption, getQuickFindRemote, getRecordLockProperties, getResultsBean, hasModifications, hasSaveAccess, hasSigOptionAccess, hasSigOptionAccess, hasStartRecord, HELPWF, inboxwf, initQuickFIndRemote, insert, INSERT, isEmpty, isUserWhereClauseThroughIntegration, launchwf, MODIFYSLAS, moveToUniqueId, NAVHISTORY, NEXT, PREVIOUS, RECORDLOCK, RECUNLOCK, refreshFieldErrors, reset, RESULTS, returnnovalue, returntoapp, returnwithvalue, ROUTEWF, RUNAREPORT, RUNREPORTBYNAME, RUNREPORTS, SAVE, saveattachment, saveYesNoCheck, saveYesNoInteractionCheck, SEARCHATTR, SEARCHMORE, SEARCHWHER, setDefaultQbe, setFilterCleared, setKPIId, setQueryOption, setupBean, setupBean, setUserWhereClauseThroughIntegration, STOPWF, STRECLOCK, structureChangedEvent, submitPrintJob, toBeSaved, toggledeleterow, updateForRecordLock
_useAllBookmarksQuery, _useAllRecsQuery, _usequery, addAttribute, addConditionalProperties, addDialogReference, addListener, addQbeAttribute, addSigOption, applyValuesToSharedAttributes, applyValuesToSharedAttributes, asyncLocked, bindComponent, boundToTable, buildPortalMsg, callBeanMethod, callBeanMethod, callBeanMethod, callBeanMethod, callMethod, callMethod, callMethod, callMethod, callRemoteMethod, callRemoteMethod, cancelDialog, canCloseBean, canFetchData, changeRequiredField, checkAndDistributeRequiredError, checkESigAuthenticated, checkForAppError, checkMethodAccess, clearBean, clearSavedFilterSettings, clearSavedQbeSettings, close, copytonewrow, count, dataChangedEvent, delete, delete, deleteAndRemove, deleteAndRemove, displaycount, duplicateMbo, execute, fetchRecordData, fetchTableData, fetchTableData, filterrows, findAndCallMethod, fireChildChangedEvent, fireDataChangedEvent, fireDataChangedEvent, fireStructureChangedEvent, getAppWhere, getAttributes, getBoolean, getBoolean, getCacheRowIndex, getColumnDate, getColumnString, getCompleteWhere, getConditionalProperties, getDataAsArray, getDataAsArray, getDataList, getDataList, getDataList, getDataList, getDataListFromMboSetRemote, getDate, getDefaultOrderBy, getDefaultValue, getDescAttributeId, getEndRow, getEventRowIndex, getKeyAttribute, getKeyAttributes, getLastEventHandled, getLastFetchIndex, getList, getList, getList, getLockedByDisplayName, getMbo, getMbo, getMboForUniqueId, getMboName, getMboOrZombie, getMboRowIndex, getMboSetData, getMboSetFromSmartFind, getMboSetFromSmartFind, getMboSetFromSmartFind, getMboValueData, getMboValueData, getMboValueInfo, getMXSession, getNullRequiedFields, getOrderBy, getPageEndRow, getPageRowCount, getPageStartIndex, getParent, getParentRelationship, getQbe, getQbe, getQbeAttributes, getQueryDescBeforeReviseAction, getQueryNameBeforeReviseAction, getRemoteForDownload, getRemoteForLookup, getReturnAttribute, getReturnComponent, getReturnComponentId, getReturnControlId, getRowIndexFromEvent, getSavedFilterSettings, getSelectedDataAsArray, getSelectedDataAsArray, getSelection, getShowDetails, getSmartFillValue, getSortOrder, getString, getString, getTableAttributes, getTableOffset, getTableStateFlags, getTitle, getUIERMEntity, getUniqueIdFromSmartFill, getUniqueIdFromSmartFill, getUniqueIdName, getUniqueIdValue, getUserAndQbeWhere, getUserWhere, getWarnings, getZombie, getZombieMboValueData, handleRemoteException, handleRequiredFieldException, hasLongDescriptionText, hasLongDescriptionText, hasMboSetRemote, hasPageRows, hasRow, hasSameMboSet, hasSigOptionAccess, hierarchicalmove, highlightrow, highlightrow, insert, insertAtEnd, instantdelete, isAppTableRetain, isAttribute, isAttributeHidden, isAttributeHidden, isColumnSorted, isListTableModified, isListTableRetain, isLookupMultiSelect, isMboHidden, isMboHidden, isModifiedRow, isModifiedRow, isNewRow, isNewRow, isNewRowUnedited, isRowDeleted, isRowLocked, isSelected, isSubSelect, isTableAttribute, isTablePostionMarked, isTableRowSelected, isTableStateFlagSet, listenerChangedEvent, madeRequiredConditionally, markTablePosition, moveToMboFromDataBean, needToAuthenticate, next, nextrow, positionState, previous, prevrow, propagateRequired, queryAllBookmarks, queryAllRecs, refreshTable, registerDynamicControlsWithERM, reloadTable, removeDialogReference, removeListener, removeRowOnCancel, rePosition, resetJSPFlags, resetQbe, resetWithSelection, restoreSavedQbeSettings, retainPosition, returnLookupValue, returnLookupValue, returnLookupValue, returnLookupValue, save, saveCurrentQbeSettings, scrollnext, scrollprev, select, select, selectAll, selectrecord, selectRows, sendRefreshTable, setApp, setAppDefault, setAppDefaults, setApplicationError, setAppWhere, setAsyncLock, setAttributes, setCurrentQueryDescription, setCurrentRow, setDate, setDate, setDate, setDefaultOrderBy, setDefaultValue, setDefaultValue, setDescAttributeId, setDynamicAppDefaults, setDynamicDefault, setDynamicQbeDefaults, setEmptyOnClear, setEsigValidated, setEventRowIndex, setfiltervalue, setLastEventHandled, setListTableModified, setListTableRetain, setMboName, setNewRowUnedited, setOrderBy, setPageRowCount, setParent, setQbe, setQbe, setQbe, setQbe, setQbe, setQbeAttributes, setQbeCaseSensitive, setQbeDefaults, setQbeExactMatch, setQueryBySiteQbe, setQueryDescBeforeReviseAction, setQueryNameBeforeReviseAction, setRemoveOnCancel, setReturnAttribute, setReturnComponent, setReturnComponentId, setReturnControlId, setShowDetails, setSmartFillValue, setTableFlag, setUserDefaults, setUserWhere, setvalue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromComponent, smartFill, smartFill, sort, sort, sortcolumn, sortcolumn, sqlwhere, toggledetailstate, toggleselectallrows, toggleselectrow, toString, turnEmptyStateOn, unbindComponent, undelete, undelete, unselect, unselect, unselectAll, useAllBookmarksQuery, useAllRecsQuery, useqbe, usequery, useQuery, useStoredQuery, validate, validateChildren, validateMbo, valueBound, valueUnbound
getCreator, getId, setCreator, setId
public java.lang.String setKPIInfo() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
javax.servlet.ServletException
public java.lang.String setTrendGraphInfo() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void updatekpis() throws MXException, java.rmi.RemoteException
sessionContext
- event
- java.rmi.RemoteException
java.io.IOException
javax.servlet.ServletException
MXException
public java.util.Vector getKPIInfo() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
javax.servlet.ServletException
public java.lang.String formatNumber(double dNumber)
dNumber
- double to perform function onpublic double getDouble(java.lang.Object dNumber)
public boolean isNewKPI()
java.rmi.RemoteException
MXException
javax.servlet.ServletException
public void save() throws MXException
save
in class AppBean
MXException
DataBean.save()
public boolean refreshChart() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void validateTrendInfo() throws MXException
MXException
public void initializeApp() throws MXException, java.rmi.RemoteException
initializeApp
in class AppBean
MXException
java.rmi.RemoteException
AppBean.initializeApp()
public void openlinkedkpi() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
AppBean.initializeApp()
public int openreport() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
TODO : KD_Singh - complete lanuching of report dialog