sunnyjey
Active Member
I am trying to insert Plotalot variable in Calc, but somehow it is not working.
As per this thread:
http://fabrikar.com/forums/index.ph...talot-with-variables.44027/page-2#post-226001
@cheesegrits has suggested to use
to run Plotalot code, eg
In another thread @cheesegrits has suggested to pass evalScripts() function to be run if the plotalot graph to be changed on the fly. Ref Thread: http://fabrikar.com/forums/index.php?threads/run-js-in-php-on-calc-plugin.45320/#post-233465
Please help me to understand how to pass evalScripts() function in Calc with Plotalot variable. I have tried following, but didnt work.
As per this thread:
http://fabrikar.com/forums/index.ph...talot-with-variables.44027/page-2#post-226001
@cheesegrits has suggested to use
Code:
FabrikHelperHTML::runContentPlugins($myString);
to run Plotalot code, eg
Code:
$year ='{listname___myelement_year}';
$myString = '{plotalot id="21" P1="' . $year . '"}';
FabrikHelperHTML::runContentPlugins($myString);
return $myString;
In another thread @cheesegrits has suggested to pass evalScripts() function to be run if the plotalot graph to be changed on the fly. Ref Thread: http://fabrikar.com/forums/index.php?threads/run-js-in-php-on-calc-plugin.45320/#post-233465
Code:
$response = "all the other visible stuff for the plotalot graph";
$response .= '<script type="text/javascript">evalScripts();</script>';
return $response;
Please help me to understand how to pass evalScripts() function in Calc with Plotalot variable. I have tried following, but didnt work.
Code:
$year ='{listname___myelement_year}';
$myString = '{plotalot id="21" P1="' . $year . '"}';
FabrikHelperHTML::runContentPlugins($myString);
$response = $myString ;
$response .= '<script type="text/javascript">evalScripts();</script>';
return $response;
Last edited: