adityadash03 / pcfcolorfuloptionsetButton

GNU General Public License v3.0
6 stars 8 forks source link

Control not refreshing after Save event #8

Open Edwin-VC opened 1 year ago

Edwin-VC commented 1 year ago

Hi @adityadash03. Thank you for providing this control.

We found one issue we would like to address: When the underlying data is updated using a Synchronous workflow, the control does not refresh upon the save-event. The control will show the new value upon a Form refresh.

We are using the control in a Model Driven form: Server version: 9.2.22105.00198 Client version: 1.4.5014-2210.5

We did find another PCF control with similar functionality (ORBIS.ColorfulOptionset) that does refresh as expected. But we like 'your' control better so hopefully that can be resolved.

Thank you in advance. Let me know if I can provide any additional information.

ce0th commented 11 months ago

Put these lines from the the init() to the updateView() method: image

Reference: https://stackoverflow.com/questions/63587800/the-value-of-a-pcf-control-isnt-always-loaded-is-it-a-race-condition-or-is-it