OFBiz
  1. OFBiz
  2. OFBIZ-4467

Improve auto-fields-entity (select include field and auto drop-down)

    Details

    • Type: Improvement Improvement
    • Status: Patch Available
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: Screen Widget Redesign, SVN trunk
    • Fix Version/s: None
    • Component/s: framework
    • Labels:
      None

      Description

      Hi
      Here are two improvments to complete the element 'auto-fields-entity' of forms.

      The first one consists in adding one fields allowing to select which fields are include in the form (same way as what is made on the definitions of service):
      For example:
      <auto-fields-entity entity-name="Example" include="pk" default-field-type="display"/>
      => To display only the primary key fields of the Example entity

      <auto-fields-entity entity-name="Example" include="nonpk" default-field-type="edit">
      => To display only the non primary key fields of the Example entity

      <exclude field-name="longDescription"/>
      => To exclude one precise fields of an entity

      The second one consists in including for fields with relation a drop-down or a display entity according to EntityType

      Any comments are welcome

      1. OFBIZ-4467.patch
        16 kB
        Nicolas Malin
      2. OFBIZ-4467-example.patch
        3 kB
        Nicolas Malin
      3. OFBIZ-4467.png
        51 kB
        Nicolas Malin
      4. OFBIZ-4467.patch
        16 kB
        Nicolas Malin

        Issue Links

          Activity

          Hide
          Nicolas Malin added a comment -

          Update patch with better relation resolution :

          • drop-down is not allow to empty if relation is entity-entityType
          • use relation-field for drop-down
          • add xsd annotation
          Show
          Nicolas Malin added a comment - Update patch with better relation resolution : drop-down is not allow to empty if relation is entity-entityType use relation-field for drop-down add xsd annotation
          Hide
          Nicolas Malin added a comment -

          Miss Grant license to ASF on OFBIZ-4467.patch.

          The OFBIZ-4467-example.patch use only to check improvement

          Show
          Nicolas Malin added a comment - Miss Grant license to ASF on OFBIZ-4467 .patch. The OFBIZ-4467 -example.patch use only to check improvement
          Hide
          Jacques Le Roux added a comment -

          Hi Nicolas, I tried your patch but it does no longer apply on trunk.

          Show
          Jacques Le Roux added a comment - Hi Nicolas, I tried your patch but it does no longer apply on trunk.
          Hide
          Nicolas Malin added a comment -

          Hi Jacques, I will recreate the patch (I finish it) on last trunk and make tests (to do ).

          Nicolas

          Show
          Nicolas Malin added a comment - Hi Jacques, I will recreate the patch (I finish it) on last trunk and make tests (to do ). Nicolas
          Hide
          Nicolas Malin added a comment -

          Jacques, this issue use same xml element include by OFBIZ-4472. I prefer wait the OFBIZ-4472 evolution before resynchronize patch with trunk

          Show
          Nicolas Malin added a comment - Jacques, this issue use same xml element include by OFBIZ-4472 . I prefer wait the OFBIZ-4472 evolution before resynchronize patch with trunk
          Hide
          Jacques Le Roux added a comment -

          Hi Nicolas,

          When you get a chance please recreate the patch, thanks.

          Show
          Jacques Le Roux added a comment - Hi Nicolas, When you get a chance please recreate the patch, thanks.

            People

            • Assignee:
              Unassigned
              Reporter:
              Nicolas Malin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development