<?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>How do I retain values in Local Variable after a!startProcess</title><link>https://community.appian.com/discussions/f/user-interface/39010/how-do-i-retain-values-in-local-variable-after-a-startprocess</link><description>I have a button on an interface that is used to start Process using a!startProcess in the background. Now I want the values of the field to be retained. Once the process the completed, all the local variables are refreshed to empty or null values. How</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How do I retain values in Local Variable after a!startProcess</title><link>https://community.appian.com/thread/147569?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 15:28:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e277dac0-403f-4fa6-8778-662f890b127f</guid><dc:creator>arib_Anwar</dc:creator><description>&lt;p&gt;I found the issue, it was with my definition of local Variable. Thanks for helping me pin point this. I was assuming it&amp;#39;s some kinda behaviour of startProcess to revert the values.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I retain values in Local Variable after a!startProcess</title><link>https://community.appian.com/thread/147568?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 15:26:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:630c215a-4a43-4e44-a5d7-9c3d53189a38</guid><dc:creator>arib_Anwar</dc:creator><description>&lt;p&gt;Nope the Submit is false, but I found my mistake. When defining the variable I was using an IF Condition and each time the condition was false it reverted to {} Empty value. Such a silly mistake I overlooked.&lt;/p&gt;
&lt;p&gt;nevrtheleass I have used refreshvariable and switched to refreshOnReferencedVarChange to FALSE. Thanks for helping me debug this step by step.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I retain values in Local Variable after a!startProcess</title><link>https://community.appian.com/thread/147567?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 15:20:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:46e54bdb-c392-4b70-9427-c8bdc3d2bea8</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;What is this &amp;quot;Save Draft&amp;quot; button doing? Does it submit?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I retain values in Local Variable after a!startProcess</title><link>https://community.appian.com/thread/147565?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 14:47:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:012dfca2-69e8-4ff6-86fc-a1492ff2744c</guid><dc:creator>arib_Anwar</dc:creator><description>&lt;p&gt;I&amp;#39;m passing this value via a local!Variable to a separate interface , wouldn&amp;#39;t it be redundant to save localVariable back to the same Variable?&lt;/p&gt;
&lt;p&gt;Tried this approach as well just to try my luck,&amp;nbsp; but alas!&lt;pre class="ui-code" data-mode="text"&gt;onSuccess:{
                a!save(local!draftBtnClicked, true),
                a!save(ri!attestationDetails, fv!processInfo.pv.attestationDetails),
                a!save(ri!questions, fv!processInfo.pv.questions),
                a!save(ri!reminderEmailDetails, fv!processInfo.pv.reminderDetails),
                
                a!save(local!initialReminder, local!initialReminder)
                }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s how my sectionLayout that hold the particular screen is: Is this a wrong approach?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!sectionLayout(
                  contents: {
                    rule!EA_captureReminderDetails(
                      attestationDetails: ri!attestationDetails,
                      initialReminder: local!initialReminder,
                      adhocReminderEmail: local!adhocReminder,
                      isModifybuttonSelected: local!isModify,
                      /*attestationAddInfo: ri!attestationAddInfo,*/
                      parentAttestationAddInfo: ri!parentAttestationAddInfo
                    )
                  },
                  showWhen: local!activeStep = 4
                ),&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I retain values in Local Variable after a!startProcess</title><link>https://community.appian.com/thread/147564?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 14:38:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ba1b1eb-cffb-4d44-bb2f-c22190d85422</guid><dc:creator>arib_Anwar</dc:creator><description>&lt;p&gt;I have my local Variable local!initialReminder which is sent to a separate section Inteface, The values are populated there.&lt;/p&gt;
&lt;p&gt;My Button SaveDraft has a a!startProcess inside a SaveInto parameter. before that I&amp;#39;m doing a bunch of saves but that&amp;#39;s on different CDT. OnSuccess I&amp;#39;m further doing some saves but those are on Process variables again different CDTs, My local!initialReminder&amp;nbsp; is not touched. Except this particular save which passes this variable&lt;pre class="ui-code" data-mode="text"&gt;a!save(
                ri!reminderEmailDetails,
                rule!EA_prepareReminderList(
                  initialReminder: local!initialReminder,
                  beforeDueDateReminder: local!beforeDueDateReminder,
                  afterDueDateReminder: local!afterDueDateReminder,
                  finalReminder: local!finalReminder,
                  isPreDeadLineReminderChecked: local!ispreDeadLineReminder,
                  isPostDeadLineReminderChecked: local!ispostDeadLineReminder,
                  isBreachReminderChecked: local!isBreachReminder,
                  adhocReminder: local!adhocReminder
                )
              ),&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also this save is before my startProcess.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I retain values in Local Variable after a!startProcess</title><link>https://community.appian.com/thread/147561?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 14:02:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c1638ec9-5d9a-4a95-900a-4f65c04b63c9</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;I would assume that you can save to the local variable via the onSuccess.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I retain values in Local Variable after a!startProcess</title><link>https://community.appian.com/thread/147560?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 14:00:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d7f1add0-2c6a-4794-9fb7-f6323c64dbec</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;In my interfaces a!startProcess does not refresh anything unless I add a bunch of a!save(). Can you share some code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>