<?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>I have a textfield, whose value is being provided by a local variable called loc</title><link>https://community.appian.com/discussions/f/general/2336/i-have-a-textfield-whose-value-is-being-provided-by-a-local-variable-called-loc</link><description>I have a textfield, whose value is being provided by a local variable called local!state. And local!state is sometimes null which leads to crashing. So to prevent that I put the following for the textfield: if(COMMON_IsNullOrEmpty(local!state),{}, { a</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: I have a textfield, whose value is being provided by a local variable called loc</title><link>https://community.appian.com/thread/8203?ContentTypeID=1</link><pubDate>Wed, 19 Mar 2014 00:22:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bff6a9ad-aeae-4ee6-9fbe-27edd5b16679</guid><dc:creator>aswinb</dc:creator><description>I fixed it....It had to be inside the with function and also some minor twists here and there......FYI.....COMMON_IsNullOrEmpty is a custom function that was created by Appian developers....&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a textfield, whose value is being provided by a local variable called loc</title><link>https://community.appian.com/thread/8202?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2014 23:36:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cba398b2-4a75-4737-bb4d-89b319cb82b8</guid><dc:creator>Aleksi White</dc:creator><description>Sorry, old copy.  This is correct:&lt;br /&gt;&lt;br /&gt;load(&lt;br /&gt;local!state: &amp;quot;&amp;quot;,&lt;br /&gt;a!dashboardLayout(&lt;br /&gt;firstColumnContents: {&lt;br /&gt;if(APN_isEmpty(local!state),{}, a!textField(label:&amp;quot;State&amp;quot;, value: local!state, saveInto:local!state))&lt;br /&gt;}&lt;br /&gt;)&lt;br /&gt;)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a textfield, whose value is being provided by a local variable called loc</title><link>https://community.appian.com/thread/8201?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2014 23:35:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:66586b65-0a1b-468f-98a0-b51ffc773a19</guid><dc:creator>Aleksi White</dc:creator><description>Is COMMON_IsNullOrEmpty an Appian function?  Or is it custom?  I was able to get this working using the APN_isEmpty() function:&lt;br /&gt;&lt;br /&gt;load(&lt;br /&gt;local!state: &amp;quot;&amp;quot;,&lt;br /&gt;a!dashboardLayout(&lt;br /&gt;firstColumnContents: {&lt;br /&gt;if(COMMON_IsNullOrEmpty(local!state),{}, a!textField(label:&amp;quot;State&amp;quot;, value: local!state, saveInto:local!state))&lt;br /&gt;}&lt;br /&gt;)&lt;br /&gt;)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>