CoreBOSBB
Evaluating an expression template through code - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Development (https://discussions.corebos.org/forumdisplay.php?fid=18)
+--- Forum: coreBOS Development (https://discussions.corebos.org/forumdisplay.php?fid=4)
+--- Thread: Evaluating an expression template through code (/showthread.php?tid=2139)



Evaluating an expression template through code - Guido1982 - 04-22-2021

Suppose I have some template like $(field : (Module) reffield) and I want to evaluate that in my code. How would I do that?


RE: Evaluating an expression template through code - joebordes - 04-22-2021

This piece of code should do the trick

https://github.com/tsolucio/corebos/blob/master/modules/cbMap/processmap/ConditionExpression.php#L91-L95
https://github.com/tsolucio/corebos/blob/master/modules/com_vtiger_workflow/evaluateit.php#L46-L49

https://github.com/tsolucio/coreBOSTests/blob/master/modules/com_vtiger_workflow/expression_engine/VTExpressionEvaluaterTest.php#L292-L295

Let me know how it goes


RE: Evaluating an expression template through code - Guido1982 - 04-23-2021

Cool, thanks!