<?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>After updating the value in the database, it should reflect in the screen</title><link>https://community.appian.com/discussions/f/user-interface/17414/after-updating-the-value-in-the-database-it-should-reflect-in-the-screen</link><description>I want the data to get updated in the interface in a site soon after a database operation without refreshing the page. I would like to get suggestions regarding how to implement the same.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: After updating the value in the database, it should reflect in the screen</title><link>https://community.appian.com/thread/68636?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 15:28:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1f970245-f235-4002-aac9-345f9cb2ddde</guid><dc:creator>charanrajkrishnap0001</dc:creator><description>&lt;p&gt;&lt;a href="/members/anjaliv"&gt;anjaliv&lt;/a&gt; - Use Stored Values in the&amp;nbsp; to save the data into PV and return it back to the screen.&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/DSE_5F00_on_5F00_Success.JPG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After updating the value in the database, it should reflect in the screen</title><link>https://community.appian.com/thread/68599?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 21:52:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e3bf208d-ab35-468b-a474-e616657fa834</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;As an aside: the ability to &amp;quot;like&amp;quot; individual comments here (as opposed to upvoting them as a correct answer) is sorely missed - there are all kinds of situations where I wish I could click &amp;quot;like&amp;quot; on someone&amp;#39;s comment for some reason or other without voting for it as a solution in the context of the original post.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;cc: &lt;a href="/members/robert.shankin"&gt;Robert Shankin&lt;/a&gt;, &lt;a href="/members/april.schuppel"&gt;April Schuppel&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After updating the value in the database, it should reflect in the screen</title><link>https://community.appian.com/thread/68597?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 21:43:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08000d18-c5ce-4c71-93a2-edf6dd09d221</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Good points by the other comments - I think a lot more description about what you&amp;#39;re trying to do and how it&amp;#39;s working now would be helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After updating the value in the database, it should reflect in the screen</title><link>https://community.appian.com/thread/68595?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 21:40:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b18e9fdb-53bc-4bcc-a72e-4005db1723d6</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Again this partly depends on the particulars of your implementation, but in the case where you&amp;#39;re on a Record form and you&amp;#39;ve initiated a Related Action from there, and you&amp;#39;re returning to the form from the Related Action but still apparently seeing old data (which I&amp;#39;ve experienced fairly often) - the answer is to maintain Process Chaining within the process model at least up until the WTDS node - otherwise when the first non-chained process flow is hit, the user will return to the form instantly and probably before the WTDS node can complete.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After updating the value in the database, it should reflect in the screen</title><link>https://community.appian.com/thread/68594?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 21:39:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4d70062-47f2-4434-831e-eab0f52fffae</guid><dc:creator>Robert Shankin</dc:creator><description>&lt;p&gt;is this process 100% asynchronous, i.e. the user never leaves the record?&lt;br /&gt;OR&lt;br /&gt;does the user leave the record when this process is started via a related action that navigates them to a task form that they would submit.&lt;/p&gt;
&lt;p&gt;I know it&amp;#39;s very specific, but if it&amp;#39;s the latter, you can try activity chaining from the first flow of the process to at least the flow that follows the write to data store entity.&amp;nbsp; This would ensure that the user isn&amp;#39;t navigated back to the record until after the write is completed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After updating the value in the database, it should reflect in the screen</title><link>https://community.appian.com/thread/68593?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 21:29:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f6552765-828c-41ef-9835-97bb76649bd5</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Is the database update initiated by the user on the form or is it a completely asynchronous activity? If it&amp;#39;s asynchronous from the interface, then using the refreshVariable is probably your only option. However, if the database update is triggered by the user on the interface, you might be able to use the a!writeToDataStoreEntity() function instead of a process model.&amp;nbsp;This function lets you receive a response from the database with the data written after it completes using the onSuccess parameter. See this page for more information:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/latest/recipe-use-the-write-to-data-store-entity-smart-service-function-on-an-interface.html"&gt;https://docs.appian.com/suite/help/latest/recipe-use-the-write-to-data-store-entity-smart-service-function-on-an-interface.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After updating the value in the database, it should reflect in the screen</title><link>https://community.appian.com/thread/68591?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 21:01:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:68b09357-6828-467c-a0c3-4520700f6171</guid><dc:creator>anjaliv</dc:creator><description>&lt;p&gt;It is a process model with a Write to Data Store Node.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After updating the value in the database, it should reflect in the screen</title><link>https://community.appian.com/thread/68590?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 21:00:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f8d9448a-557b-4b98-915e-9e836daf33b6</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;What method of database save are you referring to?&amp;nbsp; Is it a process model with a Write to Data Store node, or an on-form database save, or something else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After updating the value in the database, it should reflect in the screen</title><link>https://community.appian.com/thread/68589?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 20:26:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b0aa5c79-a371-479c-b4a8-a6d00ae42422</guid><dc:creator>anjaliv</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;did try using refreshVariable, but it is taking about 30 seconds to change. Is there any other way which we can use so that the changes reflect immediately after the database save?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After updating the value in the database, it should reflect in the screen</title><link>https://community.appian.com/thread/68588?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 19:00:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:24f19ea9-ef3b-4ae3-97f4-2d3ae5ea136e</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I think your best bet is to use the a!refreshVariable() function inside a!localVariables():&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/fnc_evaluation_a_refreshvariable.html"&gt;https://docs.appian.com/suite/help/latest/fnc_evaluation_a_refreshvariable.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This function can refresh the interface on an interval to show changes after a database operation. There are also a few interface patterns that describe how to do this:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/latest/recipe-refresh-until-asynchronous-action-completes.html"&gt;https://docs.appian.com/suite/help/latest/recipe-refresh-until-asynchronous-action-completes.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>