I want to modify an element inside a cds view in order to change the way it is displayed. I tried using virtual elements and it works fine if I take the data from a separate element (storing the original data) and put it into a new virtual element.
However I cannot figure out how to modify the element itself without displaying an redundant one in my table. If I try to hide the original one, the data is not loaded correctly. If I try to make the original element virtual it loses it's own data.
What is the correct way to achieve what I want?
I just did my own testing regarding how to exclude your original column on
SmartTable. Below is working on my testing demo.To exclude your original column from showing in the Column tab of Table setting dialog, there is an annotation
sap:visible = false.Redefine the
Definemethod of your mpc_ext: