IDEMPIERE-127 Implement Recent Items dashboard

http://jira.idempiere.com/browse/IDEMPIERE-127
This commit is contained in:
Carlos Ruiz 2012-01-27 16:47:39 -05:00
parent 234d2d3aa5
commit 96dc429d26
1 changed files with 7 additions and 1 deletions

View File

@ -247,6 +247,12 @@ public class MRecentItem extends X_AD_RecentItem
recordIdentifier = recordIdentifier + "_" + po.get_ValueAsString("Value"); recordIdentifier = recordIdentifier + "_" + po.get_ValueAsString("Value");
if (po.get_ColumnIndex("Name") > 0) if (po.get_ColumnIndex("Name") > 0)
recordIdentifier = recordIdentifier + "_" + po.get_ValueAsString("Name"); recordIdentifier = recordIdentifier + "_" + po.get_ValueAsString("Name");
if (recordIdentifier.length() == 0)
recordIdentifier = "_" + po.toString();
if (recordIdentifier.length() == 0)
recordIdentifier = "_[" + po.get_ID() + "]";
if (recordIdentifier.length() == 0)
recordIdentifier = "_[no identifier]";
return windowName + ": " + recordIdentifier.substring(1); return windowName + ": " + recordIdentifier.substring(1);
} }