Hello,
I have 2 questions regarding the entity snapshots:
Question 1:
I tried to reproduce what is described here:
https://doc.cuba-platform.com/manual-7.2/manual.html#entity_snapshots_view
I tried to change to adapt the code to be 7.X, and did this:
On the screen controller:
@Subscribe
public void onAfterShow(AfterShowEvent event) {
if (!entityStates.isNew(sessionDc.getItem())) {
diffFrame.loadVersions(sessionDc.getItem());
}
}
On the screen designer:
<tabSheet>
<tab id="versionsTab"
caption="Versions"
margin="true,false,false,false"
spacing="true">
<frame id="diffFrame"
src="/com/haulmont/cuba/gui/app/core/entitydiff/diff-view.xml"
width="100%"
height="100%"/>
</tab>
</tabSheet>
However, I couldn’t manage to have a proper rendering in the UI:
I can see the 2 snapshots of my entity, but the area on the right remains empty:
Am I missing something ?
Question 2:
Is it possible to expose the snapshots through the REST API if I create a dedicated service ?
Thanks in advance !
Nicolas