Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsTracking of data changes
https://www.eclipse.org/forums/index.php/mv/msg/1107637/1840302/#msg_1840302
I'm trying to integrate the functionality of tracking data changes in my grids and I have used Tutorial Examples -> Integration -> EditableSortableGroupByWithFilterExample as reference.
What is implemented there works as expected also in my grids, but I have a 'special' situation that I'm not sure how to handle. I have a custom theme configuration in order to be able to apply a custom style (strikethrough) in some conditions.
I have adapted EditableSortableGroupByWithFilterExample a bit in order to illustrate my case.
You will see that the married persons will be marked with a strikethrough style and on top of a married person there will be a context menu option 'Divorced' and on top of a person that is not married there will be a context menu option 'Married'.
(This is a bit forced and funny for this example, but I wanted to use as base an example that you're familiar with . In my case I'm using this style for marking stuff deprecated).
After using those two options from context menu ("Married"/"Divorced") the discard changes functionality will not revert the changes.
Is there a way in which I can integrate those two concepts or is there another way in which I should implement the strikethrough style in order to be tracked?
Thank you!
Kind Regards,
Alexandra]]>Alexandra Tritean2021-04-12T07:43:12-00:00Re: Tracking of data changes
https://www.eclipse.org/forums/index.php/mv/msg/1107637/1840305/#msg_1840305
If you change the code to update the underlying data model to use an UpdateDataCommand, it should work.
]]>Dirk Fauth2021-04-12T08:41:31-00:00Re: Tracking of data changes
https://www.eclipse.org/forums/index.php/mv/msg/1107637/1840307/#msg_1840307
Thank you for the help! :)
Kind Regards,
Alexandra
]]>Alexandra Tritean2021-04-12T09:22:38-00:00