Hi, I’m trying to call a function using invoke in Lucee. The function is located in the same file as the invoke so in my ColdFusion code, as instance parameter value I use " " , but in Lucee it generates an error. So I changed its value to this, but it doesn’t work in ColdFusion. How can I solve this issue?
What value for the parameter instance that works both with ColdFusion and Lucee can I use?
I remind you that the function that I’m trying to invoke is set in the same component where I call the function.
Could you please create and share a reproducible code snippet, create some at trycf.com and share it as a gist or create a small cfml/cfc templates, so we can try recreating the issue more easily?
Don’t know if there is any coder around who has the time to try recreating it first by reading and typing from pasted images. You might get guessing only .
I found the reason why it didn’t work on ColdFusion, in CF if you call a Private function using invoke you need to use “” as value of the instance parameter, while if you try to invoke a public function you would also use this. In Lucee the value this works also with private functions