Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357041 - Manually set cell text does not become disabled
Summary: Manually set cell text does not become disabled
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: 3.7.0   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: 3.7.1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-08 03:37 EDT by Remo Arpagaus CLA
Modified: 2012-05-22 06:53 EDT (History)
1 user (show)

See Also:
zimmermann: indigo+
zimmermann: juno+


Attachments
Patch to fix the bug (2.87 KB, patch)
2011-09-08 03:39 EDT, Remo Arpagaus CLA
zimmermann: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Remo Arpagaus CLA 2011-09-08 03:37:52 EDT
Build Identifier: 

If text of table cell is set manually in execDecorateCell, disabling the table does not change the font color of these texts.

A Workaround exists to do that manually in project:
1. in execDecorateCell add the following line of code:
cell.setForegroundColor(getForm().isEnabledGranted() ? null : BsiCrmHtmlConstants.RAYO_COLOR_DISABLED_TABLE_TEXT);
2. in execLoad of the form (when form is made disabled due to lack of permission), iterate through the rows and trigger their decoration:
for (ITableRow row : rows) {
   table.getDisplayTextColumn().decorateCell(row);
}

Reproducible: Always
Comment 1 Remo Arpagaus CLA 2011-09-08 03:39:43 EDT
Created attachment 202971 [details]
Patch to fix the bug
Comment 2 Stephan Leicht Vogt CLA 2011-09-08 04:40:21 EDT
solved for trunk and indigo sp1
Comment 3 Matthias Zimmermann CLA 2011-10-11 02:49:59 EDT
shipped with 3.7.1
Comment 4 Matthias Zimmermann CLA 2011-10-11 11:26:40 EDT
removed iplog flag from ticket and added iplog flag to attachment