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

[Question] ExpressionContext from inside custom function. #4

Open
du8die opened this issue Aug 29, 2017 · 0 comments
Open

[Question] ExpressionContext from inside custom function. #4

du8die opened this issue Aug 29, 2017 · 0 comments

Comments

@du8die
Copy link

du8die commented Aug 29, 2017

Hi,

I'm a relative novice when it comes to Flee. I started with the original CodePlex project, and then found yours, which is maintained.

I've created a helper function. Call it "lookupSeason(date)". The idea is - take a date, pass it to a function that queries a database and returns the proper season.

In my ideal world, I'd like the expression to read "lookupSeason(date)" - but what gets passed to the parser is "lookupSeason(date,customer)" - because different customers could define seasons differently.

The other option would be to somehow be able to access the ExpressionContext from inside the helper function.

Is there any way to do this?

Thanks!

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

No branches or pull requests

1 participant