<?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>Updating Progress Bar With Button</title><link>https://community.appian.com/discussions/f/user-interface/19349/updating-progress-bar-with-button</link><description>Hi! 
 I want to update a progress bar with a value retrieved from DB. For this, I use a Expression Rule that gives me this data. 
 To update the progress bar I use a button to update the progress bar value, calling the Expression Rule. I save this return</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Updating Progress Bar With Button</title><link>https://community.appian.com/thread/75713?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 17:22:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:313d82c3-873a-410d-9ae7-4c20fcbea01a</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Ok, so it&amp;#39;s not that.&lt;/p&gt;
&lt;p&gt;Second question: why are you running the same query twice, once into &lt;em&gt;local!rpaProgress&lt;/em&gt; and once for &lt;strong&gt;local!rpaProgressRefresh&lt;/strong&gt;?&amp;nbsp; It seems as though the latter isn&amp;#39;t actually used for anything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Updating Progress Bar With Button</title><link>https://community.appian.com/thread/75712?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 16:50:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e9208256-99ac-4f1b-9dd2-44ee5771a829</guid><dc:creator>isidro.omenac</dc:creator><description>&lt;p&gt;This is the code of the Expression Rule:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!rpaProgress: a!queryEntity(
    entity: cons!FSA_RPA_COVID_AREA_PROGRESS_ENTITY,
    query: a!query(
      logicalexpression: a!queryLogicalExpression(
        operator: &amp;quot;AND&amp;quot;,
        filters: {
          a!queryFilter(
            field: &amp;quot;covidAreaId&amp;quot;,
            operator: &amp;quot;=&amp;quot;,
            value: ri!covidAreaId
          )
        },
        ignoreFiltersWithEmptyValues: true
      ),
      pagingInfo: a!pagingInfo(
        startIndex: 1,
        batchSize: 50
      )
    ),
    fetchTotalCount: false
  ).data,
  {local!rpaProgress.tasksCompleted, local!rpaProgress.totalTasks}
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Updating Progress Bar With Button</title><link>https://community.appian.com/thread/75710?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 15:11:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aa7d983e-a9b1-46f8-bbdc-c80384081294</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;What is the code within &lt;em&gt;rule!FSA_GetRPAProgressByCovidAreaId()&lt;/em&gt;?&amp;nbsp; Based on what we&amp;#39;re seeing, I&amp;#39;m guessing there might be a load() used within that rule.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Updating Progress Bar With Button</title><link>https://community.appian.com/thread/75698?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 11:44:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3ad564f5-2a84-40f1-a29b-565cb9ba6553</guid><dc:creator>isidro.omenac</dc:creator><description>&lt;p&gt;No it isn&amp;#39;t refreshing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Updating Progress Bar With Button</title><link>https://community.appian.com/thread/75697?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 11:09:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e5b2d81a-fe75-4168-9a0e-7f24eb5f0c02</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Code like below did not refresh?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;saveInto: {
    a!save(
        target: local!rpaProgressRefresh,
        value: rule!FSA_GetRPAProgressByCovidAreaId(
            ri!FSA_CovidArea.id
        )
    )
},&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Updating Progress Bar With Button</title><link>https://community.appian.com/thread/75696?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 10:55:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:caeb5b1a-e726-40a8-8625-ba92f06b03ad</guid><dc:creator>isidro.omenac</dc:creator><description>&lt;p&gt;I tried it. But the value wasn&amp;#39;t refreshed. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Updating Progress Bar With Button</title><link>https://community.appian.com/thread/75695?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 10:51:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1cf564f8-db19-4d9e-9559-edb4fb7ed16b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I think the value in line 68 is not refreshed. I suggest to use an a!save() with value set to your rule in line 72 to fetch the data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>