Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| 6000_case_study:0400_configuration:0900_fine_tuning:0100_documents [2022/08/21 22:48] – ↷ Links adapted because of a move operation administrator | 6000_case_study:0400_configuration:0900_fine_tuning:0100_documents [2026/08/13 00:55] (current) – ↷ Links adapted because of a move operation localdev | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| With this feature users will be able to invoke the operation that will display a PDF document listing loans, reservations, | With this feature users will be able to invoke the operation that will display a PDF document listing loans, reservations, | ||
| - | Before we can configure such an operation we need to configure a document. This document will need to list loans, reservations, | + | Before we can configure such an operation we need to configure a document. This document will need to list loans, reservations, |
| - | We will start by configuring documents that will be used as sub-reports within our master document. To add a new document to the configuration right click on the “Document templates, reports” node in the Elements Tree and select “New” from the pop-up menu. Enter the name of the new document “Member payments” in the list of document properties and select the type of the document “Report”. The report editor will be displayed in the working area of the screen. The Report Designer is described in detail in the “Working with Report/ | + | We will start by configuring documents that will be used as sub-reports within our master document. To add a new document to the configuration right click on the “Document templates, reports” node in the Elements Tree and select “New” from the pop-up menu. Enter the name of the new document “Member payments” in the list of document properties and select the type of the document “Report”. The report editor will be displayed in the working area of the screen. The Report Designer is described in detail in the “[[2500_config_apps: |
| Once we are happy with the layout of the document we click on the “Save” button in the toolbar or select File/Save from the menu of the Configuration Tool. The new document appears in the list of documents in the Elements Tree. | Once we are happy with the layout of the document we click on the “Save” button in the toolbar or select File/Save from the menu of the Configuration Tool. The new document appears in the list of documents in the Elements Tree. | ||
| Line 18: | Line 18: | ||
| Now we can define the master report called “Member details”. The layout of this report includes several sub-report elements (take a look at the final layout of the document in the sample configuration). Note that this report assumes that there is a particular instance of the '' | Now we can define the master report called “Member details”. The layout of this report includes several sub-report elements (take a look at the final layout of the document in the sample configuration). Note that this report assumes that there is a particular instance of the '' | ||
| - | <code aim>FIND Payment WHERE Payment IN Member.Payments ORDER BY Payment.AppliedOn</ | + | <code aim>FIND Payment WHERE Payment IN Member.Payments ORDER BY Payment.AppliedOn </ |
| This query finds all payments of the member object that is assumed to be in the context. | This query finds all payments of the member object that is assumed to be in the context. | ||
| Line 24: | Line 24: | ||
| Note also that the report has no “Details” section – this is because the report itself does not display any lists (lists are shown inside the sub-reports). | Note also that the report has no “Details” section – this is because the report itself does not display any lists (lists are shown inside the sub-reports). | ||
| - | Now that we have finally defined all our documents we can define the operation that will display the master report. The operation will be invoked from the form of the '' | + | Now that we have finally defined all our documents we can define the operation that will display the master report. The operation will be invoked from the form of the '' |
| ===== Payment receipt ===== | ===== Payment receipt ===== | ||
| Line 30: | Line 30: | ||
| Another improvement that we will introduce is the improvement to the “Register Payment” operation. Once the user finishes registering the payment the system will ask the user if she wants to display the receipt. If the user answers yes, the system will display the page, which lists the details of the member, the payment amount, description etc. | Another improvement that we will introduce is the improvement to the “Register Payment” operation. Once the user finishes registering the payment the system will ask the user if she wants to display the receipt. If the user answers yes, the system will display the page, which lists the details of the member, the payment amount, description etc. | ||
| - | The page that will be displayed if the user asks for the receipt will be represented by an HTML document. We add the new document to our configuration in much the same way we have defined our reports. The difference is that the type of the document is “HTML” and that we prepare the document template not in the Report Designer but in any HTML editor of our choice. We define a new document of the HTML type, enter its name “Payment receipt” and click on the “Import” button on the documents editor to import the layout of the page that we have prepared in the HTML editor. We need to put all the layout files (including the HTML file and any images and/or styles) into a separate directory and specify the name of this directory when we import the layout. You can have a look at the layout of the “Payment receipt” document in the configuration of the Library application located in the “samples” directory of your //**Aware IM**// installation. | + | The page that will be displayed if the user asks for the receipt will be represented by an HTML document. We add the new document to our configuration in much the same way we have defined our reports. The difference is that the type of the document is “HTML” and that we prepare the document template not in the Report Designer but in any HTML editor of our choice. We define a new document of the HTML type, enter its name “Payment receipt” and click on the “Import” button on the documents editor to import the layout of the page that we have prepared in the HTML editor. We need to put all the layout files (including the HTML file and any images and/or styles) into a separate directory and specify the name of this directory when we import the layout. You can have a look at the layout of the “Payment receipt” document in the configuration of the Library application located in the “samples” directory of your //**AwareIM**// installation. |
| - | < | + | <callout type=" |
| Now we need to modify our [[6000_case_study: | Now we need to modify our [[6000_case_study: | ||
| Line 41: | Line 41: | ||
| <code aim> | <code aim> | ||
| - | IF Question.Reply = ' | + | IF Question.Reply = ' |
| The entire process, therefore, looks like this: | The entire process, therefore, looks like this: | ||
| Line 47: | Line 47: | ||
| <code aim> | <code aim> | ||
| DISPLAY QUESTION ' | DISPLAY QUESTION ' | ||
| - | IF Question.Reply = ' | + | IF Question.Reply = ' |
| - | < | + | <callout type=" |