<?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>Why local variable value is not going into the rule input</title><link>https://community.appian.com/discussions/f/user-interface/24076/why-local-variable-value-is-not-going-into-the-rule-input</link><description>You can see in the above image that Loan amount of rule input showing null even passing the value. Can anyone check it?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Why local variable value is not going into the rule input</title><link>https://community.appian.com/thread/92781?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 17:41:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:689224c9-6bce-4b4e-af7f-b76940abc2d0</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Then as i said, you will want to set the &amp;quot;Loan Amount&amp;quot; field to &lt;strong&gt;&lt;em&gt;disabled&lt;/em&gt;&lt;/strong&gt;&lt;em&gt;&lt;/em&gt;, and move the value-saving logic from the local variable definition into the &lt;em&gt;saveInto&lt;/em&gt; parameter of the &lt;em&gt;Loan Type&lt;/em&gt; dropdown.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why local variable value is not going into the rule input</title><link>https://community.appian.com/thread/92780?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 17:30:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:780e490d-d2ba-4122-8386-2647d5ebc97a</guid><dc:creator>shukurs0001</dc:creator><description>&lt;p&gt;Yeah exactly,&lt;br /&gt;When I selected the loan type then automatically loan amount value should be as per selected loan type.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why local variable value is not going into the rule input</title><link>https://community.appian.com/thread/92779?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 17:28:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:01eac6da-6a87-41d8-a54d-a54c06bd577f</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Ok, you hadn&amp;#39;t mentioned that local!loanAmount is populated directly in its local variable definition.&lt;/p&gt;
&lt;p&gt;This is an instance where it would have been helpful to give some details of your desired functionality overview in the original post.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So, can you tell us a bit more about the use case you&amp;#39;re trying to implement?&amp;nbsp; For example, is the loan amount supposed to be specified &lt;em&gt;&lt;strong&gt;only&lt;/strong&gt; &lt;/em&gt;by the &lt;em&gt;Loan Type&lt;/em&gt; selected?&amp;nbsp; In that case you should have the &lt;em&gt;Loan Type&lt;/em&gt; selection dropdown perform the Save into the loan amount CDT property, and not allow the Loan Amount field to be edited.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why local variable value is not going into the rule input</title><link>https://community.appian.com/thread/92778?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 17:22:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3729a9a0-1940-4f6c-a5b8-5833b72249d6</guid><dc:creator>shukurs0001</dc:creator><description>&lt;p&gt;First of all thank you for your revert.&lt;br /&gt;&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1648228837648v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I have tried what you suggested, however it is not reflecting in rule input.&lt;br /&gt;&lt;br /&gt;see the local!loanAmount value in the image.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why local variable value is not going into the rule input</title><link>https://community.appian.com/thread/92776?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 16:26:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a62e5b56-e3c9-4aef-b327-cf1d92bba379</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;If your saveInto is only &amp;quot;&lt;strong&gt;&lt;em&gt;a!save(ri!myCdt.loanAmount, local!loanAmount)&lt;/em&gt;&lt;/strong&gt;&amp;quot;, this will not cause local!loanAmount to be set, and therefore, won&amp;#39;t cause the (new) value of local!loanAmount to get saved into your ri! variable.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure why you&amp;#39;re even using local!loanAmount - but if you really need to use it, and also want the value to be simultaneously saved into your CDT field, the simple and standard way is to use a list of saves in your &lt;em&gt;saveInto&lt;/em&gt; parameter.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;saveInto: {
  local!loanAmount,  /* saves the field value directly into local!loanAmount */
  a!save(
    ri!myCdt.loanAmount,  /* saves the (new) value of local!loanAmount into the RI value */
    local!loanAmount
  )
},&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>