\n");// "
"
- queryZoom = null;
- queryZoom = new ArrayList
();
- String appendToHome = null;
- try
- {
- int AD_User_ID = Env.getAD_User_ID(Env.getCtx());
- int AD_Role_ID = Env.getAD_Role_ID(Env.getCtx());
-
- MDashboardPreference[] dps = MDashboardPreference.getForSession(AD_User_ID, AD_Role_ID);
- if (dps.length == 0)
- createDashboardPreference();
-
- dps = MDashboardPreference.getForSession(true, AD_User_ID, AD_Role_ID); // based on user and role
-
- for (final MDashboardPreference dp : dps)
- {
- MDashboardContent dc = new MDashboardContent(dp.getCtx(), dp.getPA_DashboardContent_ID(), dp.get_TrxName());
-
- if (!Util.isEmpty(dc.getZulFilePath(), true))
- continue;
- //
- appendToHome = dc.get_Translation(MDashboardContent.COLUMNNAME_HTML);
- String descriptionTrl = dp.get_Translation(MDashboardContent.COLUMNNAME_Description);
- if (appendToHome != null) {
- if (descriptionTrl != null)
- result.append("").append(descriptionTrl).append("
\n");
- result.append(stripHtml(appendToHome, false)).append("
\n");
- }
-
- if (dc.getAD_Menu_ID() > 0) {
- result.append("");
- result.append(descriptionTrl.toString());
- result.append("
\n");
-
- }
- result.append("
\n");
- //result += "table id: " + rs.getInt("AD_TABLE_ID");
- if (dc.getPA_Goal_ID() > 0)
- result.append(goalsDetail(dc.getPA_Goal_ID()));
- }
- }
- catch (Exception e)
- {
- log.log(Level.SEVERE, e.getLocalizedMessage(), e);
- }
- finally
- {
- }
- result.append("
\n")
- .append(" \n\n