Project:
View Revisions: Issue #43784 | [ Back to Issue ] | ||
Summary | 0043784: OBMultiSelectorItem parameter values are not saved in the form | ||
Revision | 2020-04-21 12:33 by caristu | ||
Description | OBMultiSelectorItem parameter values are not saved in the form. This is because OBMultiSelectorItem extends CanvasItem and by default no value from the CanvasItem is be saved in the DynamicForm values. See[1]. This behavior causes that the selected values in the multiselector are never sent to the backend when a P&E grid is refreshed[2]. But the rest of parameter values are indeed being sent. [1] https://www.smartclient.com/smartclient-release/isomorphic/system/reference/?id=search%3DCanvasItem [^] [2] https://gitlab.com/openbravo/product/openbravo/-/blob/master/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js#L206 [^] |
||
Revision | 2020-04-21 12:29 by caristu | ||
Steps To Reproduce | 1) Install the following module: https://gitlab.com/openbravo/demo/org.openbravo.platform.features [^] 2) Apply the attached patch (gridAndMultipleSelector.diff) on that module which provides the functionality to reproduce the issue. 3) ant smartbuild -Dlocal=no 4) Open the "Process Definition test" window 5) Select a business partner with the SingleBP parameter and note that the grid is refreshed correctly filtering by the selected business partner 6) Use the MultiBP parameter and select several business partners. Note that the grid is NOT refreshed filtering by the selected business partners. 6A) Check the SimpleOrderHQLTransformer.java class and note that the filtering by MultiBP is not implemented because the selected values are not being received. |
||
Revision | 2020-04-21 12:21 by caristu | ||
Description | multiselector parameter values are not saved in the form. This is because OBMultiSelectorItem extends CanvasItem and by default no value from the CanvasItem is be saved in the DynamicForm values. See[1]. This behavior causes that the selected values in the multiselector are never sent to the backend when a P&E grid is refreshed[2]. But the rest of parameter values are indeed being sent. [1] https://www.smartclient.com/smartclient-release/isomorphic/system/reference/?id=search%3DCanvasItem [^] [2] https://gitlab.com/openbravo/product/openbravo/-/blob/master/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js#L206 [^] |
||
Revision | 2020-04-21 12:21 by caristu | ||
Steps To Reproduce | 1) Install the following module: https://code.openbravo.com/erp/mods/org.openbravo.platform.features [^] 2) Apply the attached patch (gridAndMultipleSelector.diff) on that module which provides the functionality to reproduce the issue. 3) ant smartbuild -Dlocal=no 4) Open the "Process Definition test" window 5) Select a business partner with the SingleBP parameter and note that the grid is refreshed correctly filtering by the selected business partner 6) Use the MultiBP parameter and select several business partners. Note that the grid is NOT refreshed filtering by the selected business partners. 6A) Check the SimpleOrderHQLTransformer.java class and note that the filtering by MultiBP is not implemented because the selected values are not being received. |
||
Revision | 2020-04-21 12:21 by caristu | ||
Description | multiselector parameter values are not saved in the form. This is because OBMultiSelectorItem extends CanvasItem and by default no value from the CanvasItem is be saved in the DynamicForm values. See[1]. This behavior causes that the selected values in the multiselector are never sent to the backend when a P&E grid is refreshed[2]. But the rest of parameter values are indeed being sent. [1] https://www.smartclient.com/smartclient-release/isomorphic/system/reference/?id=search%3DCanvasItem [^] [2] https://gitlab.com/openbravo/product/openbravo/-/blob/master/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js#L206 [^] |
||
Revision | 2020-04-21 06:44 by caristu | ||
Steps To Reproduce | setup BV envirronement, apply the diff, got to the product CVS exporter window, select several suppliers in the multi selector on top left of the screen You should see that the fucntion call does not receive parameters. |
||
Revision | 2020-04-21 06:44 by caristu | ||
Description | multiselector reference as non grid parameter data is not loaded in the HqlQueryTransformer transformHqlQuery parameters When we try to add a multi selector paremter to a custom process definition, we can't access the resulting data in the queries parameters. t does work when using a single selector parameter. Some videos to see the issue are there : https://drive.google.com/file/d/1w-ovbmKTaWYK2qpoaCry39NAcRGJg9nm/view?usp=sharing [^] https://drive.google.com/open?id=15nmg3HT6ugBTcFWuw7mELQL9WCaDv0nG [^] Issue is happening here : https://gitlab.com/obcustomers/BV/com.openbravo.france.bv.exporter [^] We also have one diff to apply on this module in file section |
Copyright © 2000 - 2009 MantisBT Group |