on 08-14-2023 1:06 PM
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.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.