<?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>Update value in database when approving a task</title><link>https://community.appian.com/discussions/f/data/10640/update-value-in-database-when-approving-a-task</link><description>Hello everybody, 
 I need some help, it&amp;#39;s probably really easy but I&amp;#39;m having some trouble. I started using Appian 10 days ago and I created a simple application. There&amp;#39;s a dynamic form/wizard you can fill in. The data is stored in a data entity. The</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Update value in database when approving a task</title><link>https://community.appian.com/thread/46479?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2017 09:03:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b62c4200-7ede-45ca-b121-67f1e9ecb968</guid><dc:creator>sjoerds0001</dc:creator><description>Thanks for all the help. I tried it but it didn&amp;#39;t work. I&amp;#39;m afraid I&amp;#39;ll have to leave it like this. I&amp;#39;m presenting my results of Appian today and have run out of time. The main point of my activities was to learn how Appian works with the available functions and I achieved that goal more than anticipated. Thanks!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update value in database when approving a task</title><link>https://community.appian.com/thread/46465?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 14:27:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:851710bc-68b2-4e5c-9cdf-8ed85b79b1a5</guid><dc:creator>Mike Schmitt</dc:creator><description>What &lt;a href="/members/sergeiz"&gt;sergeiz&lt;/a&gt; said above is likely to be the cause - however if you still can&amp;#39;t get it, there&amp;#39;s a lot of other info we need (or could use at least) to help you.  For example, the configuration (both input and output) of both WTDS nodes, and the output configuration (if any) of your user input task.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update value in database when approving a task</title><link>https://community.appian.com/thread/46464?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 14:14:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:be8bcc8f-2e6e-4b7b-aab7-bdd84305aa5b</guid><dc:creator>sergeiz</dc:creator><description>When you first save a record you need to save its id. Then this id will be used for updating the existing record instead of creating a new one.&lt;br /&gt;
&lt;br /&gt;
For example, add Custom Output on you first save WTDS and save AC!StoredValues.id into your process variable &amp;quot;myRecord.id&amp;quot;.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update value in database when approving a task</title><link>https://community.appian.com/thread/46462?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 08:15:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d85012b3-97f3-4f88-b513-b0f0c08b1ed8</guid><dc:creator>sjoerds0001</dc:creator><description>&lt;p&gt;Hello Mike,&lt;br /&gt; Thanks for your reply.&lt;br /&gt; Yeah I thought so too. I tried to add a second WTDS but it did not work. Probably my own fault. &lt;br /&gt; Some background info on this:&lt;br /&gt; &lt;br /&gt; I have one data store and one data type entity. The data type entity contains all variables including the form data and approval variable. When the process model goes through the first WTDS it writes all form data in the data store. In that case everything has a value except approval (that stays empty until it gets a value when the form is approved/rejected in a task). Then we get the user input task which shows the form &amp;#39;read only&amp;#39; with radio buttons &amp;#39;approve/reject&amp;#39; and a &lt;strong&gt;second&lt;/strong&gt; submit button, different from the one filling in the form. When I add a second WTDS node after the UIT node with the same parameters as the first one it doesn&amp;#39;t change anything. The values remain unchanged.&lt;/p&gt;
&lt;p&gt;**UPDATE**&lt;/p&gt;
&lt;p&gt;I created a second WTDS again. Made the inputs different. I removed the parent value and filled values for each one except approval. In the second WTDS I did the same but here I did&amp;nbsp;it the other way around, giving only approval a value. Which brings me to the next problem. There are two entries created now. One with the form data without an approval value and another without form data with only the approval value. You can see it on the picture of the grid below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/16/pastedimage1498727597977v1.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1498727597977v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That needs to be one entry, so it will need to have the same ID.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update value in database when approving a task</title><link>https://community.appian.com/thread/46439?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 14:45:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ac63997-84e7-4d05-a4d5-8686402de4f7</guid><dc:creator>Mike Schmitt</dc:creator><description>I think we might need a little more detail into your use case when you are available.  For example, you didn&amp;#39;t specifically mention that you&amp;#39;re using a start form, but now that I re-read your original post and replies, I now assume you are using one (the first &amp;quot;submit&amp;quot; button).&lt;br /&gt;
&lt;br /&gt;
However it still seems that you are expecting a value in the database to be updated after the user input task (with the second &amp;quot;submit&amp;quot; button) is submitted; but from the screenshot of your process flow, we can see that there is no Write To Data Store node following the task - so we would not expect any update to occur after the approval task is submitted.  So either your current WTDS node is in the wrong place, or perhaps alternatively, you might need a second one placed after the approval task.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update value in database when approving a task</title><link>https://community.appian.com/thread/46438?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 14:35:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a49e8f7-c4c1-4b8a-94a5-0224faded3d3</guid><dc:creator>sjoerds0001</dc:creator><description>&lt;p&gt;Isn&amp;#39;t it already?&lt;/p&gt;
&lt;p&gt;Will be back tomorrow morning (Europe time)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update value in database when approving a task</title><link>https://community.appian.com/thread/46437?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 14:34:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2b07b869-e03e-44ce-8b94-3bb34180191f</guid><dc:creator>sjoerds0001</dc:creator><description>&amp;quot;Hi, I assume the process model shows the task with the approval radio button.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I don&amp;#39;t think so. What do you mean exactly? The boolean value for approval is located in the data type just like all the other variables.&lt;br /&gt;
&lt;br /&gt;
If I place the &amp;quot;Write to Data store entity&amp;quot; after the &amp;quot;User input task&amp;quot; wouldn&amp;#39;t the data then only be stored when the case is approved/rejected? I want cases to be show in the grid before and after they&amp;#39;re approved/rejected. In the grid one of the sections displayed the value for approval (true, false or empty)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update value in database when approving a task</title><link>https://community.appian.com/thread/46436?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 14:33:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:91b97e64-2329-4cac-9e7c-3422b64c98a5</guid><dc:creator>Mike Schmitt</dc:creator><description>I agree with &lt;a href="/members/juergeng"&gt;juergeng&lt;/a&gt; above - you wouldn&amp;#39;t expect the database to be updated after the task is submitted, if the database update node is placed before the task in the process flow.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update value in database when approving a task</title><link>https://community.appian.com/thread/46434?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 14:26:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1160ab1b-5d71-494d-a445-65046ca6f928</guid><dc:creator>juergeng</dc:creator><description>Hi, I assume the process model shows the task with the approval radio button. My question / suggestion is: if in the user task the approval is been set, shouldn&amp;#39;t be the SmartNode &amp;#39;Write to Data store entity&amp;#39; placed after the User input task?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>