changed imageTwoUrl to be hidden from list display; changed create method so that fromDate does not effect the generation of the linkSeqId; was causing the key to be 00001 everytime due to the unique fromDate

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@530480 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Zeneski
2007-04-19 16:41:47 +00:00
parent 20232002c7
commit c9d2eeaea5
2 changed files with 10 additions and 3 deletions
@@ -667,14 +667,20 @@ under the License.
<!-- ProductCategoryLink Create/Update/Delete"-->
<simple-method method-name="createProductCategoryLink" short-description="create a ProductCategoryLink">
<make-value entity-name="ProductCategoryLink" value-name="newEntity"/>
<set-pk-fields map-name="parameters" value-name="newEntity"/>
<set field="newEntity.productCategoryId" from-field="parameters.productCategoryId"/>
<!-- don't set the fromDate yet; let's get the seq ID first -->
<if-empty field-name="parameters.linkSeqId">
<make-next-seq-id value-name="newEntity" seq-field-name="linkSeqId"/> <!-- this finds the next sub-sequence ID -->
<set from-field="linkSeqId" field="newEntity.linkSeqId"/>
</if-empty>
</if-empty>
<!-- now set the rest of the PK fields (should just be fromDate now; unless linkSeqId is not empty -->
<set-pk-fields value-name="newEntity" map-name="parameters"/>
<if-empty field-name="newEntity.fromDate">
<now-timestamp-to-env env-name="newEntity.fromDate"/>
</if-empty>
<set-nonpk-fields map-name="parameters" value-name="newEntity"/>
<create-value value-name="newEntity"/>
</simple-method>
@@ -135,7 +135,8 @@ under the License.
<field name="detailText"><ignored/></field>
<field name="linkInfo"><ignored/></field>
<field name="detailSubScreen"><ignored/></field>
<field name="imageUrl"><ignored/></field>
<field name="imageUrl"><ignored/></field>
<field name="imageTwoUrl"><ignored/></field>
<field name="deleteLink" title="" widget-style="buttontext">
<hyperlink target="deleteProductCategoryLink?productCategoryId=${productCategoryId}&amp;linkSeqId=${linkSeqId}&amp;fromDate=${fromDate}"
description="${uiLabelMap.CommonDelete}" also-hidden="false"/>