OFBiz
  1. OFBiz
  2. OFBIZ-4518

add possibility to sort field at the end form on widget form

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Screen Widget Redesign, SVN trunk
    • Fix Version/s: SVN trunk
    • Component/s: framework
    • Labels:

      Description

      When you use sort-field, you reorder only the form begin or you need list all file if you want reordered the end form.

      Example

      <form>
      <field name="a"/>
      <field name="b"/>
      <field name="c"/>
      <field name="d"/>
      </form>

      If you want put c at the end :

      <form>
      <field name="a"/>
      <field name="b"/>
      <field name="c"/>
      <field name="d"/>
      <sort-order>
      <sort-field name="a"/>
      <sort-field name="b"/>
      <sort-field name="d"/>
      <sort-field name="c"/>
      </sort-order>
      </form>

      with the patch

      <form>
      <field name="a"/>
      <field name="b"/>
      <field name="c"/>
      <field name="d"/>
      <sort-order>
      <last-field name="c"/>
      </sort-order>
      </form>

      It's really usefull for inherited form when you adding new fields, you just use last-field on submit button.

      1. OFBIZ-4518.patch
        4 kB
        Nicolas Malin

        Activity

        Jacques Le Roux made changes -
        Status Patch Available [ 10002 ] Closed [ 6 ]
        Assignee Jacques Le Roux [ jacques.le.roux ]
        Fix Version/s SVN trunk [ 12311928 ]
        Resolution Fixed [ 1 ]
        Hide
        Jacques Le Roux added a comment -

        Thanks Nicolas,

        Your patch is in trunk at r1307784

        Show
        Jacques Le Roux added a comment - Thanks Nicolas, Your patch is in trunk at r1307784
        Jan le Roux committed 1307784 (2 files)
        Reviews: none

        A patch from Nicolas Malin "add possibility to sort field at the end form on widget form" https://issues.apache.org/jira/browse/OFBIZ-4518

        When you use sort-field, you reorder only the form begin or you need list all file if you want reordered the end form.

        Example

            <form>
            <field name="a"/>
            <field name="b"/>
            <field name="c"/>
            <field name="d"/>
            </form>

        If you want put c at the end :

            <form>
            <field name="a"/>
            <field name="b"/>
            <field name="c"/>
            <field name="d"/>
            <sort-order>
            <sort-field name="a"/>
            <sort-field name="b"/>
            <sort-field name="d"/>
            <sort-field name="c"/>
            </sort-order>
            </form>

        with the patch

            <form>
            <field name="a"/>
            <field name="b"/>
            <field name="c"/>
            <field name="d"/>
            <sort-order>
            <last-field name="c"/>
            </sort-order>
            </form>

        It's really useful for inherited forms when you adding new fields, you just use last-field for instance for submit button.

        Nicolas Malin made changes -
        Affects Version/s Screen Widget Redesign [ 12319143 ]
        Nicolas Malin made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Nicolas Malin made changes -
        Field Original Value New Value
        Attachment OFBIZ-4518.patch [ 12500851 ]
        Nicolas Malin created issue -

          People

          • Assignee:
            Jacques Le Roux
            Reporter:
            Nicolas Malin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 0.5h
              0.5h
              Remaining:
              Remaining Estimate - 0.5h
              0.5h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development