Skip to content
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

Clock.Today is not being offered by Intellisense in Report events #9638

Open
sno036 opened this issue Feb 2, 2025 · 4 comments
Open

Clock.Today is not being offered by Intellisense in Report events #9638

sno036 opened this issue Feb 2, 2025 · 4 comments
Labels
Improvement An enhancement to an existing functionality or system

Comments

@sno036
Copy link
Contributor

sno036 commented Feb 2, 2025

What happened?

So if you type it then it will work but there is no indication that it is available

What Operating System are you on?

Windows

@par456
Copy link
Collaborator

par456 commented Feb 2, 2025

In the Report Events section you wouldn't want [Clock].Today (which is a function that returns the current date), you instead would want a clock event like [Clock].EndOfDay or [Clock].StartOfDay

@sno036
Copy link
Contributor Author

sno036 commented Feb 2, 2025

I disagree because it can also be used in a conditional statement. For example the "Between 2 dates" example generates:

Clock.Today >= new DateTime(2011, 7, 1) && Clock.Today <= new DateTime(2011, 12, 31)

@par456
Copy link
Collaborator

par456 commented Feb 2, 2025

That is true.

I think there is a filter on there for events only, maybe that filter should be removed and just have a useful error message if someone tries to only use a function, instead of a function within a test statement.

@sno036
Copy link
Contributor Author

sno036 commented Feb 3, 2025

On second thoughts .... I see the logic in the filter. Perhaps those wanting something special might rely on the examples to assist? Maybe a solution might be to add a attractive/teasing further example, perhaps along the lines of "Using logic and dates"?

Just close this if you want though!

@ric394 ric394 added Improvement An enhancement to an existing functionality or system and removed Bug labels Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement An enhancement to an existing functionality or system
Projects
Status: Backlog
Development

No branches or pull requests

3 participants