Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
3 replies
Subscribers
11 subscribers
Views
1516 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Data and Records
I'm haveing a devil of a time getting my old list view image to show correct
scotts
over 8 years ago
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
0
sikhivahans
over 8 years ago
@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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sikhivahans
over 8 years ago
@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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data