• viewEntry.getRead returns wrong value in DataView

    By Ulrich Krause 1 decade ago

    I'm using the xe:DataView control for my mobile application. I the iconColumn I have the following SSJS

        <xe:this.iconColumn>
            <xe:viewIconColumn>
                <xe:this.icons>
                    <xe:iconEntry>
                        <xp:this.url>
    

    requestScope.unreadIcon = “/icon_dot_blue.png”;
    if(viewEntry.getRead(userBean.canonicalName) ){

    requestScope.unreadIcon =  "";
    

    }
    return requestScope.unreadIcon;
    }]]>

                    </xe:iconEntry>
                </xe:this.icons>
            </xe:viewIconColumn>
        </xe:this.iconColumn>
    

    The DataView also has a MORE button at the buttom of the page. While loading more values using the button, I see that documents are makred as unread although they are marked as read in the client view

    Screenshot: http://www.eknori.de/_data/DataViewUnread.jpg

    • By B Gleeson 1 decade ago

      What version of the ExtLib are you using, v5?

      I had a quick try yesterday, but couldn't reproduce the problem.