Flee icon indicating copy to clipboard operation
Flee copied to clipboard

[Question] ExpressionContext from inside custom function.

Open du8die opened this issue 8 years ago • 0 comments

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!

du8die avatar Aug 29 '17 01:08 du8die