03-25-2024 3:26 PM - edited 03-25-2024 4:27 PM
I have 3 super simple CDS view examples from the CDS book, but I can't activate them, because they depend on each other. There must be a solution for this, but what? There are always errors that exist because anotehr part is still not activated. And you cannot force activation anymore, why?
Here are my CDS views:
1:
define root view entity Z_CompositionRootView
as select distinct from zscribbles_data as DATA
composition [0..*] of Z_CompositionChildView as _ChildView
{
key DATA.char_r as RootKeyField,
_ChildView
}
==> Cannot be activated because Z_CompositionChildView doesn't exist... and so on...
2:
define view entity Z_CompositionChildView
as select distinct from zscribbles_data as DATA
association to parent Z_CompositionRootView as _RootView
on $projection.RootKeyField = _RootView.RootKeyField
composition [0..*] of Z_CompositionGrandchildView
as _GrandchildView
{
key DATA.char_r as RootKeyField,
key DATA.char_c as ChildKeyField,
_RootView,
_GrandchildView
}
3:
define view entity Z_CompositionGrandchildView
as select distinct from zscribbles_data as DATA
association [1..1] to Z_CompositionRootView as _RootView
on $projection.RootKeyField = _RootView.RootKeyField
association to parent Z_CompositionChildView as _ChildView
on
$projection.RootKeyField = _ChildView.RootKeyField
and $projection.ChildKeyField = _ChildView.ChildKeyField
{
key DATA.char_r as RootKeyField,
key DATA.char_c as ChildKeyField,
key DATA.char_g as GrandchildKeyField,
_RootView,
_ChildView
}
Try to activate them all together. In ADT, the key combination is Ctrl+Shift+F3.
The mass activation icon is next to the single activation icon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
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.