<?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>image</title><link>https://community.appian.com/discussions/f/new-to-appian/22028/image</link><description>a!documentImage( document: if(isnull(fv!item.imageId), cons!NOIMAGE, fv!item.imageId ) 
 
 is it possible to use fv!item with the isnull funcion? i am trying to place a image (cons!NOIMAGE) if theres no image in the database for that specific object but</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: image</title><link>https://community.appian.com/thread/86234?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 15:07:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ce8a834d-0431-4689-9b51-1333afe5a0ab</guid><dc:creator>pedrob0002</dc:creator><description>&lt;p&gt;Thank you will save that somewhere&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: image</title><link>https://community.appian.com/thread/86233?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 15:06:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ab04b2a9-6d48-4e50-8a2d-2ec57cb1b08c</guid><dc:creator>pedrob0002</dc:creator><description>&lt;p&gt;My idea was that if the haspicture boolean is false then it would substitute the isnull funcion, if haspicture was true it would show the pictures saved, nonetheless i change the form to have a required picture and so theres no null values in imageId, but thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: image</title><link>https://community.appian.com/thread/86232?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 15:03:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a7701c29-bb1a-49a0-9b24-75ce3062baac</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Honestly I&amp;#39;m not sure whether this handles any use cases not handled by something a little simpler - this is essentially our &amp;quot;isBlank()&amp;quot; rule currently in production, and it passes a long list of test cases incorporating basically every permutation I can think of...&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;or(
  isnull(ri!value),
  isnull(tostring(ri!value)),
  length({cast(runtimetypeof(ri!value), ri!value)}) = 0
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: image</title><link>https://community.appian.com/thread/86231?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 15:03:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2544fbc7-44f4-4fe1-9a9a-363dac27964d</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Appian will not change the data types of fields in database. Simply drop the table and have Appian recreate it.&lt;/p&gt;
&lt;p&gt;That boolean will not solve your problem. You need to check whether there is a valid value. Put my code into a separate expression and use it for null checks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: image</title><link>https://community.appian.com/thread/86228?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 14:39:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:70559800-ff93-45f5-a2d8-94df5ca569aa</guid><dc:creator>pedrob0002</dc:creator><description>&lt;p&gt;I thought about addint a collumn to the cdt as a boolean validating if there are pictures uploaded, but then it says i need to update my data store manualy, I dont know if i&amp;#39;ll screw it up by changing something&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: image</title><link>https://community.appian.com/thread/86227?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 14:37:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:12874eb0-4c28-45d4-be4c-5a5672cda7d3</guid><dc:creator>pedrob0002</dc:creator><description>&lt;p&gt;the imageId is listed as a document and its an array in the cdt don&amp;#39;t know if that helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: image</title><link>https://community.appian.com/thread/86226?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 14:35:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7dcb72be-5a83-41f0-94e1-4e06712718ba</guid><dc:creator>pedrob0002</dc:creator><description>&lt;p&gt;Sorry I&amp;#39;m still new to Appian, couldnt understand what I&amp;#39;m suppose to do, can you simplify?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: image</title><link>https://community.appian.com/thread/86223?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 14:21:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c47afd61-6676-45b1-b909-e151450adc07</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;isnull wil typically not catch all variations of &amp;quot;there is no value&amp;quot;.&amp;nbsp;My approach, matured over many years, is this:&lt;/p&gt;
&lt;p&gt;ri!value is of type &amp;quot;any&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if(
  isnull(ri!value),
  true,
  a!localVariables(
    local!typeNum: a!refreshVariable(
      value: runtimetypeof(ri!value),
      refreshAlways: true
    ),
    
    /* Strings */
    if(
      local!typeNum = &amp;#39;type!{http://www.appian.com/ae/types/2009}Text&amp;#39;,
      /* Ignore white space */
      len(trim(ri!value)) = 0,
      
    /* List of Variant */
    if(
      local!typeNum = &amp;#39;type!{http://www.appian.com/ae/types/2009}Variant?list&amp;#39;,
      all(fn!isnull, a!flatten(ri!value)),
      
    /* Lists */
    if(
      /* Try to take first item in list and cast it to a list of itself */
      /* then compare its datatype to the incoming data type */
      local!typeNum = runtimetypeof(cast(runtimetypeof({index(ri!value, 1, null)}), ri!value)),
      
      /* Flatten takes care of lists in lists in lists in ... */
      /* List has zero non-null items, length() already ignores null values*/
      length(a!flatten(ri!value)) = 0,

    /* DataSubsets */
    if(
      local!typeNum = &amp;#39;type!{http://www.appian.com/ae/types/2009}DataSubset&amp;#39;,
      if(
        ri!value.totalCount &amp;lt; 0, /* This is necessary in case fetchTotalCount=false */
        if(
          isnull(ri!value.data),
          true,
          length(ri!value.data) = 0
        ),
        ri!value.totalCount = 0
      ),

      /* No idea what this could be so it is considered to not be null */
      false
    ))))
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: image</title><link>https://community.appian.com/thread/86218?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 13:59:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a59d7421-5535-4224-b494-e1b81e780fdf</guid><dc:creator>pedrob0002</dc:creator><description>&lt;p&gt;I think its return a false boolean*&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>