Fix Version/s: None
We were trying to update a field in a component under a fieldgroup form, where the component is expecting to get options list changes based on another field but even though the reducer change the state, the list doesn't get updated.
When it comes to changing a value, the reducer and the render change it without problem. Seems that is only the ListInputField component with updated options that exposed this problem.
Please, contact Dean Naji for mor example on how this is failing and how we were expecting to be using it. Thanks.
Dean Naji Did you follow-up this with Tatiana? Can you or someone update the ticket so we know what needs to be done if any actions remain?
Yes, I think we are already done with this. Thanks Tatiana Goldina.
The problem was found with Sofia Instrument, as the reducer function was not re-rendering the options. I think this was fixed. However, in Sofia we still not using the reducer function. We are still forcing the component to re-render.
The SOFIA application needs to be updated to use reducer. An IRSA ticket should be created to address it.
Dean Naji Please see FieldGroupWithMasterDependent in ExampleDialog.js for an example how the options in a list box can be changed using the reducer function. The important part is not to specify options in render() if you want to control them in reducer function.
To see a working example in Firefly, use http://localhost:8080/firefly/firefly-dev.html -> "Example Js Dialog" -> "Third" tab.