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

getDependentDropdownValues doesn't work with services using filterByDate

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 17.12.03, Trunk
    • Fix Version/s: None
    • Component/s: themes
    • Labels:
      None

      Description

      When a service is using a query function that incorporates the .filterbyDate option on the query, there is no way to get such filtered results back to the drop-down field.

       

      The JS function allows for multiple input parameters to be passed according to inline documentation:

      // paramField   = parent drop-down field Id (mainId)
      // targetField  = dependent drop-down field Id (dependentId)
      and
      // if there are multiple paramKeys (because of multiple dependencies) then create 
      // an array with multiple data information

      However, when having definitions in a screen for getDependentDropdownValues  like:

       

      <set field="paramKey" value="roleTypeId,fromDate"/>
      <set field="paramField" value="roleTypeId,fromDate"/>
      

      only the first of the list gets used.

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pierresmits Pierre Smits
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: