Much of the data displayed on the workspace page is retrieved via the Evidence Descriptor entity. The description and period are retrieved via Evidence Interface methods which must be implemented for each evidence type.
The description, or summary details, is retrieved via the getDetailsForListDisplay Evidence Interface method which is implemented by the evidence entities. The implementation of the getDetailsForListDisplay method for the Asset is shown below. This interface function is also used to retrieve summary data when applying, approving, rejecting evidence as well as in evidence sharing, verifications and issues screens.
// __________________________________________________________ /** * Gets evidence details for the list display * * @param key Evidence 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; }