The best way to show charts is to define a query that would retrieve data for charts and then select “Chart” as the presentation option for this query. This is explained in the “Displaying Query Results” section. The query should find instances of objects whose attributes provide data values for the X and Y-axis of the chart. Charts displayed this way will be dynamic – the user will be able to see the values of the points on the chart as he hovers the mouse over the data. He will also be able to click on the chart and start some operation (that you can define).
It is also possible to define charts in presentation and reports. Such charts will be displayed as static images.
To add support for Gantt chart in your application you need to do the following:
To add predefined business objects to your application select the Business Objects node in the tree, right click and select the Add Gantt Task Object command from the popup menu. Before doing this, make sure that you define your own object that represents a “resource” that will be allocated to a task (even if you don’t use resources in your Gantt). It can be any object that has an attribute called Name. After you select the command AwareIM will ask you to provide the name of the “resource” object and then it will create predefined objects called GanttTask and GtDependency with all the required attributes (Note that GtDependency has references to the tasks that it “connects”.
After this you need to define rules and processes that will create and manage tasks and related dependencies.
Finally you need to define a query to find task objects and display them as a Gantt chart. When a query looks for task objects AwareIM will automatically enable the Gantt option in the Display options of the query. You can then specify properties of the Gantt chart that you want to show. The Gantt chart will automatically include all dependencies related to the tasks.
Configuring Gantt charts in AwareIM.
.
You can either use “chart report elements” or use images of online charts. For the description of the chart report elements please refer to the documentation of reports. To use images of online charts in your reports or documents do the following:
<<MyObject.ChartImage>>
SAVE SCREEN action and display the document template, for example:SAVE SCREEN 'my chart id' TO MyObject.ChartImage DISPLAY DOCUMENT 'My template using chart image'