All evidence entities must implement the Hook method, getDetailsForListDisplay. This method creates the text description for a particular Asset Business Object on the evidence workspace pages. As this is link text used on the client screens, it must be populated in order to access all the screens.
The following is the getDetailsForListDisplay implementation for Asset:
//________________________________________________________________ /** * Get evidence details for the list display * * @param key Key containing the evidenceID and evidenceType * * @return Evidence details to be displayed on the list page */ public EIFieldsForListDisplayDtls getDetailsForListDisplay( EIEvidenceKey key) throws AppException, InformationalException { // Return object EIFieldsForListDisplayDtls eiFieldsForListDisplayDtls = new EIFieldsForListDisplayDtls(); // Asset entity key final AssetKey assetKey = new AssetKey(); assetKey.evidenceID = key.evidenceID; // Read the Asset entity to get display details final AssetDtls assetDtls = AssetFactory.newInstance().read(assetKey); // Set the start / end dates eiFieldsForListDisplayDtls.startDate = assetDtls.startDate; eiFieldsForListDisplayDtls.endDate = assetDtls.endDate; LocalisableString summary = new LocalisableString( BIZOBJDESCRIPTIONS.BIZ_OBJ_DESC_ASSET); summary.arg( CodeTable.getOneItem(SAMPLEASSETTYPE.TABLENAME, assetDtls.assetType)); // Format the amount for display TabDetailFormatter formatterObj = TabDetailFormatterFactory.newInstance(); AmountDetail amount = new AmountDetail(); amount.amount = assetDtls.value; summary.arg(formatterObj.formatCurrencyAmount(amount).amount); eiFieldsForListDisplayDtls.summary = summary.toClientFormattedText(); return eiFieldsForListDisplayDtls; }