Changes between Version 7 and Version 8 of IndepthIntroduction

Show
Ignore:
Timestamp:
07/19/10 18:07:59 (3 years ago)
Author:
ced (IP: 213.49.144.172)
Comment:

Remove usage of ${} in opendocument

Legend:

Unmodified
Added
Removed
Modified
  • IndepthIntroduction

    v7 v8  
    6464}}} 
    6565 
    66 Notice that the dictionary passed to `generate` is used to bind names to make them accessible to the report. So you can access the data of the invoice with a simple `${o.customer.name}`. This is where you can see our [http://genshi.edgewall.org/ Genshi] heritage. In fact, all reports using relatorio are subclasses of Genshi's Template. Thus you can use most of the goodies provided by Genshi. 
     66Notice that the dictionary passed to `generate` is used to bind names to make them accessible to the report. So you can access the data of the invoice with a Text [http://wiki.services.openoffice.org/wiki/Documentation/OOoAuthors_User_Manual/Writer_Guide/Using_placeholder_fields Placeholder] containing `o.customer.name`. This is where you can see our [http://genshi.edgewall.org/ Genshi] heritage. In fact, all reports using relatorio are subclasses of Genshi's Template. Thus you can use most of the goodies provided by Genshi. 
    6767 
    6868To iterate over a list you must use an hyperlink (created through ''Insert > Hyperlink'') and encode as the target the Genshi expression to use. The URL-scheme used '''must''' be `relatorio`. You can use whatever text you want as the link text, but we find it way more explicit to display the Genshi code used. Here is the example of the for loop. 
     
    8282As usual you can see here the different way to make a reference to the content of the invoice object :  
    8383 
    84  * through the `${}` interpolation of Genshi 
     84 * through the Text Placeholder interpolation of Genshi 
    8585 * or through the hyperlink specification I explained earlier. 
    8686