<?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>Exception Save Data</title><link>https://community.appian.com/discussions/f/general/15005/exception-save-data</link><description>I have a large form that the users usually complete in one session where the data is written to a db upon submit. In some instances the user will start inserting data into the form but then leave their desk. We have a requirement to abandon the form after</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Exception Save Data</title><link>https://community.appian.com/thread/67202?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 09:06:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6849b7ec-670a-4344-b27a-49617561634b</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;I&amp;#39;m curious - why would the form be &amp;quot;too complex&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Exception Save Data</title><link>https://community.appian.com/thread/67201?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 09:02:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:36e9799a-6333-4596-9015-e9db0e14f5c0</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;You could&amp;nbsp;use a!writeToDataStore() directly from the Form (you could call this after EVERY field&amp;#39;s value is saved!) although:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;that would have to mean every column in the DB (except the Primary Key) would have to be optional (NULLable) to allow the data to be stored with missing column values&lt;/li&gt;
&lt;li&gt;make the interface very chatty (not sure what the performance impact would be)&lt;/li&gt;
&lt;li&gt;you&amp;#39;d have to find a provide a means of removing the data from the database as the flip-side of cancelling out of the form (although I think this would be a trivial case of detecting the Cancel event and using either the Delete from Datastore Smart Service in Process or its a! equivalne tin the form)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;(I just had a brief play around on this and it appears to work: accumulate the data in the correct type in a rule input; in any given field&amp;#39;s saveInto: save the value to the correct attribute and then follow up immediately with an a!writeToDataStoreEntity. In the onSuccess save the fv!storedValues back to the rule input value so that you now have the generated key...and rinse and repeat for every field!)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Exception Save Data</title><link>https://community.appian.com/thread/67128?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 20:39:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:36e3ab87-7604-4777-80d8-49f5249bf0af</guid><dc:creator>pauls0003</dc:creator><description>&lt;p&gt;Normally I&amp;#39;d agree. However in thi case the form is to complex for either solution. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Exception Save Data</title><link>https://community.appian.com/thread/67125?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 19:55:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2e7252a7-9134-4ea6-8905-35aede37abd9</guid><dc:creator>Robert Shankin</dc:creator><description>&lt;p&gt;This type of thing comes up a lot.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s hard to package the response up into a single answer that suits every use case because the needs of every enterprise vary.&lt;/p&gt;
&lt;p&gt;One thing you could try is to separate sections of the form down into a series of smaller &amp;quot;wizard&amp;quot; style forms.&amp;nbsp; As the users move from one form to the next, you can save the data from each form.&amp;nbsp; Alternatively, you could use write to data store from SAIL (a!writeToDataStoreEntity()) and capture each field as the data is entered.&amp;nbsp; Again, not every solution works for each situation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>