[
https://issues.apache.org/jira/browse/OFBIZ-4687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206384#comment-13206384
]
Olivier Heintz commented on OFBIZ-4687:
---------------------------------------
it's very similar, I used it in two case :
a) when code seem more clear if it's in script, but in this case "more clear"
is only a personal point of view
b) when script move or change more than 1 field
{code}
<set field="displayFields" value="[facilityName]"/>
<script value="if ('_NA_'.equals(parameters.ownerPartyId)){
if ('N'.equals(parameters.showAll)) {
parameters.put('ownerPartyId',' ');
} else {
parameters.remove('ownerPartyId');
parameters.put('facilityTypeId','JuryLoc');
}}"/>
{code}
it's possible to do it with <set> but, in this case the set field name will be
not used.
It's a small enhancement, and I think it does not introduce some complexity in
code and for user, be able to do same thing by two ways will not create problem
or question.
> Add attributes value and type for script tag in screen, form. Default type is
> groovy and value can be a little script.
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: OFBIZ-4687
> URL: https://issues.apache.org/jira/browse/OFBIZ-4687
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Affects Versions: SVN trunk
> Reporter: Olivier Heintz
> Priority: Minor
> Attachments: OFBIZ-4687.patch
>
>
> this enhancement can be usefull for branch 20120209RemoveBsh
> and for trunk, to avoid very small groovy file
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira