2016 Feb 23 12:31 PM
Hi experts,
I have an ALV Grid with some editable fields. Once I have introduced something in this, it must not change.
This works properly, however, if I try to change field's content, it doesn't recover his original value until I refresh entire table.
How could I do to recover the original value after I try to modify this field?
Thanks for all!
Regards,
David
2016 Feb 23 12:44 PM
So if I understand correctly, then only the empty editable fields can be changed? If that is the case, I would make sure the fields that aren't empty aren't editable.
In cl_gui_alv_grid you can do so by adding a styletable to each row for example.
2016 Feb 23 12:39 PM
If I understand you correctly you want to disallow to change the value of the field once it was entered? If yes they use cell styles to make cell disabled for editing in event data_changed_finished.
2016 Feb 23 12:52 PM
Hi Łukasz,
Yes, You have understand me correctly.
It's possible to disable cell for editing on a single row?
I mean if it's possible to disable in a row and another no.
Thanks!
2016 Feb 23 12:57 PM
2016 Feb 23 12:58 PM
2016 Feb 23 12:44 PM
So if I understand correctly, then only the empty editable fields can be changed? If that is the case, I would make sure the fields that aren't empty aren't editable.
In cl_gui_alv_grid you can do so by adding a styletable to each row for example.
2016 Feb 23 2:50 PM
In answer to your other question:
David Sánchez wrote:
This works properly, however, if I try to change field's content, it doesn't recover his original value until I refresh entire table.
How could I do to recover the original value after I try to modify this field?
Thanks for all!
Regards,
David
The editable ALV grid if set up properly has an undo button which will undo any changes made.
Rich