<?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>Have to remove one particular option in field</title><link>https://community.appian.com/discussions/f/general/20359/have-to-remove-one-particular-option-in-field</link><description>Hi, 
 i have written a query filter which is working fine and displayed that in interface. 
 Now i need to download Excel which is also working fine but i need not have to include option: best 
 
 Suppose i have a drop down field which contains values</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Have to remove one particular option in field</title><link>https://community.appian.com/thread/79408?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 18:25:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e321f811-d489-485e-8b71-830f93154d7d</guid><dc:creator>akshayg0006</dc:creator><description>&lt;p&gt;I cross checked with BA now he confirmed to remove entire Row..where it contains &amp;quot;best&amp;quot;.. Thanks for help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have to remove one particular option in field</title><link>https://community.appian.com/thread/79398?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 16:17:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b41c9825-a73e-4751-9012-7bb40c8e2fb1</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;A query filter such as that would be designed to remove the entire row(s) where Value = &amp;quot;best&amp;quot;.&amp;nbsp; As far as I understand the requirement, you still want the row returned that contains &amp;quot;best&amp;quot;, however to replace &amp;quot;best&amp;quot; with a blank value &amp;quot;&amp;quot; - this would be done on the DB side with a view typically.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to remove the row completely, you can do so with a!queryFilter(), however your syntax would need adjustments.&amp;nbsp; Setting the Value = ri!Status would only return any rows that match a single status input, and your applyWhen there would be a single boolean true/false value (albeit unnecessary in this potential case) but you are providing a list of items (1 boolean and 1 list of text).&amp;nbsp; To remove the entire rows that contain &amp;quot;best&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;a!queryFilter(
  field: &amp;quot;Value&amp;quot;,
  operator: &amp;quot;&amp;lt;&amp;gt;&amp;quot;,
  value: &amp;quot;best&amp;quot;
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Also, please utilize the Insert -&amp;gt; Code functionality for easier reading of any included code snippets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have to remove one particular option in field</title><link>https://community.appian.com/thread/79397?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 16:02:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:54071e66-4749-4ae5-945e-cd3317125403</guid><dc:creator>akshayg0006</dc:creator><description>&lt;p&gt;I guess i can call a rule and exclude the &amp;quot;best &amp;quot;. Something like :&lt;/p&gt;
&lt;p&gt;a!queryFilter(&lt;/p&gt;
&lt;p&gt;field:&amp;quot;Value&amp;quot;,&lt;/p&gt;
&lt;p&gt;operator:&amp;quot;=&amp;quot;,&lt;/p&gt;
&lt;p&gt;value:ri!Status,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;applyWhen: {rule!AAP_isNotEmpty(ri!Status),remove(ri!Status,wherecontains(&amp;quot;best&amp;quot;,touniformstring(ri!Status)))}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but am not getting expected result so posted here.(bdw have used&amp;nbsp;a!exportDataStoreEntityToCsv in interface)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have to remove one particular option in field</title><link>https://community.appian.com/thread/79395?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 15:46:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:01885066-1749-45b3-8df7-380b86db698b</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;The only way I could see to do this within Appian is&amp;nbsp;with the deprecated &amp;quot;Export CDT to Excel&amp;quot; service - in which you can prepare the CDT (remove these values) prior to creating the Excel document.&amp;nbsp; Otherwise, there isn&amp;#39;t really a way to manipulate the data between the DB and your Excel file, so a view would be required on the database which handles this removal - then you can export from the view, vs the actual data store.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have to remove one particular option in field</title><link>https://community.appian.com/thread/79394?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 15:41:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e1fb1020-b5cc-4d41-9628-b9167336ee3d</guid><dc:creator>akshayg0006</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I need to display&amp;nbsp;data in grid(for which hv created a view) but while exporting in Excel i don&amp;#39;t want&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;quot;best&amp;quot; to be exported to Excel, however the &amp;quot;best&amp;quot; field should be changed to a blank value &amp;quot; &amp;quot; in the export..&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have to remove one particular option in field</title><link>https://community.appian.com/thread/79388?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 14:46:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:49de9623-fdb8-4413-9741-96198a77b29e</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;To confirm, you DO want the row containing &amp;quot;best&amp;quot; to be exported to Excel, however the &amp;quot;best&amp;quot; field should be changed to a blank value &amp;quot;&amp;quot; in the export?&amp;nbsp; If this is the case, typically it would be done on the database side by creating a view which removes this value, then export to Excel over the view - as we are limited as far as data manipulation between the DB and Excel during export.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>