cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a CDS service bound action parameter with default value

bruce_wang3
Explorer
0 Kudos

Hi expert,

I wound want to create a service action. there are 3 parameters, and i want the first parameter is fixed value from one entity field.

as below example, i want inputCheckpointId is fixed value from entity

entity VDiffWithRule

as select from testauto.VDiffWithRule

order by seq

actions {

action editDiff(inputCheckpointId:UUID, variable : String(50), skipCheck : Boolean) returns VDiffWithRule;

};

but i don't know how to implement it, could you kindly guide me?

Accepted Solutions (1)

Accepted Solutions (1)

patricebender
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Bruce,

Unfortunately, it is not possible to specify a default value for action parameters with the current version of CDL.

Best Regards,

Patrice

bruce_wang3
Explorer
0 Kudos

Got it, Thanks a lot!

Answers (0)