<?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 can I insert a value into database?</title><link>https://community.appian.com/discussions/f/general/19745/how-can-i-insert-a-value-into-database</link><description>Hello I would like to know how to insert data into a database, my database is called &amp;quot;oapedidos&amp;quot;, 
 
 
 I have a constant created to perform the queries, 
 
 and a CDT. 
 
 I have an interface 
 
 in which I simply write the name of an order and its status</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How can I insert a value into database?</title><link>https://community.appian.com/thread/77241?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 15:27:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48169244-95c2-443d-80f6-158902eedbf5</guid><dc:creator>Gonzalo Fernandez</dc:creator><description>&lt;p&gt;Ahhh OK thank you very much!&lt;br /&gt;Your answer helped me a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I insert a value into database?</title><link>https://community.appian.com/thread/77240?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 15:23:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cfca7d6a-b0e8-4893-ad0a-4e2de8ee647c</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="51139" url="~/discussions/f/general/19745/how-can-i-insert-a-value-into-database/77238"]they are erased in the interface [/quote]
&lt;p&gt;Oh - this is just because the text fields don&amp;#39;t have a &amp;quot;value&amp;quot; parameter.&amp;nbsp; The value parameter is the only thing that will enable the field to show the information you just typed in - without it, the information you type will correctly get stored in the rule input or local variable referenced by &amp;quot;saveInto&amp;quot;, but the value on the field itself will (seemingly) &amp;quot;erase&amp;quot; after entry.&amp;nbsp; Nothing&amp;#39;s really getting &amp;quot;erased&amp;quot; though, it&amp;#39;s just that the field doesn&amp;#39;t think it has any value to show.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I insert a value into database?</title><link>https://community.appian.com/thread/77238?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 15:19:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f205db4f-2563-4b6c-b8b4-af9c243f98f7</guid><dc:creator>Gonzalo Fernandez</dc:creator><description>&lt;p&gt;Yes, until I press the &amp;quot;ALTA&amp;quot; button, the data is not entered. The point is that when they lose focus while I am writing the data they are erased in the interface although if they are registered in rule inputs, it was to make it more logical that the data would remain and after clicking leave the text boxes empty, not before. Sorry if I don&amp;#39;t explain myself correctly&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I insert a value into database?</title><link>https://community.appian.com/thread/77236?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 15:08:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:11dcb8d3-2bd2-4ee9-a112-235c8e2bf126</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;In your interface, no database write would happen until you press the &amp;quot;ALTA&amp;quot; button.&amp;nbsp; I&amp;#39;m a little confused about what you seem to be experiencing instead.&lt;/p&gt;
&lt;p&gt;The error message is correct - only interfaces with no Rule Inputs can be saved as a Report.&amp;nbsp; Interfaces with Rule Inputs need to be called from User Input Tasks within a process, and/or as sub interfaces from a parent interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I insert a value into database?</title><link>https://community.appian.com/thread/77233?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 15:02:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:50c9881f-daa6-48f5-9576-4a0ae8b0f7a5</guid><dc:creator>Gonzalo Fernandez</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/912x151/__key/communityserver-discussions-components-files/11/pastedimage1602687726829v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;There appears on the right the inserted data that will be inserted into the database without having pressed the button. I would like them not to be erased before pressing the button&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I insert a value into database?</title><link>https://community.appian.com/thread/77232?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 15:00:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1da497b7-e1c5-4b8d-9744-cadfd98944e1</guid><dc:creator>Gonzalo Fernandez</dc:creator><description>&lt;p&gt;Thanks for responding, now I see that the program works, I have been able to upload the data to the database but the problem is that when I write for example &amp;quot;A1021&amp;quot; in &amp;quot;Referencia del pedido&amp;quot; and &amp;quot;pending&amp;quot;, the status of the order, the text that I have written is deleted, What I want is that the text remains until I press the &amp;quot;ALTA&amp;quot; button, then the text of those text boxes is deleted and the insertion is made to the database.&lt;/p&gt;
&lt;p&gt;Apart from that I cannot save this interface as a report because it says this.&amp;quot;This interface may not be saved as a report because it has one or more inputs&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I insert a value into database?</title><link>https://community.appian.com/thread/77228?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 14:27:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e709c72-026c-430a-a199-4597b0538201</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Your code looks pretty close to correct currently - what happens when you press &amp;quot;Alta&amp;quot;?&lt;/p&gt;
&lt;p&gt;Secondarily: i&amp;#39;m not sure what you&amp;#39;re asking about &amp;quot;UNFOCUS&amp;quot; - can you describe with a bit more detail the behavior you&amp;#39;re hoping to achieve?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>