-
Couldn't load subscription status.
- Fork 140
cds: use "IsActiveEntity" in anno expressions #1134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1105,7 +1105,10 @@ Each path in the expression is checked: | |||||||||
| * If the annotation is assigned to a subelement of a structured element, the top level | ||||||||||
| elements of the entity can be accessed via `$self`. | ||||||||||
| * A parameter `par` can be accessed via `:par`, just like parameters of a parametrized entity in queries. | ||||||||||
| * If a path cannot be resolved successfully, compilation fails with an error. | ||||||||||
| * The draft specific element `IsActiveEntity` can be referred to with the magic variable `$draft.IsActiveEntity`. | ||||||||||
| During draft augmentation `$draft.IsActiveEntity` is rewritten to `$self.IsActiveEntity` for all draft enabled | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
does this rewrite mean that it's $draft.IAE in some handlers and then it's always $self.IAE? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it has nothing to do with handlers... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no please not. |
||||||||||
| entities (root and sub nodes but not for named types or entity parameters). | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sorry, no in a draft context the state elements are available in both the root and the sub nodes, that's important to know. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mentioned that in the previous line. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so what's the difference? In fact the content in parentheses are more like an additional information... Just leave it as it is, it's good enough |
||||||||||
| * If a path can't be resolved successfully, compilation fails with an error. | ||||||||||
|
|
||||||||||
| In contrast to `@aReference: foo.bar`, a single reference written as expression `@aRefExpr: ( foo.bar )` | ||||||||||
| is checked by the compiler. | ||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm, compared to the other entries in this list, this is a rather long and detailed description for a special case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes that's right, it's a special case that (what I think) needs some more detailed explanation (all others in this list are straight forward and will always work)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok