1.7 Alpha CSH query - databean contents
Submitted by Guest on Thu, 18/07/2013 - 07:32
I want to start looking at knocking up the various reports that are missing (see https://openvpms.atlassian.net/browse/OVPMS-1320).
Since I can't use the trick of 'clone from existing' for these, how do I get information on the available fields for each report type. ie if I want to build a template and document for Workflow|Appointment|Print where do I go to get the fields available.
I you give me the recipe for this, then I will add it to the CSH reference section (as well as start work on the missing stuff).
[I don't know whether the correct term is 'data bean' - I saw this used in a response to a specific query of mine some 6 months ago.]
Regards, Tim
Re: 1.7 Alpha CSH query - databean contents
Data source as opposed to data bean would be a more appropriate term.
The archetypes for the missing templates are:
You can determine the available fields to use in the report by looking at the corresponding archetypes.
E.g., the act.customerAppointment has the following nodes:
Each of these nodes may be used in reports as follows:
Where a node refers to an archetype (e.g. the customer node is a collection of participation.customer), you can use "." to drill down on the nodes of that archetype.
In the above, "customer.entity.name" means:
1. retrieve the object associated with "customer.entity"; and
2. return its name node
-Tim
Re: 1.7 Alpha CSH query - databean contents
Thanks Tim - I have created http://www.openvpms.org/documentation/csh/1.7/reference/reportFields from the above.
Question: what happens with the template types like 'Customer Account Balance' and 'Grouped Reminders' where there is no archetype and the thing in the archetype column is in caps (eg CUSTOMER_BALANCE and GROUPED_REMINDERS)
Note also that I suspect I should also create a 'Document Fields' page which deals with fields in .odt and .dot documents but I just have not yet played enough with these to write the article yet.
Regards, Tim G
Re: 1.7 Alpha CSH query - databean contents
These are special reports that are generated by running queries that:
For CUSTOMER_BALANCE, the fields are:
For GROUPED_REMINDERS, the fields are:
-Tim
Re: 1.7 Alpha CSH query - databean contents
Thanks Tim, I have updated these into the CSH page. The only one we are missing is WORK_IN_PROGRESS_CHARGES - see http://www.openvpms.org/documentation/csh/1.7/reference/reportFields
Regards, Tim G
Re: 1.7 Alpha CSH query - databean contents
I've added a note for this report.
-Tim A