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

Add auto-parameters-form option to on-event-update-area link in xml form

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Implemented
    • Upcoming Branch
    • Upcoming Branch
    • framework
    • None
    • Patch

    Description

      As we have an auto-parameters-entity and an auto-parameters-service option in xml forms on-event-update-area tags, it could be useful to have an auto-parameters-form option that will propagate current form fields as parameters to the paginate or submit action link (for instance in modal "tunnel" processes) 
                
         Currently, if you want to propagate the parameters of a form to a zone that is refreshed in ajax after the submit you have to write specific javascript code or to return all the parameters sent to the request through a service as OUT parameters and/or redirect-parameter.
      This feature will add automatically the form parameters on the generated on-event-update-area link

          To test, apply the OFBIZ_12684_Example.patch on a trunk environment (with demo data)  then go to the following page and click on the "edit" button on line Web Store Warehouse: https://localhost:8443/catalog/control/ProductStoreFacilities?productStoreId=9000
      The validation of the edition form should refresh correctly the list

      Attachments

        1. auto-parameters-form.png
          313 kB
          Jacques Le Roux
        2. Image 002.png
          51 kB
          Jacques Le Roux
        3. image-2022-08-31-15-27-40-474.png
          74 kB
          Mekika Leila
        4. Image3.png
          21 kB
          Jacques Le Roux
        5. OFBIZ-12684_Example.patch
          2 kB
          Mekika Leila
        6. OFBIZ-12684.patch
          8 kB
          Mekika Leila

        Activity

          People

            jleroux Jacques Le Roux
            mleila Mekika Leila
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: