<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ab.edge-technologies.com/docs/index.php?action=history&amp;feed=atom&amp;title=Appboard%2F2.6%2Fbuilder%2Fwidgets%2Factions%2Fwrite_static_value</id>
	<title>Appboard/2.6/builder/widgets/actions/write static value - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://ab.edge-technologies.com/docs/index.php?action=history&amp;feed=atom&amp;title=Appboard%2F2.6%2Fbuilder%2Fwidgets%2Factions%2Fwrite_static_value"/>
	<link rel="alternate" type="text/html" href="http://ab.edge-technologies.com/docs/index.php?title=Appboard/2.6/builder/widgets/actions/write_static_value&amp;action=history"/>
	<updated>2026-04-14T19:16:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>http://ab.edge-technologies.com/docs/index.php?title=Appboard/2.6/builder/widgets/actions/write_static_value&amp;diff=8236&amp;oldid=prev</id>
		<title>imported&gt;Jason.nicholls: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ab.edge-technologies.com/docs/index.php?title=Appboard/2.6/builder/widgets/actions/write_static_value&amp;diff=8236&amp;oldid=prev"/>
		<updated>2015-04-30T10:59:31Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:59, 30 April 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Jason.nicholls</name></author>
	</entry>
	<entry>
		<id>http://ab.edge-technologies.com/docs/index.php?title=Appboard/2.6/builder/widgets/actions/write_static_value&amp;diff=8235&amp;oldid=prev</id>
		<title>imported&gt;Jason.nicholls: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ab.edge-technologies.com/docs/index.php?title=Appboard/2.6/builder/widgets/actions/write_static_value&amp;diff=8235&amp;oldid=prev"/>
		<updated>2014-06-26T15:52:22Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:Write Static Value}}&lt;br /&gt;
[[Category:AppBoard 2.6]]&lt;br /&gt;
The &amp;quot;Write Static Value&amp;quot; action provides a way to write a static value back to the data source based on the selected item. This action only works if the data source supports updates, and is configured appropriately if required.&lt;br /&gt;
&lt;br /&gt;
A simple example and use of this action would be to set an acknowledged flag on a selected ticket in a table widget. In this case either a database table or query would be configured to retrieve the list of tickets, a widget configured to show the tickets, and the action created to set a specific field in order to mark it as acknowledged (e.g. the setting the &amp;quot;Acknowledged&amp;quot; field to &amp;quot;Yes&amp;quot;). See the example use case further down this page.&lt;br /&gt;
&lt;br /&gt;
As with any widget action it&amp;#039;s possible to configure these in context, multiple actions if it&amp;#039;s desired to set multiple fields, and action menus can be built if different operations need to be presented to the end-user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Supporting Data Source Types ===&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Data Source Type&lt;br /&gt;
!Details&lt;br /&gt;
|-&lt;br /&gt;
|CSV file/dir&lt;br /&gt;
|no configuration required on data source&lt;br /&gt;
|-&lt;br /&gt;
|Database Table&lt;br /&gt;
|automatic for entities with primary keys defined&lt;br /&gt;
|-&lt;br /&gt;
|Database Query&lt;br /&gt;
|each entity (query) needs a specific SQL update statement defined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How To Create a Write Static Value Action ==&lt;br /&gt;
&lt;br /&gt;
For instructions on adding an Action to a Widget, see the general instructions in [[appboard/2.6/builder/widgets/actions#How_To_Create_an_Action_in_a_Widget|How To Create an Action in a Widget]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How To Configure a Write Static Value Action ==&lt;br /&gt;
Perform the following steps to configure the &amp;quot;Write Static Value&amp;quot; Action for a Widget:&lt;br /&gt;
&lt;br /&gt;
# Follow the instructions above to create the Action in the &amp;lt;b&amp;gt;Widget Actions&amp;lt;/b&amp;gt; panel.&lt;br /&gt;
# &amp;lt;b&amp;gt;Name&amp;lt;/b&amp;gt;: Enter a name for this Action.  For convenience, a default name is provided.  The Name is not used anywhere else in AppBoard, and only displayed on this configuration page.&lt;br /&gt;
# &amp;lt;b&amp;gt;On selection of&amp;lt;/b&amp;gt;:&lt;br /&gt;
## Select &amp;quot;any&amp;quot; or &amp;quot;specific&amp;quot; for the type of data selection by the User that will trigger the Action. When selecting &amp;quot;specific&amp;quot;, perform the following additional steps:&lt;br /&gt;
### Click the &amp;lt;b&amp;gt;Filter&amp;lt;/b&amp;gt; button. The &amp;lt;b&amp;gt;Filter Editor&amp;lt;/b&amp;gt; is displayed.&lt;br /&gt;
### Click &amp;lt;b&amp;gt;Add Rule&amp;lt;/b&amp;gt; to create one or more rules that indicate what data should trigger the Action, when selected.&lt;br /&gt;
### Click &amp;lt;b&amp;gt;Close&amp;lt;/b&amp;gt; to save the Filter settings.&lt;br /&gt;
## Select the Data Source name. When the Widget is run, selection of data in this Data Source will trigger the Action. &lt;br /&gt;
# Enter the following information:&lt;br /&gt;
## &amp;lt;b&amp;gt;Field Name&amp;lt;/b&amp;gt;: Select the name of the field for the user-selected record that AppBoard will update.&lt;br /&gt;
## &amp;lt;b&amp;gt;Value&amp;lt;/b&amp;gt;: Enter the value that AppBoard will write for the indicated field in the user-selected record.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Sample Use Case ==&lt;br /&gt;
&lt;br /&gt;
Suppose ticket data is retrieved via a database query to a ticketing system. The query could be something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
select TicketID, CustomerID, `IP Address`, Error, Acknowledged from TicketTable&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And the &amp;#039;&amp;#039;&amp;#039;raw&amp;#039;&amp;#039;&amp;#039; data returned from the query:&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TicketID&lt;br /&gt;
! CustomerID&lt;br /&gt;
! IP Address&lt;br /&gt;
! Error&lt;br /&gt;
! Acknowledged&lt;br /&gt;
|-&lt;br /&gt;
| 41211&lt;br /&gt;
| 0001&lt;br /&gt;
| 172.21.38.220&lt;br /&gt;
| License Expired&lt;br /&gt;
| No&lt;br /&gt;
|-&lt;br /&gt;
| 41212&lt;br /&gt;
| 0001&lt;br /&gt;
| 172.21.38.226&lt;br /&gt;
| Server Not Responding&lt;br /&gt;
| No&lt;br /&gt;
|-&lt;br /&gt;
| 41213&lt;br /&gt;
| 0002&lt;br /&gt;
| 172.26.11.101&lt;br /&gt;
| Slow response time&lt;br /&gt;
| No&lt;br /&gt;
|-&lt;br /&gt;
| 41214&lt;br /&gt;
| 0002&lt;br /&gt;
| 172.21.38.105&lt;br /&gt;
| License Warning&lt;br /&gt;
| &amp;#039;&amp;#039;Yes&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
| 41215&lt;br /&gt;
| 0002&lt;br /&gt;
| 172.21.38.313&lt;br /&gt;
| Temperature too high&lt;br /&gt;
| &amp;#039;&amp;#039;Yes&amp;#039;&amp;#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Within AppBoard the administrator creates a Table widget driven by this data but also configures a client side filter to filter out rows that have already been acknowledged, saving the end-user some time by only showing the outstanding tickets. Therefore the sub-set of tickets the end-user sees would be:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TicketID&lt;br /&gt;
! CustomerID&lt;br /&gt;
! IP Address&lt;br /&gt;
! Error&lt;br /&gt;
! Acknowledged&lt;br /&gt;
|-&lt;br /&gt;
| 41211&lt;br /&gt;
| 0001&lt;br /&gt;
| 172.21.38.220&lt;br /&gt;
| License Expired&lt;br /&gt;
| No&lt;br /&gt;
|-&lt;br /&gt;
| 41212&lt;br /&gt;
| 0001&lt;br /&gt;
| 172.21.38.226&lt;br /&gt;
| Server Not Responding&lt;br /&gt;
| No&lt;br /&gt;
|-&lt;br /&gt;
| 41213&lt;br /&gt;
| 0002&lt;br /&gt;
| 172.26.11.101&lt;br /&gt;
| Slow response time&lt;br /&gt;
| No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, the administrator configures a Write Static Value on the table widget and sets the Field Name to &amp;#039;&amp;#039;&amp;#039;Acknowledged&amp;#039;&amp;#039;&amp;#039; and the Value to &amp;quot;Yes&amp;quot;. When this happens the field is updated back to the database and all end-users will no longer see the ticket on next data collection refresh as it will be filtered by the client side filter.&lt;br /&gt;
&lt;br /&gt;
In order for this to work it would also be necessary to configure an Update Statement on the database query. Note the &amp;#039;&amp;#039;:fieldName&amp;#039;&amp;#039; is substituted by the fields from the selected row or the static value of the action if that particular field is the configured &amp;#039;&amp;#039;&amp;#039;Field Name&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;update TicketTable set Acknowledged=:Acknowledged where TicketID=:TicketID&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Jason.nicholls</name></author>
	</entry>
</feed>