You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mo...@apache.org on 2008/05/27 10:58:52 UTC

svn commit: r660435 - /ofbiz/trunk/applications/marketing/widget/sfa/forms/OpportunityForms.xml

Author: mor
Date: Tue May 27 01:58:51 2008
New Revision: 660435

URL: http://svn.apache.org/viewvc?rev=660435&view=rev
Log:
Looking at how createOpportunity service is implemented, user should be given the option to enter salesOpportunityId.

Modified:
    ofbiz/trunk/applications/marketing/widget/sfa/forms/OpportunityForms.xml

Modified: ofbiz/trunk/applications/marketing/widget/sfa/forms/OpportunityForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/widget/sfa/forms/OpportunityForms.xml?rev=660435&r1=660434&r2=660435&view=diff
==============================================================================
--- ofbiz/trunk/applications/marketing/widget/sfa/forms/OpportunityForms.xml (original)
+++ ofbiz/trunk/applications/marketing/widget/sfa/forms/OpportunityForms.xml Tue May 27 01:58:51 2008
@@ -64,10 +64,14 @@
         </field>
     </form>
     
-    <form name="EditOpportunity" type="single" target="createOpportunity" default-map-name="salesOpportunity"
+    <form name="EditOpportunity" type="single" target="updateOpportunity" default-map-name="salesOpportunity"
         header-row-style="header-row" default-table-style="basic-table">
-        <alt-target use-when="salesOpportunity!=null" target="updateOpportunity"/>
-        <field name="salesOpportunityId" use-when="salesOpportunity!=null"><display/></field>
+        <alt-target use-when="salesOpportunity==null" target="createOpportunity"/>
+        <auto-fields-service service-name="createOpportunity"/>
+        <field use-when="salesOpportunity!=null" name="salesOpportunityId" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
+        <field use-when="salesOpportunity==null&amp;&amp;salesOpportunityId==null" name="salesOpportunityId"><text/></field>
+        <field use-when="salesOpportunity==null&amp;&amp;salesOpportunityId!=null" name="salesOpportunityId" tooltip="${uiLabelMap.CommonCannotBeFound}: [${salesOpportunityId}]"><display/></field>
+                
         <field name="opportunityName" title="${uiLabelMap.SfaOpportunityName}" widget-style="required"><text size="30"/></field>
         <field name="initialAccount" title="${uiLabelMap.SfaInitialAccount}" widget-style="required"><lookup target-form-name="LookupPartyName"/></field>
         <field name="typeEnumId" title="${uiLabelMap.SfaType}"></field>