eclipse-scout / scout.rt

https://www.eclipse.org/scout/
Eclipse Public License 2.0
34 stars 39 forks source link

SmartField: add method to update lookupRow without changing value #1210

Open bschwarzent opened 2 weeks ago

bschwarzent commented 2 weeks ago

If the lookup call changes dynamically (e.g. language switch, or singular/plural) the currently displayed lookup row in a SmartField might need to be updated. This can be achieved by setting the value to null and the back to the previous value. However, this triggers property change events for the 'value' property, which might have unwanted effects. To only update the cached 'lookupRow' from the current value without changing the value itself, a new method updateLookupRow() is provided. It re-resolves the lookup row and updates the display text accordingly.

369273