OFBiz
  1. OFBiz
  2. OFBIZ-4472

New elements auto-parameters-[entity/service] for link/hyperlink

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Implemented
    • Affects Version/s: Screen Widget Redesign, Trunk
    • Fix Version/s: Trunk
    • Component/s: framework
    • Labels:
      None

      Description

      When you want edit/remove an entity from link call it's needed to give all pk on parameter element as like :

      <field name="deleteLink">
      <hyperlink target="example_deleteExampleFeatureAppl">
      <parameter param-name="exampleId"/>
      <parameter param-name="exampleFeatureId"/>
      <parameter param-name="fromDate"/>
      <hyperlink/>
      </field>

      To simplify, I introduce auto-parameters-entity like this :

      <field name="deleteLink">
      <hyperlink target="example_deleteExampleFeatureAppl">
      <auto-parameters-entity entity-name="ExampleFeatureAppl"/>
      <hyperlink/>
      </field>

      or

      <form name="ListExampleFeatureAppls" type="list" default-entity-name="ExampleFeatureAppl">
      <field name="deleteLink">
      <hyperlink target="example_deleteExampleFeatureAppl">
      <auto-parameters-entity/>
      <hyperlink/>
      </field>

      This method is inspired from auto-fields-entity and I homogenized on widget renderer screen (link), menu (link) and form (hyperlink, sub-link)

      Any comments are welcome

      1. OFBIZ-4472.patch
        21 kB
        Nicolas Malin
      2. OFBIZ-4472.patch
        24 kB
        Nicolas Malin
      3. OFBIZ-4472.patch
        25 kB
        Nicolas Malin
      4. OFBIZ-4472.patch
        24 kB
        Nicolas Malin
      5. OFBIZ-4472.patch
        34 kB
        Nicolas Malin
      6. OFBIZ-4472.patch
        34 kB
        Nicolas Malin

        Issue Links

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development