<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/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>setProperty to NULL</title><link>https://www.aras.com/community/f/development/3532/setproperty-to-null</link><description>topDeliveredComponent.setProperty(&amp;quot;min_level&amp;quot;,&amp;quot;1&amp;quot;);

My current code sets the property for &amp;quot;min_level&amp;quot; = 1, how do also include NULL values?

I tried the following, but get an error:
topDeliveredComponent.setProperty(&amp;quot;min_level&amp;quot;,&amp;quot;1&amp;quot;, null);</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: setProperty to NULL</title><link>https://www.aras.com/community/thread/1223?ContentTypeID=1</link><pubDate>Wed, 17 Jan 2018 13:19:51 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:82ff6fb0-3121-4c0f-9d5e-56fcac2b148b</guid><dc:creator>didonato</dc:creator><description>Thanks Chris!!!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: setProperty to NULL</title><link>https://www.aras.com/community/thread/1206?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 13:38:13 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:e38835a7-6aec-4d32-a23c-97de4ebc4cd4</guid><dc:creator>Christopher Gillis</dc:creator><description>Hello,

I think I understand the problem now. In order to find all Parts that have a null property value, you can use the &amp;quot;condition=&amp;#39;is null&amp;#39;&amp;quot; attribute. The example below shows how to get all Parts that have a null value for name.

&lt;pre&gt;&lt;code&gt;Item part = inn.newItem(&amp;quot;Part&amp;quot;, &amp;quot;get&amp;quot;);
part.setPropertyAttribute(&amp;quot;name&amp;quot;, &amp;quot;condition&amp;quot;, &amp;quot;is null&amp;quot;);
part = part.apply();&lt;/code&gt;&lt;/pre&gt;


Please let me know if this returns the results you were expecting.

Chris

___________________________________________

Christopher Gillis

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: setProperty to NULL</title><link>https://www.aras.com/community/thread/1203?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 12:56:12 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:e795fa6c-7af4-42c0-bcac-65942347d3c8</guid><dc:creator>didonato</dc:creator><description>Chris,

topDeliveredComponent.setProperty(&amp;quot;min_level&amp;quot;,&amp;quot;1&amp;quot;,null);
When I use this, it only retrieves min_level = 1, doesn&amp;#39;t retrieve NULL values.

topDeliveredComponent.setProperty(&amp;quot;min_level&amp;quot;,null);
I also tried this to see if I could retrieve just null values, but I get the following error &amp;quot;Value for min_level is invalid (Input string was not in a correct format.)&amp;quot;

Basically, I want to retrieve min_level that are = &amp;#39;1&amp;#39; and/or = NULL

Thanks Chris

&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: setProperty to NULL</title><link>https://www.aras.com/community/thread/1204?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 11:52:42 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:669e56e2-d5ff-48a2-b4ac-5ee2c629c2bb</guid><dc:creator>Christopher Gillis</dc:creator><description>Hello,

From the API Documentation found &lt;a href="http://www.aras.com/support/documentation/11.0%20SP5/Other%20Documentation/APIReferenceDotNet/HTML/html/M_Aras_IOM_Item_setProperty_1.htm"&gt;here&lt;/a&gt;, the third argument passed into the setProperty function represents the &amp;quot;&lt;em&gt;Language for which the property needs to be set&lt;/em&gt;&amp;quot;. However, you should be able to pass in &amp;#39;null&amp;#39; to this argument without receiving an error.

Could you please clarify what the error message you are receiving in?

Chris

_________________________________________

Christopher Gillis

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>