Adding Formatting Exceptions Creating XML Customizations

22-10 Publishing Reports to the Web with Oracle Reports Services parentGroup CDATA IMPLIED parentColumn CDATA IMPLIED childQuery CDATA IMPLIED childColumn CDATA IMPLIED condition eq|lt|neq|gt|gteq|like|notLike eq sqlClause startWith|having|where where The link element is placed within a data element and can link any two dataSource objects defined within the data element. For example: report name=anyname DTDVersion=9.0.2.0.0 data dataSource name=Q_1 defaultGroupName=G_DEPARTMENTS select select from departments select dataSource dataSource name=Q_2 defaultGroupName=G_EMPLOYEES select select from employees select dataSource link name=L_1 parentGroup=G_DEPARTMENTS parentColumn=DEPARTMENT_ID childQuery=Q_2 childColumn=DEPARTMENT_ID1 condition=eq sqlClause=where data report Within the link element, Oracle Reports defaulting mechanism recognizes DEPARTMENT_ID1 as an alias to the DEPARTMENT_ID column in the EMPLOYEES table without your having to explicitly create such an alias.

22.3.3 Creating Group Hierarchies Within Each Data Source

With Oracle Reports Services, the complete group hierarchy is available to you. You can specify all the columns within each group and break the order of those columns. You can use formulas, summaries, and placeholders to further customize the objects within groups. The data type definition for the group element is: ELEMENT group field|exception|rowDelimiter|xmlSettings|displayInfo|dataItem|formula| summary|placeholder|filter|comment ATTLIST group name CDATA IMPLIED fillColor CDATA IMPLIED lineColor CDATA IMPLIED formatTrigger CDATA IMPLIED The following example demonstrates the use of a group element to create a break group under a data source. report name=anyname DTDVersion=9.0.2.0.0 data dataSource name=Q_1 select select from employees select group name=G_DEPARTMENTS dataItem name=DEPARTMENT_ID Customizing Reports with XML 22-11 group group name=G_EMPLOYEES dataItem=EMPLOYEE_ID dataItem=FIRST_NAME dataItem=LAST_NAME dataItem=JOB_ID dataItem=MANAGER_ID dataItem=HIRE_DATE dataItem=SALARY dataItem=COMMISSION_PCT group dataSource data report

22.3.4 Creating Cross-Product Matrix Groups

Cross-product groups allow you to define a matrix of any number of groups in the data model. The dimension groups in a cross product may exist in the same data source or may be combined from different data sources to create a matrix. In support of this flexibility, the crossProduct tag is placed within the data tag after all the data sources and groups have been created. The data type definition for the crossProduct element is: ELEMENT crossProduct xmlSettings|displayInfo|dimension|formula|summary|placeholder|comment ATTLIST crossProduct name CDDATA IMPLIED mailText CDDATA IMPLIED The following example demonstrates the creation of a single-query matrix. report name=anyname DTDVersion=9.0.2.0.0 data dataSource name=Q_1 select select from employees select group name=G_DEPARTMENTS dataItem name=DEPARTMENT_ID group group name=G_JOB_ID dataItem name=JOB_ID group group name=G_MANAGER_ID dataItem name=MANAGER_ID group group name=G_EMPLOYEE_ID dataItem name=EMPLOYEE_ID dataItem name=FIRST_NAME dataItem name=LAST_NAME dataItem name=HIRE_DATE dataItem name=SALARY dataItem name=COMMISSION_PCT group dataSource crossProduct name=G_Matrix dimension group name=G_DEPARTMENTS dimension