| Summary: | TableField, Organise Columns Form: Changing Visibility not working | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Matthias Zimmermann <zimmermann> |
| Component: | Scout | Assignee: | Oli Schmid <oliver.schmid> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | ken.lee |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| See Also: | https://git.eclipse.org/c/scout/org.eclipse.scout.rt.git/commit/?id=774be75145dacb6de2744b1a6563f142fdcc8efc | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 396848 | ||
|
Description
Matthias Zimmermann
There were changes made in bug 396848 which are responsible for the described behavior. A detailed analysis will follow soon. Analysis: In bug 396848 the getValue() method of AbstractColumn was changed to return validated values from a cache (if available) instead of returning the actual value stored in the internal Cell datastructure of an ITableRow. This was done for validation reasons on editable tables. However, the setValue() method was not changed, i.e. that the value was only stored in a so-called Cell datastructure but was not validated again and therefore wasn't put back into the cache. This results in the cache containing the same old validated value instead of the new one. Applied to the problem description above that means that the validity cache is filled with the visibility value Boolean.TRUE initially when the OrganizeColumnsForm gets opened (because the column is visible at the beginning). If the column is set to invisible, the cache is not updated and therefore still contains the Boolean.TRUE value for the visibility property, causing the column to be displayed after closing the form. Solution: A possible implementation for the validation has been pushed to https://git.eclipse.org/r/#/c/13326/ but definitely needs a review by the initial contributor of the bug 396848. I set the target milestone to RC3. However, depending on the review we might want to postpone this bugfix to SR1. Pushed to Gerrit https://git.eclipse.org/r/#/c/13326/. Merged to master with commit http://git.eclipse.org/c/scout/org.eclipse.scout.rt.git/commit/?id=774be75145dacb6de2744b1a6563f142fdcc8efc @Oliver: Please verify Bug closed, shipped with 3.9.0 (Kepler) Gerrit change https://git.eclipse.org/r/13326 was merged to [master]. Commit: http://git.eclipse.org/c/scout/org.eclipse.scout.rt.git/commit/?id=774be75145dacb6de2744b1a6563f142fdcc8efc Gerrit change https://git.eclipse.org/r/c/scout/org.eclipse.scout.rt/+/13326 was merged to [master]. Commit: http://git.eclipse.org/c/scout/org.eclipse.scout.rt.git/commit/?id=774be75145dacb6de2744b1a6563f142fdcc8efc |