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: Is it possible to access the ExpressionContext inside a custom function? #106

Open
raphaelcr93 opened this issue Jun 21, 2023 · 0 comments

Comments

@raphaelcr93
Copy link

Hello,

I have a very specific requirement where I evaluate an expression inside another expression, and would like to know if it possible to leverage the context of the first one inside the second one.

Basically I have on my case I have an expression like this:

ForEach(" ['Item1','Item2','Item3'] ", "CurrentListValue = 'Item2' " )

ForEach() is a custom function that receive 2 strings, one being a list and another being an expression.
And then it tries to evaluate the new expression for each item in the list.

The problem is that the new expression can contain variables that are passed to the ForEach function in the first place.
And as I need to create a new context, inside the ForEach function, to evaluate the new expression the variables are lost.

Is there any way to do it in the current implementation?

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