[jira] [Updated] (OFBIZ-4379) Get first from list tag in screen's and form's action tag.

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

[jira] [Updated] (OFBIZ-4379) Get first from list tag in screen's and form's action tag.

Nicolas Malin (Jira)

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

Sharan Foga updated OFBIZ-4379:
-------------------------------
    Sprint: Bug Crush Event - 21/2/2015

> Get first from list tag in screen's and form's action tag.
> ----------------------------------------------------------
>
>                 Key: OFBIZ-4379
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4379
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Ankit Jain
>            Priority: Minor
>         Attachments: OFBIZ-4379.patch
>
>
> In most of the cases we need to get first record from a list in screen and form widgets then we have to do something like this:
> for eg:
> <set field="websiteContent" value="${groovy: org.ofbiz.entity.util.EntityUtil.getFirst(websiteContentList);}"/>
> Instead of using like this my idea is to add a tag like <first-from-list/> in Screen & Form widget's action tag, so one can easily get first record from a list.



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