[jira] [Updated] (OFBIZ-6980) Refactor Sub Screen - Create Quote

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-6980) Refactor Sub Screen - Create Quote

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-6980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

james yong updated OFBIZ-6980:
------------------------------
    Attachment: OFBIZ-6980-CreateQuote.patch

The patch works, but there are 2 issues to note:
1. entity-options for dropdown isn't working for the Quote Type and Sales Channel fields, without adding the description attribute.

{code:xml}
...
<field name="quoteTypeId" title="${uiLabelMap.OrderOrderQuoteTypeId}">
                <drop-down allow-empty="true">
                    <entity-options entity-name="QuoteType" key-field-name="quoteTypeId" description="${description}">
                        <entity-order-by field-name="description"/>
                    </entity-options>
                </drop-down>
            </field>
            <field name="salesChannelEnumId" title="${uiLabelMap.OrderSalesChannel}">
                <drop-down allow-empty="true">
                    <entity-options entity-name="Enumeration" key-field-name="enumId" description="${description}">
                        <entity-constraint name="enumTypeId" value="ORDER_SALES_CHANNEL"/>
                        <entity-order-by field-name="sequenceId"/>
                    </entity-options>
                </drop-down>
            </field>
---
{code}

2. Controller entries are not included; I couldn't get it to work after moving them into QuoteEditScreen.xml. I done something like this:
{code:xml}
...
  <site-conf xmlns="http://ofbiz.apache.org/Site-Conf"
             xsi:schemaLocation="http://ofbiz.apache.org/Site-Conf http://ofbiz.apache.org/dtds/site-conf-v2.xsd">

    <include location="component://common/webcommon/WEB-INF/common-controller.xml"/>
    <include location="component://commonext/webapp/WEB-INF/controller.xml"/>
    <include location="component://content/webapp/content/WEB-INF/controller.xml"/>
   
    <request-map uri="EditQuote"><security https="true" auth="true"/><response name="success" type="view" value="EditQuote"/></request-map>
    <request-map uri="createQuote">
        <security https="true" auth="true"/>
        <event type="service" path="" invoke="createQuote"/>
        <response name="success" type="view" value="ViewQuote"/>
        <response name="error" type="view" value="EditQuote"/>
    </request-map>
    <request-map uri="updateQuote">
        <security https="true" auth="true"/>
        <event type="service" path="" invoke="updateQuote"/>
        <response name="success" type="view" value="ViewQuote"/>
        <response name="error" type="view" value="EditQuote"/>
    </request-map>

    <view-map name="EditQuote" type="screen" page="component://order/widget/ordermgr/QuoteEditScreen.xml#EditQuote"/>

  </site-conf>

...
{code}

> Refactor Sub Screen - Create Quote
> ----------------------------------
>
>                 Key: OFBIZ-6980
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6980
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: order
>    Affects Versions: Trunk
>            Reporter: james yong
>            Priority: Minor
>         Attachments: OFBIZ-6980-CreateQuote.patch
>
>
> A new file QuoteEditScreen.xml for the EditQuote subscreen using Compound Screen Widget feature



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)