Skip to content

Toggle Visibility example: avoid using $not in dynamic expression #1834

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

renejeglinsky
Copy link
Contributor

Using $Not apparently it doesn't work as we documented it here.

@renejeglinsky renejeglinsky requested a review from stewsk May 12, 2025 06:25
@stewsk
Copy link
Contributor

stewsk commented May 12, 2025

Using $Not apparently it doesn't work as we documented it here.

Can you explain a bit more why you think this doesn't work? I just tried in SFlight, and there it does work (of course the semantics is wrong, I just added the $Not to try it out):

annotate TravelService.Booking with @UI.CreateHidden : 
    { $edmJson: {$Not: { $Path: 'to_Travel/TravelStatus/createDeleteHidden'} } };
annotate TravelService.Booking with @UI.DeleteHidden : 
    { $edmJson: {$Not: { $Path: 'to_Travel/TravelStatus/createDeleteHidden'} } };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants