<?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>Data refresh issues on deselection of a value from a dropdown</title><link>https://community.appian.com/discussions/f/user-interface/37831/data-refresh-issues-on-deselection-of-a-value-from-a-dropdown</link><description>Hi there, I have a scenario where there is a dropdown, whose value is getting saved in a local!var. 
 Now, upon selection a specific option from the single select dropdown, depending upon the value, there is another child interface which is consuming</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Data refresh issues on deselection of a value from a dropdown</title><link>https://community.appian.com/thread/142487?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2024 14:57:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b77970e8-de85-460b-a3fc-17a5a88b53d7</guid><dc:creator>saifalikhan13</dc:creator><description>&lt;p&gt;You are correct, The nulls were creating the issue and there was a type mismatch between both the objects which was creating a refresh issue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data refresh issues on deselection of a value from a dropdown</title><link>https://community.appian.com/thread/142262?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2024 05:01:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b18a65b1-9ab6-468d-ade2-78f58b198036</guid><dc:creator>Shanmathi Ponnusamy</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="/members/saifalik8679"&gt;saifalikhan13&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As everyone said, I don&amp;#39;t have complete context about your chart rule like&amp;nbsp;how you query data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But clearly it is because of refresh issue or null value passed. I would suggest to check one small thing.&lt;/p&gt;
&lt;p&gt;If your query has input of multiple type and I see in the dropdown you select single value. So inside the chart rule if you have query rule called add null check for the parameter. Please refer image for example:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1730178083499v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data refresh issues on deselection of a value from a dropdown</title><link>https://community.appian.com/thread/142251?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 20:17:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5bf3aa8e-b06b-4e84-b9dc-c75c0d88f241</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Yeah, I know how to deselect a dropdown. But what exactly goes wrong when doing this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data refresh issues on deselection of a value from a dropdown</title><link>https://community.appian.com/thread/142243?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 18:19:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9eeae939-7b16-451e-b5ca-7091121f0fa7</guid><dc:creator>saifalikhan13</dc:creator><description>&lt;p&gt;It means, if you want to deselect the selected value from the dropdown, you can click on the dropdown and click on the placeholder name, the local variable holding the value will be back to null.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data refresh issues on deselection of a value from a dropdown</title><link>https://community.appian.com/thread/142229?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 15:45:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:68ad9b47-82a3-436a-a3b6-505f2f0bc2a2</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Hello &lt;a href="/members/saifalik8679"&gt;saifalikhan13&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Not sure what are the values that are being populated within the child interface and what is the context that you are using to generate these charts. Please share the Child interface code snippet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data refresh issues on deselection of a value from a dropdown</title><link>https://community.appian.com/thread/142228?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 14:00:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c7a538be-9d0d-4f56-8b26-c28952c71f22</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;We need to drill deeper.&lt;/p&gt;
[quote userid="178561" url="~/discussions/f/user-interface/37831/data-refresh-issues-on-deselection-of-a-value-from-a-dropdown/142221"]After value being null, there is a problem of referesh.[/quote]
&lt;p&gt;What exactly does this mean?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data refresh issues on deselection of a value from a dropdown</title><link>https://community.appian.com/thread/142225?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 13:07:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5bde8f78-2006-4b8a-a38f-bc1218ca92ef</guid><dc:creator>Karumuru Abhishek</dc:creator><description>&lt;p&gt;hi &lt;a href="/members/saifalik8679"&gt;saifalikhan13&lt;/a&gt;&amp;nbsp; i think you need to handle the null condition in this case because if you are deselecting it means the variable might be null. trying using some null condition logic&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data refresh issues on deselection of a value from a dropdown</title><link>https://community.appian.com/thread/142222?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 12:40:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:927818cf-5b37-4f9c-91fc-364d84638ea3</guid><dc:creator>saifalikhan13</dc:creator><description>&lt;p&gt;Please refer to the above example code:&lt;/p&gt;
&lt;p&gt;If the value is being selected in the dropdown, the rule at line 11 will genereate the chart.&lt;br /&gt;If the value is being deselcted, means the dropdown will have the null vale for the local!dropdownVal, then the chart will not be refreshed with the null value for it. &lt;a href="/members/stefanhelzle0001"&gt;Stefan Helzle&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data refresh issues on deselection of a value from a dropdown</title><link>https://community.appian.com/thread/142221?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 12:36:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:46926b65-f25c-4462-97e4-ce7b52e227b1</guid><dc:creator>saifalikhan13</dc:creator><description>&lt;p&gt;&lt;a href="/members/stefanhelzle0001"&gt;Stefan Helzle&lt;/a&gt;&amp;nbsp;, Please refer to this example code.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1730118687861v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If I select a value in the dropdown field, the local local!dropdownVal will be updated.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1730118728838v2.png" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now, If I deselect the selected value by clicking on Placeholder i.e &amp;quot;Test&amp;quot;, the value of the variable will become null again.&lt;/p&gt;
&lt;p&gt;In line 11, by default the chart is showing all customers, and when the user selected a value, it will show a specific customer chart.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The problem is, when the initial value is being selected, the chart is generated in rule call at line 11 based upon the dropdown selection i.e the specific customer chart.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;If, the value is null back again, the chart is no showing the original version as it was by default.&lt;br /&gt;&lt;br /&gt;After value being null, there is a problem of referesh.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data refresh issues on deselection of a value from a dropdown</title><link>https://community.appian.com/thread/142220?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 12:30:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e082aadf-919b-4baf-941d-8f0110dbf3ee</guid><dc:creator>saifalikhan13</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!localVariables(
  local!dropdownVal,
  {
    a!dropdownField(
      choiceLabels: { &amp;quot;1&amp;quot;, &amp;quot;2&amp;quot;, &amp;quot;3&amp;quot;, &amp;quot;4&amp;quot;, &amp;quot;5&amp;quot; },
      choiceValues: { 1, 2, 3, 4, 5 },
      value: local!dropdownVal,
      saveInto: local!dropdownVal,
      placeholder: &amp;quot;Test&amp;quot;
    ),
    rule!S_Test_Chart(val: local!dropdownVal)
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data refresh issues on deselection of a value from a dropdown</title><link>https://community.appian.com/thread/142219?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 12:22:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:801911b2-5fd8-4510-aee3-37262f985fe9</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I am missing all relevant details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data refresh issues on deselection of a value from a dropdown</title><link>https://community.appian.com/thread/142218?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 12:05:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ab40ce51-f7f0-47a7-90a0-e976bfd195c8</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;Can we see the current code. How the data is passed to child interface (Charts). are you querying it on data parameter or querying it in local variable and passing it.&lt;br /&gt;Without code, only thing we can say is it&amp;#39;s because refresh behavior. try using Refreshvariable on var change in data that passed to Charts&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data refresh issues on deselection of a value from a dropdown</title><link>https://community.appian.com/thread/142216?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 11:22:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d6dcdb0f-93c9-4e69-90cb-9a0cb613bc45</guid><dc:creator>saifalikhan13</dc:creator><description>&lt;p&gt;&lt;a href="/members/stefanhelzle0001"&gt;Stefan Helzle&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>