Passing variable to dynamic filter #1034
-
Hello all, |
Beta Was this translation helpful? Give feedback.
Answered by
lrljoe
Jan 31, 2023
Replies: 1 comment 4 replies
-
As this is an anonymous function, you'll need to pass the $criteria variable in, otherwise the function doesn't know that the variable exists.
You will definitely have performance issues with your approach though, if you give some more detail around the use case, then I can probably point you in the right direction |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
WojciechRhdt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As this is an anonymous function, you'll need to pass the $criteria variable in, otherwise the function doesn't know that the variable exists.
e.g:
You will definitely have performance issues with your approach though, if you give some more detail around the use case, then I can probably point you in the right direction