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
1478 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 7 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
0
sikhivahans
over 7 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
0
Sidhant Behura
over 7 years ago
@scotts - In feed list view if the document was null then the first letter was shown in the image but in the grid list view you have to provide a document.
And as sikhivahan suggested you can have an static image/document as constant which represents the unavailability of document and use in place of null.
Hope the information was helpful.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 7 years ago
To the best of my knowledge, it's not about Grid View but it's the behaviour of the Grid Image component and the Document Image component that expects a valid document object and if we don't provide so, that results in an error and the same occurs with a Paging Grid component used elsewhere in an interface.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel