<?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>Display Nullvalue in Dropdown by Adding NULL Name</title><link>https://community.appian.com/discussions/f/general/24929/display-nullvalue-in-dropdown-by-adding-null-name</link><description>I am getting values from database and I am displaying it and the filter is working fine. Now the Requirement is i need to add NULL Name in dropdown and display those names that are NULL. 
 I am using append(local!dropdown,&amp;quot;NULL Name&amp;quot;). 
 local!dropdown</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Display Nullvalue in Dropdown by Adding NULL Name</title><link>https://community.appian.com/thread/116127?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 08:36:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1b452e1c-bd4e-44f8-88ab-26567f55b8d0</guid><dc:creator>Shanmathi Ponnusamy</dc:creator><description>&lt;p&gt;&lt;a href="/members/akshayg0010"&gt;Som&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Is this what trying to get? If the user selects &amp;quot;NULL&amp;quot; in the dropdown, add logic to query the null values otherwise the name which is selected.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1689237460772v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Nullvalue in Dropdown by Adding NULL Name</title><link>https://community.appian.com/thread/116125?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 08:28:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f602fa69-178f-4be6-bed9-029eedf979c0</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I think this is super confusing. And no, you cannot put a NULL value into the list of choice values.&lt;/p&gt;
&lt;p&gt;But maybe if you try to explain what you want to achieve ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Nullvalue in Dropdown by Adding NULL Name</title><link>https://community.appian.com/thread/116124?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 08:28:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:56d692c6-fc25-4779-9071-3027445b8a67</guid><dc:creator>Saahil Mulla</dc:creator><description>&lt;p&gt;I think you cannot have null as value in the dropdown instead it should be text &amp;quot;Null&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;append (&amp;nbsp;local!noNullChoiceValue, &amp;quot;NULL&amp;quot; )&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Nullvalue in Dropdown by Adding NULL Name</title><link>https://community.appian.com/thread/116122?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 08:09:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e0bcc968-7927-405a-a0ac-d96b78128fa7</guid><dc:creator>katharinau3998</dc:creator><description>[quote userid="65120" url="~/discussions/f/general/24929/display-nullvalue-in-dropdown-by-adding-null-name/96496#96496"]&lt;p&gt;local!option:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if&amp;nbsp; &amp;nbsp;count ( &lt;span&gt;local!choiceValue ) = count (&amp;nbsp;local!noNullChoiceValue ) then&amp;nbsp; pass anyone (&amp;nbsp;local!ChoiceValue or local!noNullChoiceValue)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Else append (&amp;nbsp;local!noNullChoiceValue, NULL ),&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;a!dropdown(&lt;br /&gt;.....&lt;/p&gt;
&lt;p&gt;....&lt;/p&gt;
&lt;p&gt;.....&lt;/p&gt;
&lt;p&gt;Chocie Labesl:&lt;span&gt;local!option&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Choice Values:local!option&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Has anyone tried this?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I still get the error message &amp;quot;&lt;span&gt;A dropdown component [...] has an invalid value for &amp;quot;choiceValues&amp;quot;. Choice values cannot be null.&lt;/span&gt;&amp;quot;. Of course local!option contains null. Or what am I missing?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Nullvalue in Dropdown by Adding NULL Name</title><link>https://community.appian.com/thread/96496?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 11:01:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8a559c68-0e2d-4dee-a956-b9fdca2f7587</guid><dc:creator>Dhananjay Kumar</dc:creator><description>&lt;p&gt;You need to add logic based on your choice Values.&lt;br /&gt;&lt;br /&gt;local!choiceValue: Get all options from the source { Name1, Name 2, Name3, Null}&lt;/p&gt;
&lt;p&gt;local!noNullChoiceValue: use reject function to discard null. Expected out put as { name1, Name2, Name3 }&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;local!option:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if&amp;nbsp; &amp;nbsp;count ( &lt;span&gt;local!choiceValue ) = count (&amp;nbsp;local!noNullChoiceValue ) then&amp;nbsp; pass anyone (&amp;nbsp;local!ChoiceValue or local!noNullChoiceValue)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Else append (&amp;nbsp;local!noNullChoiceValue, NULL ),&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;a!dropdown(&lt;br /&gt;.....&lt;/p&gt;
&lt;p&gt;....&lt;/p&gt;
&lt;p&gt;.....&lt;/p&gt;
&lt;p&gt;Chocie Labesl:&lt;span&gt;local!option&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Choice Values:local!option&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and on selection you know what to do when user select NULL or other options&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>