Changes between Version 7 and Version 8 of IndepthIntroduction
- Timestamp:
- 07/19/10 18:07:59 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IndepthIntroduction
v7 v8 64 64 }}} 65 65 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.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 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. 67 67 68 68 To 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. … … 82 82 As usual you can see here the different way to make a reference to the content of the invoice object : 83 83 84 * through the `${}`interpolation of Genshi84 * through the Text Placeholder interpolation of Genshi 85 85 * or through the hyperlink specification I explained earlier. 86 86
