svn commit: r1747464 - in /ofbiz/branches/release14.12/applications: humanres/widget/forms/PartyResumeForms.xml party/widget/partymgr/PartyScreens.xml

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

svn commit: r1747464 - in /ofbiz/branches/release14.12/applications: humanres/widget/forms/PartyResumeForms.xml party/widget/partymgr/PartyScreens.xml

pgil
Author: pgil
Date: Wed Jun  8 22:40:38 2016
New Revision: 1747464

URL: http://svn.apache.org/viewvc?rev=1747464&view=rev
Log:
OFBIZ-7205 : Create party resume not working. ResumeId doesn't have text field to enter

Fix the partyResume entity-one for EditPartyResumes screen
Fix use-when condition on partyId and submit fields in EditPartyResume form
Fix the edit and delete link to allow modification and refresh with partyId in context.


Thanks Amardeep Singh Jhajj for reporting the bug

Thanks Amardeep, Floriant, Pierre and Jacques for your analyse and input

Modified:
    ofbiz/branches/release14.12/applications/humanres/widget/forms/PartyResumeForms.xml
    ofbiz/branches/release14.12/applications/party/widget/partymgr/PartyScreens.xml

Modified: ofbiz/branches/release14.12/applications/humanres/widget/forms/PartyResumeForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release14.12/applications/humanres/widget/forms/PartyResumeForms.xml?rev=1747464&r1=1747463&r2=1747464&view=diff
==============================================================================
--- ofbiz/branches/release14.12/applications/humanres/widget/forms/PartyResumeForms.xml (original)
+++ ofbiz/branches/release14.12/applications/humanres/widget/forms/PartyResumeForms.xml Wed Jun  8 22:40:38 2016
@@ -32,7 +32,7 @@ under the License.
         odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
         <actions>
             <service service-name="performFind" result-map="result" result-map-list="listIt">
-                <field-map field-name="inputFields" from-field="partyResumeCtx"/>
+                <field-map field-name="inputFields" from-field="parameters"/>
                 <field-map field-name="entityName" value="PartyResume"/>
                 <field-map field-name="orderBy" value="resumeId"/>
                 <field-map field-name="viewIndex" from-field="viewIndex"/>
@@ -41,8 +41,9 @@ under the License.
         </actions>
         <auto-fields-entity entity-name="PartyResume" default-field-type="display"/>
         <field name="resumeId" widget-style="linktext">
-            <hyperlink also-hidden="false" description="${resumeId}" target="EditPartyResume">
+            <hyperlink also-hidden="false" description="${resumeId}" target="EditPartyResumes">
                 <parameter param-name="resumeId"/>
+                <parameter param-name="partyId"/>
             </hyperlink>
         </field>
         <field name="partyId" title="${uiLabelMap.PartyPartyId}">
@@ -54,7 +55,8 @@ under the License.
        </field>
        <field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
            <hyperlink target="deletePartyResume" description="${uiLabelMap.CommonDelete}" also-hidden="false">
-                <parameter param-name="resumeId"/>
+               <parameter param-name="resumeId"/>
+               <parameter param-name="partyId"/>
             </hyperlink>
        </field>
     </form>
@@ -64,11 +66,11 @@ under the License.
         <field name="resumeId" use-when="partyResume!=null" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
         <field name="resumeId" use-when="partyResume==null" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text/></field>
         <field name="contentId"><lookup target-form-name="LookupContent"/></field>
-        <field name="partyId" use-when="partyResume!=null&amp;&amp;partyId!=null" title="${uiLabelMap.FormFieldTitle_partyId}"><hidden/></field>
-        <field name="partyId" use-when="partyResume==null&amp;&amp;partyId==null" title="${uiLabelMap.FormFieldTitle_partyId}"><lookup target-form-name="LookupPartyName"/></field>
+        <field name="partyId" use-when="partyId==null" title="${uiLabelMap.FormFieldTitle_partyId}"><lookup target-form-name="LookupPartyName"/></field>
+        <field name="partyId" use-when="partyId!=null" title="${uiLabelMap.FormFieldTitle_partyId}"><hidden/></field>
         <field name="resumeDate"><date-time/></field>
         <field name="resumeText"><text/></field>
-        <field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="smallSubmit"><submit button-type="button"/></field>
-        <field name="submitButton" use-when="resumeId!=null" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>
+        <field name="submitButton" use-when="partyResume==null" title="${uiLabelMap.CommonCreate}" widget-style="smallSubmit"><submit button-type="button"/></field>
+        <field name="submitButton" use-when="partyResume!=null" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>
     </form>
 </forms>

Modified: ofbiz/branches/release14.12/applications/party/widget/partymgr/PartyScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release14.12/applications/party/widget/partymgr/PartyScreens.xml?rev=1747464&r1=1747463&r2=1747464&view=diff
==============================================================================
--- ofbiz/branches/release14.12/applications/party/widget/partymgr/PartyScreens.xml (original)
+++ ofbiz/branches/release14.12/applications/party/widget/partymgr/PartyScreens.xml Wed Jun  8 22:40:38 2016
@@ -917,9 +917,9 @@ under the License.
                 <set field="titleProperty" value="HumanResEditPartyResume"/>
                 <set field="headerItem" value="find"/>
                 <set field="tabButtonItem" value="EditPartyResumes"/>
-                <set field="partyId" from-field="parameters.partyId"/>
                 <set field="resumeId" from-field="parameters.resumeId"/>
-                <set field="partyResumeCtx.resumeId" from-field="parameters.resumeId"/>
+                <set field="partyId" from-field="parameters.partyId"/>
+                <entity-one entity-name="PartyResume" value-field="partyResume"/>
             </actions>
             <widgets>
                 <decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">