Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-4379

Get first from list tag in screen's and form's action tag.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • Trunk, Upcoming Branch
    • None
    • framework
    • None
    • Bug Crush Event - 21/2/2015

    Description

      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.

      Attachments

        1. OFBIZ-4379.patch
          8 kB
          Ankit Jain

        Activity

          People

            Unassigned Unassigned
            ankit.jain Ankit Jain
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: