Dashlet di esempio

Elencare tutte le fatture con una visualizzazione personalizzata

#set($documentDao = $ContextTool.getBean("DocumentDAO"))   
#set($invoices = $documentDao.findByWhere('_entity.template.id=547815424','_entity.date desc',10))
<table border="1">
<tr><th>InvoiceNo</th><th>Date</th><th>Total</th></tr>
#foreach( $doc in $invoices)
   $documentDao.initialize($doc)
   <tr>
       <td>$doc.getValue('InvoiceNo')</td>
       <td>${DateTool.format($doc.getValue('Date'),false)}</td>
       <td>$doc.getValue('Total')</td>
   </tr>
#end
</table>

[snippetnoeditor id="dashlet2" openLabel="Apri dashlet" copyLabel="Copia nella clipboard"][/snippet]

Questo dashlet di tipo contenuto personalizzato esegue il rendering di una tabella HTML con tutte le fatture(quei documenti con modello identificato da 547815424).