<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to pass variables in handlebars while calling function]]></title><description><![CDATA[<p>Hi,</p>
<p>i have a custom function 'getvaluefromkey', when i call this function as shown below it is working fine.<br />
var pe = {{{getvaluefromkey &quot;ss&quot; &quot;p&quot;}}};</p>
<p>but if i pass the inputs as a variables it is not working, like below.<br />
var input1 = &quot;ss&quot;;<br />
var input2 = &quot;p&quot;;<br />
var pe = {{{getvaluefromkey input1 input2}}};</p>
<p>please let us know how to pass the local variables in handlebars.</p>
]]></description><link>https://forum.jsreport.net/topic/165/how-to-pass-variables-in-handlebars-while-calling-function</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 20:38:31 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/165.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Jun 2017 06:51:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to pass variables in handlebars while calling function on Invalid Date]]></title><description><![CDATA[<p>Hi,</p>
<p>i have a custom function 'getvaluefromkey', when i call this function as shown below it is working fine.<br />
var pe = {{{getvaluefromkey &quot;ss&quot; &quot;p&quot;}}};</p>
<p>but if i pass the inputs as a variables it is not working, like below.<br />
var input1 = &quot;ss&quot;;<br />
var input2 = &quot;p&quot;;<br />
var pe = {{{getvaluefromkey input1 input2}}};</p>
<p>please let us know how to pass the local variables in handlebars.</p>
]]></description><link>https://forum.jsreport.net/post/747</link><guid isPermaLink="true">https://forum.jsreport.net/post/747</guid><dc:creator><![CDATA[papegowda]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to How to pass variables in handlebars while calling function on Invalid Date]]></title><description><![CDATA[<p>This won't work. Handlebars is unaware of the local js script evaluation.<br />
You need to do whatever calculation you do there inside the helper functions.</p>
]]></description><link>https://forum.jsreport.net/post/748</link><guid isPermaLink="true">https://forum.jsreport.net/post/748</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to How to pass variables in handlebars while calling function on Invalid Date]]></title><description><![CDATA[<p>thank for the clarification</p>
]]></description><link>https://forum.jsreport.net/post/749</link><guid isPermaLink="true">https://forum.jsreport.net/post/749</guid><dc:creator><![CDATA[papegowda]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>