04-22-2021, 11:14 AM
Suppose I have some template like $(field : (Module) reffield) and I want to evaluate that in my code. How would I do that?
Evaluating an expression template through code
|
04-22-2021, 11:14 AM
Suppose I have some template like $(field : (Module) reffield) and I want to evaluate that in my code. How would I do that?
04-22-2021, 11:59 AM
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
Joe
TSolucio
04-23-2021, 11:21 AM
Cool, thanks!
|
« Next Oldest | Next Newest »
|