| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd"> |
| |
| <screen name="main-decorator"> |
| <section> |
| <actions> |
| <!-- base/top/specific map first, then more common map added for shared labels --> |
| <property-map resource="BirtUiLabels" map-name="uiLabelMap" global="true"/> |
| <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/> |
| |
| <set field="layoutSettings.companyName" from-field="uiLabelMap.BirtCompanyName" global="true"/> |
| <set field="layoutSettings.companySubtitle" from-field="uiLabelMap.BirtCompanySubtitle" global="true"/> |
| <!-- layoutSettings.headerImageUrl can be used to specify an application specific logo; if not set, |
| then the global layoutSettings.commonHeaderImageUrl (specified in GlobalDecorator) will be used. --> |
| <!--<set field="layoutSettings.headerImageUrl" value="/images/ofbiz_logo.gif" global="true"/>--> |
| |
| <!-- <set field="layoutSettings.headerMiddleBackgroundUrl" value="" global="true"/> --> |
| <!-- <set field="layoutSettings.headerRightBackgroundUrl" value="" global="true"/> --> |
| <!-- TODO: Use transform to specify component URI --> |
| <set field="layoutSettings.companyName" from-field="uiLabelMap.BirtCompanyName" global="true"/> |
| <set field="layoutSettings.companySubtitle" from-field="uiLabelMap.BirtCompanySubtitle" global="true"/> |
| <set field="activeApp" value="birt" global="true"/> |
| <set field="applicationMenuName" value="BirtAppBar" global="true"/> |
| <set field="applicationMenuLocation" value="component://birt/widget/birt/BirtMenus.xml" global="true"/> |
| <set field="applicationTitle" value="${uiLabelMap.BirtExampleApplication}" global="true"/> |
| </actions> |
| <widgets> |
| <include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="CommonBirtDecorator"> |
| <section> |
| <actions> |
| <set field="headerItem" value="Birt"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="pre-body"> |
| <section> |
| <!-- do check for WEBTOOLS, _VIEW permission --> |
| <condition> |
| <if-has-permission permission="ENTITY_MAINT"/> |
| </condition> |
| <widgets> |
| <include-menu name="BirtTabBar" location="component://birt/widget/birt/BirtMenus.xml"/> |
| </widgets> |
| </section> |
| </decorator-section> |
| <decorator-section name="body"> |
| <container style="clear" /> |
| <section> |
| <!-- do check for WEBTOOLS, _VIEW permission --> |
| <condition> |
| <if-has-permission permission="ENTITY_MAINT"/> |
| </condition> |
| <widgets> |
| <decorator-section-include name="body"/> |
| </widgets> |
| <fail-widgets> |
| <label style="h3">${uiLabelMap.WebtoolsPermissionError}</label> |
| </fail-widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="main"> |
| <section> |
| <actions> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <section> |
| <widgets> |
| <label style="h3" text="BIRT is an open source Eclipse-based reporting system that integrates with any OFBiz application to produce compelling reports including graphical presentations like pie and bar charts."/> |
| <label style="h3" text="This application provides you with a sample example report."/> |
| <label style="h3" text="See the help option how to create your own OFBiz intergrated reports."/> |
| <link style="h3" text="or see the Birt home for more information" target="http://eclipse.org/birt/phoenix/intro/" url-mode="plain" target-window="_blank_"/> |
| </widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="Report"> |
| <section> |
| <actions> |
| <set field="tabButtonItem" value="Report"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <section> |
| <widgets> |
| <screenlet title="Using report tag"> |
| <platform-specific> |
| <html> |
| <html-template location="component://birt/template/Report.ftl"/> |
| </html> |
| </platform-specific> |
| </screenlet> |
| </widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="EditMail"> |
| <section> |
| <actions> |
| <set field="tabButtonItem" value="Mail"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <section> |
| <widgets> |
| <screenlet title="Send BIRT report by mail"> |
| <include-form location="component://birt/widget/birt/BirtForms.xml" name="EditMail"/> |
| </screenlet> |
| </widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="chartReport"> |
| <section> |
| <actions> |
| <set field="tabButtonItem" value="chartReport"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <section> |
| <widgets> |
| <screenlet title="Using report tag"> |
| <platform-specific> |
| <html><html-template location="component://birt/template/ChartReport.ftl"/></html> |
| </platform-specific> |
| </screenlet> |
| </widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| </screens> |