I'm haveing a devil of a time getting my old list view image to show correct

I'm haveing a devil of a time getting my old list view image to show correctly on my new Grid View Record. I;'ve set it up as an Image component with a doument link. Then I use the todocoument function on it to convert the document link integer into a doument type as I did in my list view. In the old list view, if a document was not present, it would just show the first letter of the name I'm using for the headding. Now it appears it wants a document for each occurance or it will throuw a null error compaining that I can't have a null document. I have tried getting around this by doing a check on the field to see if it is empty using apn_isblank like follows: if(rule!appian_isbalnk(rf!id),null,fn!dodocument(rf!id) to no avail. Any advice? Thanks!

OriginalPostID-217905

OriginalPostID-217905

  Discussion posts and replies are publicly visible

Parents
  • @scotts Hi, to the best of my knowledge, you need a valid document object for every record so that the image component will be rendered properly and I don't think it can be skipped because the component expects a valid document which will be rendered as image thereafter. So how about choosing a image that represents a case where a document id is null and this way you may avoid error. Just in case if your intention is to provide links to the image component, you may want to skip the links in case when the document id is null and you can include this condition while generating the links.
Reply
  • @scotts Hi, to the best of my knowledge, you need a valid document object for every record so that the image component will be rendered properly and I don't think it can be skipped because the component expects a valid document which will be rendered as image thereafter. So how about choosing a image that represents a case where a document id is null and this way you may avoid error. Just in case if your intention is to provide links to the image component, you may want to skip the links in case when the document id is null and you can include this condition while generating the links.
Children
No Data