<?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>Is there a way to retain CDT values on page reload/refresh?</title><link>https://community.appian.com/discussions/f/new-to-appian/18378/is-there-a-way-to-retain-cdt-values-on-page-reload-refresh</link><description>I have a requirement in an application to retain values even if use refresh or reload the page. 
 Is there a way to retain CDT values on page reload/refresh?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Is there a way to retain CDT values on page reload/refresh?</title><link>https://community.appian.com/thread/72394?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 12:41:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f33c93e7-7743-41a3-8c4f-6796eb9805b4</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Agreed, this could potentially work, though it requires, perhaps, exponentially more manual setup and manual upkeep.&amp;nbsp; A slightly stronger solution might be to give a soft &amp;quot;save&amp;quot; button (not the default OOB one) that saves a CDT value to the DB when the user chooses; though using the same manual approach could also submit the task, save the values to PVs, then reopen the task which would perhaps be better.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to retain CDT values on page reload/refresh?</title><link>https://community.appian.com/thread/72393?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 12:28:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:87165902-14d2-48d1-ae4b-c0530a35257e</guid><dc:creator>ManuelHTG</dc:creator><description>&lt;p&gt;I guess the best solution (even though it is not a best practice) is that once the user enters a value, you do a do &amp;quot;saveInto&amp;quot; with a!writeToDataStoreEntity.&lt;/p&gt;
&lt;p&gt;I have never tried, but I guess this should work.&lt;/p&gt;
&lt;pre class="highlight"&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;                      &lt;span class="nf"&gt;a!textField&lt;/span&gt;&lt;span class="ow"&gt;(&lt;/span&gt;
                        &lt;span class="ss"&gt;label:&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span class="ow"&gt;,&lt;br /&gt;...&lt;br /&gt;...&lt;/span&gt;

                        &lt;span class="ss"&gt;saveInto:&lt;/span&gt; &lt;span class="nf"&gt;a!writeToDataStoreEntity&lt;/span&gt;&lt;span class="ow"&gt;(&lt;/span&gt;
                          &lt;span class="ss"&gt;dataStoreEntity:&lt;/span&gt; &lt;span class="no"&gt;cons!APP_DS_FORM&lt;/span&gt;&lt;span class="ow"&gt;,&lt;/span&gt;
                          &lt;span class="ss"&gt;valueToStore:&lt;/span&gt; &lt;span class="k"&gt;ri!myCDT&lt;/span&gt;&lt;span class="ow"&gt;,&lt;/span&gt;
...
                        &lt;span class="ow"&gt;)&lt;/span&gt;
                      &lt;span class="ow"&gt;)&lt;/span&gt;&lt;/pre&gt;
&lt;pre class="highlight"&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to retain CDT values on page reload/refresh?</title><link>https://community.appian.com/thread/72376?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 18:31:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e84c982f-cfbf-401c-af20-6b76746e9147</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;If the user&amp;#39;s data inputs are saved into Rule Input variables during a task in a live process instance, then doing a hard refresh will cause the browser to ask the user to confirm they want to leave the current page.&amp;nbsp; If the user insists, then I don&amp;#39;t know of any easy functionality by which to prevent their data from being cleared.&amp;nbsp; One fairly easy way to prevent this is to allow a user to save in-progress form values, which is built in functionality.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to retain CDT values on page reload/refresh?</title><link>https://community.appian.com/thread/72375?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 16:52:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:39e8908c-699a-4d92-9930-b39de2f8e6f4</guid><dc:creator>ahmedh518637</dc:creator><description>&lt;p&gt;Thanks for the response!&lt;/p&gt;
&lt;p&gt;Actually, I have an application where the user is attempting an entry test with some questions and a timer. While the user is answering questions, if a hard refresh is performed, it should be in the same position like his answers should remain there and not lost and timer should be at the same time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to retain CDT values on page reload/refresh?</title><link>https://community.appian.com/thread/72374?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 16:45:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0612f424-d9da-4ab4-9e8d-891431410615</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;More info is needed in order to help with this - for instance, what &amp;quot;page&amp;quot; are we talking about?&amp;nbsp; Are you talking about using the hard refresh in-browser (like hitting F5), or some internal refresh button/link on the interface?&amp;nbsp; What CDT values are you talking about and where are they currently being stored?&amp;nbsp; Can you give a big picture overview of the current behavior in a bit more detail, and what you would hope could happen instead?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>