<?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>Question on using a!query with grids</title><link>https://community.appian.com/discussions/f/user-interface/7301/question-on-using-a-query-with-grids</link><description>i have a grid that get all columns using a!query except one column is calculated by a rule using apply(rule , data) when the user try to sort using the column that has calculated data the sorting fails and the error message display that the column doesn</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Question on using a!query with grids</title><link>https://community.appian.com/thread/29607?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2016 20:35:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:618d7c4c-8c6a-4d3d-add0-5cd09f01081c</guid><dc:creator>marky</dc:creator><description>Creating the dictionary will have to be done in the load (or else the paging won&amp;#39;t work correctly).  I think the better approach is to build and optimize a view with the additional calculated column, that way the data can be retrieved in a with as well.  There are some ways to handle sorting paging for a calculated column where the data must be in a with, but those options are more advanced and can be messy.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question on using a!query with grids</title><link>https://community.appian.com/thread/29579?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2016 06:31:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:449229ac-b3fa-4f12-a0a1-8ce431b7ad1a</guid><dc:creator>vishnuv</dc:creator><description>Below link will help you as well&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/help/16.1/SAIL_Recipes.html#Show_Calculated_Columns_in_a_Grid"&gt;forum.appian.com/.../SAIL_Recipes.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question on using a!query with grids</title><link>https://community.appian.com/thread/29576?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2016 05:48:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9fb65c7d-d890-4e36-be56-c8e80f73dc4c</guid><dc:creator>monikar</dc:creator><description>I second the solution given by Benjamin.&lt;br /&gt;Hi hussams214,&lt;br /&gt;&lt;br /&gt;You can always create a dictionary of final data you want to display. &lt;br /&gt;&lt;br /&gt;And you can also try the following approach:&lt;br /&gt;&lt;br /&gt;1. Create a Dummy CDT for the display purpose which will not have any entity associated with it. Basic structure columns can be textColumn1, textColumn2, textColumn3 and so on.&lt;br /&gt;2. Create a rule to construct the cdt data with given inputs. Sample code of the rule can be like: &lt;br /&gt;&lt;br /&gt;load(&lt;br /&gt;  apply(&lt;br /&gt;   type!displayCDT(&lt;br /&gt;      textColumn1: _,&lt;br /&gt;      textColumn2: _,&lt;br /&gt;      textColumn3: _&lt;br /&gt;    ),&lt;br /&gt;    merge(&lt;br /&gt;      {&lt;br /&gt;        ri!textColumn1&lt;br /&gt;      },&lt;br /&gt;      {&lt;br /&gt;        ri!textColumn2&lt;br /&gt;      },&lt;br /&gt;      {&lt;br /&gt;        ri!textColumn3&lt;br /&gt;      }&lt;br /&gt;    )&lt;br /&gt;  )&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;3. And you can construct the display data where textColumn1, textColumn2 can be actual queried column from DB and textColumn3 values can be the calculated data.&lt;br /&gt;&lt;br /&gt;4. Once the data is in hand you can construct the data subset and display on grid.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question on using a!query with grids</title><link>https://community.appian.com/thread/29572?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2016 03:33:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:22d2d133-bab9-4314-9ca9-b447f01f290a</guid><dc:creator>benjamins</dc:creator><description>Easiest way to fix this issue is to create a dictionary based on the data you are using to create your data subset. Include the calculated field in this dictionary. Once you have done this, then create the data subset for your grid.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>