<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Rule is not getting call dynamically</title><link>https://community.appian.com/discussions/f/user-interface/21875/rule-is-not-getting-call-dynamically</link><description>Hi All, 
 
 I am passing one dynamic value in expression rule in textField to display value but rule is not getiing refresh n taking old value only. 
 
 Here below rule should take dynamic value n on t he basis of that should return respective value </description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Rule is not getting call dynamically</title><link>https://community.appian.com/thread/85769?ContentTypeID=1</link><pubDate>Wed, 15 Sep 2021 11:41:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7a0203b1-1efd-4dcb-b57c-64b5230af945</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;Sure I will try your approach first n then will re u ode if not works.&lt;/p&gt;
&lt;p&gt;Thanks for your inputs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule is not getting call dynamically</title><link>https://community.appian.com/thread/85742?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 13:25:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:50eb8885-aa00-4994-89b8-d6b9e3937ebb</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;As a point of clarificaiton, while you&amp;#39;re totally right about load(), I belive in &amp;gt;99% of use cases, a!localVariables() will work in expression rules as-desired without needing to set &amp;quot;refreshAlways&amp;quot; (or any other a!refreshVariable() modifications).&amp;nbsp; The possible exceptions being when the expression rule sets a dynamic value based on something other than a potentially-changed rule input, such as capturing the current time for some reason.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule is not getting call dynamically</title><link>https://community.appian.com/thread/85728?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 07:15:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c417a3a0-ff38-4790-8b7d-60d2f8a5926e</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Loading lots of data into memory and then trying to search for matches is typically a bad idea. Did you try my suggestions? Would&amp;nbsp;you mind posting the code of your expression (use Insert -&amp;gt; Code)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule is not getting call dynamically</title><link>https://community.appian.com/thread/85727?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 07:06:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8c2b97e3-4ca4-4300-975c-37e457d599d1</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;Fixed-&lt;/p&gt;
&lt;p&gt;Load first data outside with n play around that data in with(). It fixed my issue but i feel something should be more optimized way for this problem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;a!textField(&lt;br /&gt; label: &amp;quot;Name&amp;quot;,&lt;br /&gt; value:&lt;br /&gt; &lt;br /&gt; index(&lt;br /&gt; local!nameDetails.name,&lt;br /&gt; wherecontains(&lt;br /&gt; tostring(&lt;span&gt;local!&lt;/span&gt;&lt;span&gt;masterData&lt;/span&gt;&lt;span&gt;.id&lt;/span&gt;),&lt;br /&gt; touniformstring(local!nameDetails.id)&lt;br /&gt; ),&lt;br /&gt; null&lt;br /&gt; ),&lt;br /&gt; readonly: true()&lt;br /&gt; )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule is not getting call dynamically</title><link>https://community.appian.com/thread/85726?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 07:01:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d66ee7b5-cce7-447a-8696-fe134b731558</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;If you use load() or a!localVariables, change it to with() or add a!refreshVariable(refreshAlways: true).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule is not getting call dynamically</title><link>https://community.appian.com/thread/85725?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 06:59:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3ee4fadc-4fb8-471a-97f2-708bda7f51cc</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;yes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule is not getting call dynamically</title><link>https://community.appian.com/thread/85724?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 06:56:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c1e35f9c-8cb9-405c-88e9-4842e5f6c59f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Do you use local variables inside that expression?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>