Skip to content

old and new value shows the same #206

@abbielara20

Description

@abbielara20

I am using the git repository and following the Use Case 1: Trace the changes of child nodes from the current entity and display the meaningful data from child nodes (composition relation). However, the new value and old value registers the same.

change-tracking.cds
using { ProcessorService } from './processor-service';

annotate ProcessorService.Incidents with @changelog: [title] {
conversation @changelog: [conversation.message];
customer @changelog: [customer.email];
}

schema.cds
entity Incidents : cuid, managed {
customer : Association to Customers;
title : String @title: 'Title';
urgency : Association to Urgency default 'M';
status : Association to Status default 'N';
conversation : Composition of many Conversation;
}
aspect Conversation: managed, cuid {
timestamp : type of managed:createdAt;
author : type of managed:createdBy;
message : String;
};

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions