Bound Function in .cds file
Function definition in .js file
{ SELECT: {
from: {
ref: [
{
id: 'CatalogService.employeeMaster',
where: [ {ref:['ID']}, '=', {val:1} ]
}
]
}
}}
If server listening is stopped, Execute cds watch again from the Terminal to see the output in new tab. Otherwise, refresh the browser and check the output.
Output of Bound function
/employeeMaster/1/CatalogService.boundedRead() // employeeMaster is Entity and CatalogService.boundedRead() is the function invoking.
Unbound Function in .cds file
Unbound Function Definition in .js file
Let's check the output of Unbound function.
Output of Unbound function
/unboundedRead() // You can directly invoke Unbound functions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Subject | Kudos |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
User | Count |
---|---|
11 | |
6 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
2 | |
2 |