Modified: ofbiz/trunk/plugins/birt/widget/birt/BirtForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/plugins/birt/widget/birt/BirtForms.xml?rev=1781215&r1=1781214&r2=1781215&view=diff ============================================================================== --- ofbiz/trunk/plugins/birt/widget/birt/BirtForms.xml (original) +++ ofbiz/trunk/plugins/birt/widget/birt/BirtForms.xml Wed Feb 1 10:23:44 2017 @@ -1,145 +1,145 @@ -<?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. ---> - -<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd"> - - <form name="EditMail" type="single" target="sendBirtMail"> - <field name="sendFrom"><text/></field> - <field name="sendTo"><text/></field> - <field name="subject"><text/></field> - <field name="birtContentType"> - <drop-down> - <entity-options entity-name="Enumeration" description="${enumCode}" key-field-name="description"> - <entity-constraint name="enumTypeId" value="FLEXIBLE_BIRT"/> - <entity-order-by field-name="sequenceId"/> - </entity-options> - </drop-down> - </field> - <field name="attachmentName" required-field="true"><text/></field> - <field name="birtReportLocation" tooltip="Example is component://birt/webapp/birt/report/example.rptdesign" required-field="true"><text/></field> - <field name="sendButton"><submit/></field> - </form> - - <!-- Flexible Report Form --> - <form name="CreateFlexibleReport" type="single" target="CreateFlexibleReport"> - <field name="contentId" title="${uiLabelMap.BirtSelectMasterFlexibleReport}" > - <drop-down> - <entity-options description="${description}" entity-name="Content" key-field-name="contentId"> - <entity-constraint name="contentTypeId" value="REPORT_MASTER" /> - </entity-options> - </drop-down> - </field> - <field name="reportName" required-field="true"><text/></field> - <field name="description" required-field="true"><text /></field> - <field name="writeFilters"><check/></field> - <field name="sendButton"><submit/></field> - </form> - <form name="ListPublishFlexibleReport" type="single" target="DisplayFlexibleReportSearchForm"> - <field name="contentId" title="${uiLabelMap.BirtSelectFlexibleReport}" > - <drop-down> - <entity-options description="[${contentName}] ${description}" entity-name="ContentAssocViewTo" key-field-name="contentId"> - <entity-constraint name="contentTypeId" value="FLEXIBLE_REPORT" /> - <entity-constraint name="statusId" value="CTNT_PUBLISHED"/> - </entity-options> - </drop-down> - </field> - <field name="sendButton"><submit /></field> - </form> - - <form name="EditFlexibleReport" type="single" target="UpdateFlexibleReport" default-map-name="content"> - <field name="contentId"><hidden/></field> - <field name="contentName" title="${uiLabelMap.FormFieldTitle_reportName}"><display/></field> - <field name="description"><text/></field> - <field name="statusId"> - <drop-down> - <entity-options description="${description}" entity-name="StatusItem"> - <entity-constraint name="statusId" operator="in" value="CTNT_PUBLISHED,CTNT_IN_PROGRESS"/> - </entity-options> - </drop-down> - </field> - <field name="submit" title="${uiLabelMap.CommonSubmit}"><submit/></field> - </form> - <form name="UploadRptDesign" type="upload" target="UploadRptDesign"> - <actions> - <entity-and entity-name="ContentAssoc" use-cache="true" list="contentAssocs"> - <field-map field-name="contentId" from-field="content.contentId"/> - </entity-and> - <set field="contentAssoc" from-field="contentAssocs[0]" type="Object"/> - <entity-one entity-name="Content" value-field="contentRpt"> - <field-map from-field="contentAssoc.contentIdTo" field-name="contentId"/> - </entity-one> - </actions> - <field name="contentId"><hidden value="${content.contentId}"/></field> - <field name="dataResourceIdRpt"><hidden value="${contentRpt.dataResourceId}"/></field> - <field name="downloadRptDesignLink" title=" " widget-style="buttontext"> - <hyperlink also-hidden="false" description="${uiLabelMap.BirtDownloadRptDesign}" target="ViewBinaryDataResource" target-window="_blank"> - <parameter param-name="dataResourceId" from-field="contentRpt.dataResourceId"/> - </hyperlink> - </field> - <field name="uploadRptDesign" title=" "><file/></field> - <field name="upload" title="${uiLabelMap.CommonUpload}" position="2"><submit/></field> - </form> - - <form name="EditFlexibleReportSearchForm" type="single" target="EditFlexibleReportSearchForm"> - <actions> - <set field="statusId" from-field="content.statusId"/> - <set field="reportContentId" from-field="content.contentId"/> - <entity-and entity-name="ContentAssoc" list="masterContent"> - <field-map field-name="contentIdTo" from-field="contentId"/> - <field-map field-name="contentAssocTypeId" value="SUB_CONTENT"/> - </entity-and> - <service service-name="prepareFlexibleReportSearchFormToEdit" auto-field-map="true" result-map="displayFormMap"/> - </actions> - <field name="overrideFilters" title=" "><textarea cols="90" rows="20" default-value="${displayFormMap.textForm}"/></field> - <field name="reportContentId"><hidden/></field> - <field name="previewButton" title="${uiLabelMap.CommonSave}"><submit/></field> - <on-event-update-area event-type="submit" area-id="preview-column" area-target="PreviewReportSearchForm"> - <parameter param-name="contentId" value="${contentId}"/> - </on-event-update-area> - </form> - - <form name="ListFlexibleReport" type="list" target="" odd-row-style="alternate-row" list-name="contentTypeReport" header-row-style="header-row-2" default-table-style="basic-table hover-bar"> - <row-actions> - <entity-one entity-name="Content" value-field="content" /> - <set field="contentId" from-field="content.contentId"/> - <entity-and entity-name="ContentAssoc" use-cache="true" list="contentAssocs"> - <field-map field-name="contentId"/> - </entity-and> - <set field="contentAssoc" from-field="contentAssocs[0]" type="Object"/> - <entity-one entity-name="Content" value-field="contentRpt"> - <field-map from-field="contentAssoc.contentIdTo" field-name="contentId"/> - </entity-one> - <entity-and entity-name="ContentAssoc" use-cache="true" list="masterContentAssocs"> - <field-map field-name="contentIdTo" from-field="contentId"/> - </entity-and> - <set field="masterContentAssoc" from-field="masterContentAssocs[0]" type="Object"/> - <entity-one entity-name="Content" value-field="masterContent"> - <field-map from-field="masterContentAssoc.contentId" field-name="contentId"/> - </entity-one> - </row-actions> - <field name="contentName" sort-field="true"><display/></field> - <field name="masterContentName" sort-field="true" map-name="masterContent" entry-name="contentName"><display /></field> - <field name="statusId" sort-field="true"><display-entity entity-name="StatusItem" /></field> - <field name="description" sort-field="true"><display/></field> - <field name="manageLink"><include-menu name="ListFlexibleBirtAction" location="component://birt/widget/birt/BirtMenus.xml"/></field> - </form> - -</forms> +<?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. +--> + +<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd"> + + <form name="EditMail" type="single" target="sendBirtMail"> + <field name="sendFrom"><text/></field> + <field name="sendTo"><text/></field> + <field name="subject"><text/></field> + <field name="birtContentType"> + <drop-down> + <entity-options entity-name="Enumeration" description="${enumCode}" key-field-name="description"> + <entity-constraint name="enumTypeId" value="FLEXIBLE_BIRT"/> + <entity-order-by field-name="sequenceId"/> + </entity-options> + </drop-down> + </field> + <field name="attachmentName" required-field="true"><text/></field> + <field name="birtReportLocation" tooltip="Example is component://birt/webapp/birt/report/example.rptdesign" required-field="true"><text/></field> + <field name="sendButton"><submit/></field> + </form> + + <!-- Flexible Report Form --> + <form name="CreateFlexibleReport" type="single" target="CreateFlexibleReport"> + <field name="contentId" title="${uiLabelMap.BirtSelectMasterFlexibleReport}" > + <drop-down> + <entity-options description="${description}" entity-name="Content" key-field-name="contentId"> + <entity-constraint name="contentTypeId" value="REPORT_MASTER" /> + </entity-options> + </drop-down> + </field> + <field name="reportName" required-field="true"><text/></field> + <field name="description" required-field="true"><text /></field> + <field name="writeFilters"><check/></field> + <field name="sendButton"><submit/></field> + </form> + <form name="ListPublishFlexibleReport" type="single" target="DisplayFlexibleReportSearchForm"> + <field name="contentId" title="${uiLabelMap.BirtSelectFlexibleReport}" > + <drop-down> + <entity-options description="[${contentName}] ${description}" entity-name="ContentAssocViewTo" key-field-name="contentId"> + <entity-constraint name="contentTypeId" value="FLEXIBLE_REPORT" /> + <entity-constraint name="statusId" value="CTNT_PUBLISHED"/> + </entity-options> + </drop-down> + </field> + <field name="sendButton"><submit /></field> + </form> + + <form name="EditFlexibleReport" type="single" target="UpdateFlexibleReport" default-map-name="content"> + <field name="contentId"><hidden/></field> + <field name="contentName" title="${uiLabelMap.FormFieldTitle_reportName}"><display/></field> + <field name="description"><text/></field> + <field name="statusId"> + <drop-down> + <entity-options description="${description}" entity-name="StatusItem"> + <entity-constraint name="statusId" operator="in" value="CTNT_PUBLISHED,CTNT_IN_PROGRESS"/> + </entity-options> + </drop-down> + </field> + <field name="submit" title="${uiLabelMap.CommonSubmit}"><submit/></field> + </form> + <form name="UploadRptDesign" type="upload" target="UploadRptDesign"> + <actions> + <entity-and entity-name="ContentAssoc" use-cache="true" list="contentAssocs"> + <field-map field-name="contentId" from-field="content.contentId"/> + </entity-and> + <set field="contentAssoc" from-field="contentAssocs[0]" type="Object"/> + <entity-one entity-name="Content" value-field="contentRpt"> + <field-map from-field="contentAssoc.contentIdTo" field-name="contentId"/> + </entity-one> + </actions> + <field name="contentId"><hidden value="${content.contentId}"/></field> + <field name="dataResourceIdRpt"><hidden value="${contentRpt.dataResourceId}"/></field> + <field name="downloadRptDesignLink" title=" " widget-style="buttontext"> + <hyperlink also-hidden="false" description="${uiLabelMap.BirtDownloadRptDesign}" target="ViewBinaryDataResource" target-window="_blank"> + <parameter param-name="dataResourceId" from-field="contentRpt.dataResourceId"/> + </hyperlink> + </field> + <field name="uploadRptDesign" title=" "><file/></field> + <field name="upload" title="${uiLabelMap.CommonUpload}" position="2"><submit/></field> + </form> + + <form name="EditFlexibleReportSearchForm" type="single" target="EditFlexibleReportSearchForm"> + <actions> + <set field="statusId" from-field="content.statusId"/> + <set field="reportContentId" from-field="content.contentId"/> + <entity-and entity-name="ContentAssoc" list="masterContent"> + <field-map field-name="contentIdTo" from-field="contentId"/> + <field-map field-name="contentAssocTypeId" value="SUB_CONTENT"/> + </entity-and> + <service service-name="prepareFlexibleReportSearchFormToEdit" auto-field-map="true" result-map="displayFormMap"/> + </actions> + <field name="overrideFilters" title=" "><textarea cols="90" rows="20" default-value="${displayFormMap.textForm}"/></field> + <field name="reportContentId"><hidden/></field> + <field name="saveButton" title="${uiLabelMap.CommonSave}"><submit/></field> + <on-event-update-area event-type="submit" area-id="preview-column" area-target="PreviewReportSearchForm"> + <parameter param-name="contentId" value="${contentId}"/> + </on-event-update-area> + </form> + + <form name="ListFlexibleReport" type="list" target="" odd-row-style="alternate-row" list-name="contentTypeReport" header-row-style="header-row-2" default-table-style="basic-table hover-bar"> + <row-actions> + <entity-one entity-name="Content" value-field="content" /> + <set field="contentId" from-field="content.contentId"/> + <entity-and entity-name="ContentAssoc" use-cache="true" list="contentAssocs"> + <field-map field-name="contentId"/> + </entity-and> + <set field="contentAssoc" from-field="contentAssocs[0]" type="Object"/> + <entity-one entity-name="Content" value-field="contentRpt"> + <field-map from-field="contentAssoc.contentIdTo" field-name="contentId"/> + </entity-one> + <entity-and entity-name="ContentAssoc" use-cache="true" list="masterContentAssocs"> + <field-map field-name="contentIdTo" from-field="contentId"/> + </entity-and> + <set field="masterContentAssoc" from-field="masterContentAssocs[0]" type="Object"/> + <entity-one entity-name="Content" value-field="masterContent"> + <field-map from-field="masterContentAssoc.contentId" field-name="contentId"/> + </entity-one> + </row-actions> + <field name="contentName" sort-field="true"><display/></field> + <field name="masterContentName" sort-field="true" map-name="masterContent" entry-name="contentName"><display /></field> + <field name="statusId" sort-field="true"><display-entity entity-name="StatusItem" /></field> + <field name="description" sort-field="true"><display/></field> + <field name="manageLink"><include-menu name="ListFlexibleBirtAction" location="component://birt/widget/birt/BirtMenus.xml"/></field> + </form> + +</forms> Modified: ofbiz/trunk/plugins/birt/widget/birt/BirtScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/plugins/birt/widget/birt/BirtScreens.xml?rev=1781215&r1=1781214&r2=1781215&view=diff ============================================================================== --- ofbiz/trunk/plugins/birt/widget/birt/BirtScreens.xml (original) +++ ofbiz/trunk/plugins/birt/widget/birt/BirtScreens.xml Wed Feb 1 10:23:44 2017 @@ -1,417 +1,417 @@ -<?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"/> - <set field="subcomponentMenuName" from-field="subcomponentMenuName" default-value="BirtTabBar" /> - <set field="subcomponentMenuLocation" from-field="subcomponentMenuLocation" default-value="component://birt/widget/birt/BirtMenus.xml" /> - </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="${subcomponentMenuName}" location="${subcomponentMenuLocation}"/> - </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="CommonBirtMinimalDecorator"> - <section> - <actions> - <property-map resource="BirtUiLabels" map-name="uiLabelMap" global="true"/> - <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/> - </actions> - <widgets> - <decorator-section-include name="body"/> - </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 name="EditMail" location="component://birt/widget/birt/BirtForms.xml"/> - </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> - - <!--=========================--> - <!-- Flexible Birt Screen --> - <!--=========================--> - <screen name="CommonFlexibleBirtDecorator"> - <section> - <actions> - <set field="subcomponentMenuLocation" value="component://birt/widget/birt/BirtMenus.xml"/> - <set field="subcomponentMenuName" value="FlexibleBirtTabBar"/> - </actions> - <widgets> - <decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}"> - <decorator-section name="body"> - <decorator-section-include name="body"/> - </decorator-section> - </decorator-screen> - - </widgets> - </section> - </screen> - <screen name="UseFlexibleReport"> - <section> - <actions> - <set field="tabButtonItem" value="UseFlexibleReport" /> - </actions> - <widgets> - <decorator-screen name="CommonFlexibleBirtDecorator"> - <decorator-section name="body"> - <section> - <condition> - <if-has-permission permission="BIRT" action="_VIEW"/> - </condition> - <widgets> - <include-screen name="SelectFlexibleReport"/> - </widgets> - <fail-widgets> - <label style="h3">${uiLabelMap.BirtPermissionError}</label> - </fail-widgets> - </section> - </decorator-section> - </decorator-screen> - </widgets> - </section> - </screen> - - <screen name="SelectFlexibleReport"> - <section> - <condition> - <if-has-permission permission="BIRT" action="_VIEW"/> -<!-- <if-service-permission service-name="genericBirtPermission" main-action="VIEW"/> --> - </condition> - <actions> - <property-map resource="BirtUiLabels" map-name="uiLabelMap" global="true" /> - <set field="contentEntityNameView" from-field="contentEntityNameView" default-value=""/> - </actions> - <widgets> - <screenlet title="${uiLabelMap.BirtSelectFlexibleReport}"> - <include-form location="component://birt/widget/birt/BirtForms.xml" name="ListPublishFlexibleReport" /> - </screenlet> - </widgets> - <fail-widgets> - <label style="h3">${uiLabelMap.BirtPermissionError}</label> - </fail-widgets> - </section> - </screen> - - <screen name="ListFlexibleReport"> - <section> - <actions> - <set field="tabButtonItem" value="ListFlexibleReport" /> - <set field="sortField" from-field="parameters.sortField" default-value="contentName"/> - <entity-and entity-name="Content" use-cache="true" list="contentTypeReport"> - <field-map field-name="contentTypeId" value="FLEXIBLE_REPORT"/> - <order-by field-name="${sortField}"/> - </entity-and> - <service service-name="genericBirtPermission" result-map="permCreateResult"> - <field-map field-name="mainAction" value="CREATE"/> - </service> - <set field="hasCreatePermission" from-field="permCreateResult.hasPermission"/> - - <service service-name="genericBirtPermission" result-map="permDeleteResult"> - <field-map field-name="mainAction" value="DELETE"/> - </service> - <set field="hasDeletePermission" from-field="permDeleteResult.hasPermission"/> - - <service service-name="genericBirtPermission" result-map="permUpdateResult"> - <field-map field-name="mainAction" value="UPDATE"/> - </service> - <set field="hasUpdatePermission" from-field="permUpdateResult.hasPermission"/> - </actions> - <widgets> - <decorator-screen name="CommonFlexibleBirtDecorator"> - <decorator-section name="body"> - <section> - <condition> - <or> - <if-has-permission permission="BIRT" action="_DELETE"/> - <if-has-permission permission="BIRT" action="_CREATE"/> - <if-has-permission permission="BIRT" action="_UPDATE"/> - </or> - </condition> - <widgets> - <container style="button-bar"> - <link target="SelectMasterFlexibleReport" text="${uiLabelMap.BirtFlexibleReportGeneration}" style="buttontext create"/> - </container> - <screenlet title="${uiLabelMap.BirtFlexibleReportManagement}"> - <section> - <condition> - <not><if-empty field="contentTypeReport"/></not> - </condition> - <widgets> - <include-form location="component://birt/widget/birt/BirtForms.xml" name="ListFlexibleReport" /> - </widgets> - <fail-widgets> - <label text="${uiLabelMap.BirtNoKnownFlexibleReport}"/> - </fail-widgets> - </section> - </screenlet> - </widgets> - <fail-widgets> - <label style="h3">${uiLabelMap.BirtPermissionError}</label> - </fail-widgets> - </section> - </decorator-section> - </decorator-screen> - </widgets> - </section> - </screen> - - <screen name="CreateFlexibleReport"> - <section> - <actions> - <set field="tabButtonItem" value="SelectMasterFlexibleReport" /> - </actions> - <widgets> - <decorator-screen name="CommonFlexibleBirtDecorator"> - <decorator-section name="body"> - <section> - <condition> - <if-has-permission permission="BIRT" action="_CREATE"/> - </condition> - <widgets> - <screenlet title="${uiLabelMap.BirtSelectMasterFlexibleReport}"> - <include-form location="component://birt/widget/birt/BirtForms.xml" name="CreateFlexibleReport" /> - </screenlet> - </widgets> - <fail-widgets> - <label style="h3">${uiLabelMap.BirtPermissionError}</label> - </fail-widgets> - </section> - </decorator-section> - </decorator-screen> - </widgets> - </section> - </screen> - <screen name="EditFlexibleReport"> - <section> - <actions> - <set field="tabButtonItem" value="manageReport" /> - <set field="contentId" from-field="parameters.reportContentId" default-value="${parameters.contentId}"/> - <entity-one entity-name="Content" value-field="content"/> - </actions> - <widgets> - <decorator-screen name="CommonFlexibleBirtDecorator"> - <decorator-section name="body"> - <section> - <condition> - <or> - <if-has-permission permission="BIRT" action="_CREATE"/> - <if-has-permission permission="BIRT" action="_UPDATE"/> - </or> - </condition> - <widgets> - <container id="edit-column" style="lefthalf"> - <screenlet title="${uiLabelMap.BirtEditFlexibleReport}"> - <label style="h2">${uiLabelMap.BirtFlexibleReportInformation}</label> - <include-form name="EditFlexibleReport" location="component://birt/widget/birt/BirtForms.xml"/> - <label style="h2">${uiLabelMap.BirtUploadRptDesign}</label> - <include-form name="UploadRptDesign" location="component://birt/widget/birt/BirtForms.xml" /> - <label style="h2">${uiLabelMap.overrideFilters}</label> - <include-form name="EditFlexibleReportSearchForm" location="component://birt/widget/birt/BirtForms.xml"/> - </screenlet> - </container> - <container id="preview-column" style="righthalf"> - <include-screen name="PreviewReportSearchForm"/> - </container> - </widgets> - <fail-widgets> - <label style="h3">${uiLabelMap.BirtPermissionError}</label> - </fail-widgets> - </section> - </decorator-section> - </decorator-screen> - </widgets> - </section> - </screen> - - <screen name="DisplayFlexibleReportSearchForm"> - <section> - <widgets> - <decorator-screen name="CommonFlexibleBirtDecorator"> - <decorator-section name="body"> - <include-screen name="PreviewReportSearchForm"/> - </decorator-section> - </decorator-screen> - </widgets> - </section> - </screen> - - <screen name="PreviewReportSearchForm"> - <section> - <actions> - <entity-one entity-name="Content" value-field="content" use-cache="true"/> - </actions> - <widgets> - <decorator-screen name="CommonBirtMinimalDecorator" location="${parameters.mainDecoratorLocation}"> - <decorator-section name="body"> - <screenlet title="${uiLabelMap.CommonPreview}" id="content-form-preview"> - <content content-id="${content.contentId}"/> - </screenlet> - </decorator-section> - </decorator-screen> - </widgets> - </section> - </screen> -</screens> +<?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"/> + <set field="subcomponentMenuName" from-field="subcomponentMenuName" default-value="BirtTabBar" /> + <set field="subcomponentMenuLocation" from-field="subcomponentMenuLocation" default-value="component://birt/widget/birt/BirtMenus.xml" /> + </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="${subcomponentMenuName}" location="${subcomponentMenuLocation}"/> + </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="CommonBirtMinimalDecorator"> + <section> + <actions> + <property-map resource="BirtUiLabels" map-name="uiLabelMap" global="true"/> + <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/> + </actions> + <widgets> + <decorator-section-include name="body"/> + </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 name="EditMail" location="component://birt/widget/birt/BirtForms.xml"/> + </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> + + <!--=========================--> + <!-- Flexible Birt Screen --> + <!--=========================--> + <screen name="CommonFlexibleBirtDecorator"> + <section> + <actions> + <set field="subcomponentMenuLocation" value="component://birt/widget/birt/BirtMenus.xml"/> + <set field="subcomponentMenuName" value="FlexibleBirtTabBar"/> + </actions> + <widgets> + <decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <decorator-section-include name="body"/> + </decorator-section> + </decorator-screen> + + </widgets> + </section> + </screen> + <screen name="UseFlexibleReport"> + <section> + <actions> + <set field="tabButtonItem" value="UseFlexibleReport" /> + </actions> + <widgets> + <decorator-screen name="CommonFlexibleBirtDecorator"> + <decorator-section name="body"> + <section> + <condition> + <if-has-permission permission="BIRT" action="_VIEW"/> + </condition> + <widgets> + <include-screen name="SelectFlexibleReport"/> + </widgets> + <fail-widgets> + <label style="h3">${uiLabelMap.BirtPermissionError}</label> + </fail-widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="SelectFlexibleReport"> + <section> + <condition> + <if-has-permission permission="BIRT" action="_VIEW"/> +<!-- <if-service-permission service-name="genericBirtPermission" main-action="VIEW"/> --> + </condition> + <actions> + <property-map resource="BirtUiLabels" map-name="uiLabelMap" global="true" /> + <set field="contentEntityNameView" from-field="contentEntityNameView" default-value=""/> + </actions> + <widgets> + <screenlet title="${uiLabelMap.BirtSelectFlexibleReport}"> + <include-form location="component://birt/widget/birt/BirtForms.xml" name="ListPublishFlexibleReport" /> + </screenlet> + </widgets> + <fail-widgets> + <label style="h3">${uiLabelMap.BirtPermissionError}</label> + </fail-widgets> + </section> + </screen> + + <screen name="ListFlexibleReport"> + <section> + <actions> + <set field="tabButtonItem" value="ListFlexibleReport" /> + <set field="sortField" from-field="parameters.sortField" default-value="contentName"/> + <entity-and entity-name="Content" use-cache="true" list="contentTypeReport"> + <field-map field-name="contentTypeId" value="FLEXIBLE_REPORT"/> + <order-by field-name="${sortField}"/> + </entity-and> + <service service-name="genericBirtPermission" result-map="permCreateResult"> + <field-map field-name="mainAction" value="CREATE"/> + </service> + <set field="hasCreatePermission" from-field="permCreateResult.hasPermission"/> + + <service service-name="genericBirtPermission" result-map="permDeleteResult"> + <field-map field-name="mainAction" value="DELETE"/> + </service> + <set field="hasDeletePermission" from-field="permDeleteResult.hasPermission"/> + + <service service-name="genericBirtPermission" result-map="permUpdateResult"> + <field-map field-name="mainAction" value="UPDATE"/> + </service> + <set field="hasUpdatePermission" from-field="permUpdateResult.hasPermission"/> + </actions> + <widgets> + <decorator-screen name="CommonFlexibleBirtDecorator"> + <decorator-section name="body"> + <section> + <condition> + <or> + <if-has-permission permission="BIRT" action="_DELETE"/> + <if-has-permission permission="BIRT" action="_CREATE"/> + <if-has-permission permission="BIRT" action="_UPDATE"/> + </or> + </condition> + <widgets> + <container style="button-bar"> + <link target="SelectMasterFlexibleReport" text="${uiLabelMap.BirtFlexibleReportGeneration}" style="buttontext create"/> + </container> + <screenlet title="${uiLabelMap.BirtFlexibleReportManagement}"> + <section> + <condition> + <not><if-empty field="contentTypeReport"/></not> + </condition> + <widgets> + <include-form location="component://birt/widget/birt/BirtForms.xml" name="ListFlexibleReport" /> + </widgets> + <fail-widgets> + <label text="${uiLabelMap.BirtNoKnownFlexibleReport}"/> + </fail-widgets> + </section> + </screenlet> + </widgets> + <fail-widgets> + <label style="h3">${uiLabelMap.BirtPermissionError}</label> + </fail-widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="CreateFlexibleReport"> + <section> + <actions> + <set field="tabButtonItem" value="SelectMasterFlexibleReport" /> + </actions> + <widgets> + <decorator-screen name="CommonFlexibleBirtDecorator"> + <decorator-section name="body"> + <section> + <condition> + <if-has-permission permission="BIRT" action="_CREATE"/> + </condition> + <widgets> + <screenlet title="${uiLabelMap.BirtSelectMasterFlexibleReport}"> + <include-form location="component://birt/widget/birt/BirtForms.xml" name="CreateFlexibleReport" /> + </screenlet> + </widgets> + <fail-widgets> + <label style="h3">${uiLabelMap.BirtPermissionError}</label> + </fail-widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="EditFlexibleReport"> + <section> + <actions> + <set field="tabButtonItem" value="manageReport" /> + <set field="contentId" from-field="parameters.reportContentId" default-value="${parameters.contentId}"/> + <entity-one entity-name="Content" value-field="content"/> + </actions> + <widgets> + <decorator-screen name="CommonFlexibleBirtDecorator"> + <decorator-section name="body"> + <section> + <condition> + <or> + <if-has-permission permission="BIRT" action="_CREATE"/> + <if-has-permission permission="BIRT" action="_UPDATE"/> + </or> + </condition> + <widgets> + <container id="edit-column" style="lefthalf"> + <screenlet title="${uiLabelMap.BirtEditFlexibleReport}"> + <label style="h2">${uiLabelMap.BirtFlexibleReportInformation}</label> + <include-form name="EditFlexibleReport" location="component://birt/widget/birt/BirtForms.xml"/> + <label style="h2">${uiLabelMap.BirtUploadRptDesign}</label> + <include-form name="UploadRptDesign" location="component://birt/widget/birt/BirtForms.xml" /> + <label style="h2">${uiLabelMap.BirtOverrideFilters}</label> + <include-form name="EditFlexibleReportSearchForm" location="component://birt/widget/birt/BirtForms.xml"/> + </screenlet> + </container> + <container id="preview-column" style="righthalf"> + <include-screen name="PreviewReportSearchForm"/> + </container> + </widgets> + <fail-widgets> + <label style="h3">${uiLabelMap.BirtPermissionError}</label> + </fail-widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="DisplayFlexibleReportSearchForm"> + <section> + <widgets> + <decorator-screen name="CommonFlexibleBirtDecorator"> + <decorator-section name="body"> + <include-screen name="PreviewReportSearchForm"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="PreviewReportSearchForm"> + <section> + <actions> + <entity-one entity-name="Content" value-field="content" use-cache="true"/> + </actions> + <widgets> + <decorator-screen name="CommonBirtMinimalDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <screenlet title="${uiLabelMap.CommonPreview}" id="content-form-preview"> + <content content-id="${content.contentId}"/> + </screenlet> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> +</screens> |
Free forum by Nabble | Edit this page |