04-29-2009 3:32 PM
Hi,
I have a custom transaction where if User A tries to access a record that is locked by User B, it goes into the transaction in read only mode. I therefore set my text control to read only using method 'set_readonly_mode' .
CALL METHOD go_pcctextedit->set_readonly_mode.
If the record then is unlocked by User B. User A backs out of the main screen to the selection screen and selects the same record again I make the text controls editable by making the call:
CALL METHOD go_pcctextedit->set_readonly_mode
EXPORTING
readonly_mode = cl_gui_textedit=>false.
However the text object on the screen is still in read only mode.
Does anyone know what could be causing this problem?
Many Thanks
David
04-29-2009 4:01 PM
04-29-2009 4:01 PM
04-29-2009 4:07 PM
Thanks Enno. Unfortunately I have already tried that and it doesn't work.
04-29-2009 4:18 PM
04-29-2009 4:26 PM
Thanks Enno, thay's solved the problem.
Edited by: David Bibby on Apr 29, 2009 11:35 AM
04-29-2009 4:36 PM
Each class normally does have a method "FREE" named "Destroy"
Normally it should be enough to clear the object reference.
if it's still not working, try to copy your report and eliminate all stuff that has nothing to do with this problem. if you do not find the error then, pls post this coding.