manual_usuario:outros:formatadorrelatoriodesenv:fr_18_code_calculations_totals
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
| Ambos lados da revisão anteriorRevisão anterior | |||
| manual_usuario:outros:formatadorrelatoriodesenv:fr_18_code_calculations_totals [2015/02/09 15:15] – administrador | manual_usuario:outros:formatadorrelatoriodesenv:fr_18_code_calculations_totals [2015/02/10 14:36] (atual) – Aprovado administrador | ||
|---|---|---|---|
| Linha 10: | Linha 10: | ||
| ---- | ---- | ||
| - | 1. Select the vrItemTotal variable in the detail band. | + | 1. Selecione a variável vrItemTotal na banda de detalhes. |
| - | + | ||
| - | 2. Select the Events tab of the Object Inspector. | + | |
| - | + | ||
| - | 3. Double-click on the OnCalc event. An event handler shell will be generated in your Delphi form. | + | |
| - | + | ||
| - | 4. Add the following code to this event handler: | + | |
| - | + | ||
| - | 1. Selecione a variável vrItemTotal na faixa de detalhes. | + | |
| 2. Selecione a guia Eventos do Object Inspector. | 2. Selecione a guia Eventos do Object Inspector. | ||
| - | 3. Dê um clique | + | 3. Dê um duplo clique |
| - | 4. Adicione o seguinte código para este manipulador de eventos: | + | 4. Adicione o seguinte código para este evento: |
| Value := plItem[' | Value := plItem[' | ||
| - | **Note:** This event handler retrieves the quantity and list price of the item and returns the total amount via the Value parameter. The result will become the value of the variable component. The OnCalc event will fire once for each item record. | + | **Nota:** Este evento |
| - | + | ||
| - | 5. Return to the Report Designer and select the vrOrderTotal variable in the group footer band. | + | |
| - | + | ||
| - | ** Nota: ** Este manipulador de eventos | + | |
| 5. Retorne ao Report Designer e selecione a variável vrOrderTotal na banda de rodapé de grupo. | 5. Retorne ao Report Designer e selecione a variável vrOrderTotal na banda de rodapé de grupo. | ||
| - | 6. Code the OnCalc | + | 6. Código do evento |
| Value := Value + vrItemTotal.Value; | Value := Value + vrItemTotal.Value; | ||
| - | **Note:** This event handler retrieves the current total for the item and adds it to the running total for the order. This OnCalc event will also fire once for each item record. | + | **Nota:** Este evento |
| - | + | ||
| - | 7. Return to the Report Designer, right-click over the vrOrderTotal variable, and select the Timing... menu option. | + | |
| - | + | ||
| - | 8. Select ' | + | |
| - | + | ||
| - | **Note:** The Timing dialog allows you to control when the OnCalc event will fire and when the variable value will be reset. For this total, we want to calculate the value each time a record is traversed and we want to reset the value after the group footer has completed printing. | + | |
| - | + | ||
| - | 9. Select Project | Compile rbMDDProj. Fix any compilation problems. | + | |
| - | + | ||
| - | + | ||
| - | ** Nota: ** Este manipulador de eventos | + | |
| - | 7. Volte para o Report Designer, clique com botão direito sobre a variável vrOrderTotal, | + | 7. Volte para o Report Designer, clique com botão direito sobre a variável vrOrderTotal, |
| - | 8. Selecione " | + | 8. Selecione " |
| - | ** Nota: ** O diálogo | + | **Nota:** O diálogo |
| - | 9. Selecione | + | 9. Selecione |
| - | 10. Select File | Save from the Delphi main menu. | + | 10. Select |
manual_usuario/outros/formatadorrelatoriodesenv/fr_18_code_calculations_totals.1423494913.txt.gz · Última modificação: por administrador
