<?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>Show results of an expression rule on Tempo?</title><link>https://community.appian.com/discussions/f/new-to-appian/18477/show-results-of-an-expression-rule-on-tempo</link><description>I have built and tested my first expression rule. I heard from a colleague that there is a simple way of displaying that as record, so I tried creating a new record object. My problem is now that I can only choose between data store entity, process model</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Show results of an expression rule on Tempo?</title><link>https://community.appian.com/thread/72759?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 09:45:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:db0cf669-85e5-44df-8b55-87dba62b580a</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Hi Florian&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So: since you have a connection to the datasource you could implement a Record Type using the &amp;#39;Entity-backed&amp;#39; model (that would be the most direct approach to exposing your datasource as a set of Records in Tempo):&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1584697252165v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You can thine configure the &amp;#39;list view&amp;#39;&amp;nbsp; of Records to just show the 3 columns that you&amp;#39;ve defined in your query entity (i.e. hide the other columns by explicitly not selecting them for display in the list). I&amp;#39;m sure there&amp;#39;s a good reason for your batchSize being set to 3 but we&amp;#39;d have to find another way of expressing that logic so as to only display 3 out of however many records there actually are.&lt;/p&gt;
&lt;p&gt;However: if your question is explicitly about how can I use the expression you&amp;#39;ve already defined to expose the results as records, then you could configure your Record type to use the &amp;#39;Expressio-backed&amp;#39; model:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1584697530248v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Then you can use your expression (modified to return a Datasubset). The documentation/tutorials should help you achieve this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show results of an expression rule on Tempo?</title><link>https://community.appian.com/thread/72758?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 09:28:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8b91a222-f81a-4f53-b61b-a13bcf3fd3c2</guid><dc:creator>fgrl</dc:creator><description>&lt;p&gt;I entered details in the reply to the previous post. My question is more architectural than technical and I did not find that answer in the tutorials (yet).&lt;/p&gt;
&lt;p&gt;My ultimate goal is to display only a subset of the respective source database Table somewhere on the Tempo page. I could of course build a new DB-View on the DB itself, but I was thinking that is architecturally cleverer to do it on Appian side as expression rule. I will need exactly the same subset later in my progress, that&amp;#39;s why an expression rule looks like the correct approach to me.&lt;/p&gt;
&lt;p&gt;What I am after is a way to preview my expression rule on the tempo page without using a process or interface. Is that possible at all?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show results of an expression rule on Tempo?</title><link>https://community.appian.com/thread/72757?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 09:19:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5bcca1e3-1782-4d58-a7fb-3849e6e7c6cc</guid><dc:creator>fgrl</dc:creator><description>&lt;p&gt;I have the following expression rule and I would like exactly the output which shows in the preview of the rule shown under records (or if that is not possible somewhere else on the Tempo page).&lt;/p&gt;
&lt;pre&gt;a!queryEntity(
  entity: cons!myENTITY,
  query: a!query(
    selection:a!querySelection(
      columns:{
        a!queryColumn(field:&amp;quot;id&amp;quot;),
        a!queryColumn(field:&amp;quot;amount&amp;quot;),
        a!queryColumn(field:&amp;quot;currency&amp;quot;),
      }
    ),
    pagingInfo: a!pagingInfo(
      startIndex: 1,
      batchSize: 3,
      sort:a!sortInfo(
        field:&amp;quot;amount&amp;quot;,
        ascending: false()
      )
    )
  ),
  fetchTotalCount: false
).data
&lt;/pre&gt;
&lt;p&gt;My hope is that it does not depend on whether the entity comes from an Appian DB or from an external DB (ideally the latter).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show results of an expression rule on Tempo?</title><link>https://community.appian.com/thread/72742?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 18:50:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:90563158-d4c7-463b-a0f1-0dd2982be858</guid><dc:creator>kara.peeler</dc:creator><description>&lt;p&gt;Yes, a little more information would help. But you&amp;#39;re in the right place for creating a record. You have to choose the source of the data for a record, and if you don&amp;#39;t have a process -- it&amp;#39;s likely that you&amp;#39;ll want &amp;quot;Data Store Entity,&amp;quot; which means that you&amp;#39;re querying the data from a database.&amp;nbsp;Is that the case? If so, you should first import the table structure through a CDT (and create a data store and data store entity at the same time).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Our free trial (&lt;a href="https://www.appian.com/platform/free-trial/"&gt;https://www.appian.com/platform/free-trial/&lt;/a&gt;) includes a records tutorial you can follow along with to build a record. Or, you can watch our course on records design at academy.appian.com.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show results of an expression rule on Tempo?</title><link>https://community.appian.com/thread/72734?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 16:57:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1560e215-1b2c-44ce-a9e9-6359a1a62e9f</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Hi Florian&lt;/p&gt;
&lt;p&gt;Could you elaborate a bit further on your use case? What is the source of the data that you want filtered and then displayed?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>