cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use pseudo-variables (like $user.<>) in db/schema.cds?

ArthurYang
Product and Topic Expert
Product and Topic Expert
0 Kudos

I am referring to URL:

Please get back to me on the following feedback:

ArthurYang
Product and Topic Expert
Product and Topic Expert
0 Kudos

I'm tring to use attributes in my CAP project, I've made attributes available in srv/xxx.cds, but I found that either $user.<> or $user.attr.<> are undefined in my db/schema.cds, how can I obtain the attributes value in db/schema.cds?

iwona_hahn
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Arthur,
can you please provide some more information about your project? Which version of @sap/cds-dk are you using? What is the output of cds --version?

Best regards,
Iwona

0 Kudos

Hi Arthur,

can you please also share

* what you have done in srv/xxx.cds

* what exactly you want to write down (in schema.cds) and what you expect to happen?

Best regards, Steffen

Accepted Solutions (0)

Answers (0)