This is regarding a consulting question for using the Action and sideeffects from CAP service on UI5 code.
I have introduced the sideeffect with action on CAP CDS service similar to below code:
entity Staffing @readonly as projection on assignment.AssignmentsView {
*,
ResourceDetails.fullName as resourceName,
ResourceDetails.workforcePersonID as workforcePersonID,
ResourceDetails.initials as initials,
ResourceDetails.workerType.name as workerTypeName,
false as assignmentProposalFlag : Boolean
} actions {
@Core.OperationAvailable : assignmentProposalFlag
@Common.IsActionCritical : true
@Common.SideEffects : {TargetProperties : [
'assignmentStatus','assignmentProposalFlag'
]}
action acceptAssignmentProposal() returns Staffing;
Is there any way to use the defined action via UI5 code and to update the fields which are defined with @Common.SideEffects in service on selecting a new item from the Select control in UI5.