Hi,I have a view template with an embedded view and “Previous”/“Next” buttons (25 lines per page, using @DbCommand(“Domino”;“ViewPreviousPage”) and @DbCommand(“Domino”;“ViewNextPage”)). My embedded view uses the “Show Single Category” property so the number of documents returned is different depending on the category chosen. How do I get the number of documents returned from the embedded view so I can hide the “Previous” and/or “Next” buttons when there is no more document before or after the current page? I can’t do @DbColumn with an embedded view, right?
Subject: @elements
Subject: Hiding the “Previous” and “Next” buttons
I can’t do @DbColumn with an embedded view, right?
Wrong: you can. Kind of. It’s a view like any other. The fact that it’s embedded is neither here nor there. The only thing you need to factor in is that you have a single category, so you only want to pull the # of documents under that category, not the whole view – @DbLookup may suit your purpose better here. I’ve definitely done something similar in a web application, so this is do-able.
–
Subject: RE: Hiding the “Previous” and “Next” buttons
How do I count the number of documents returned by @DbLookup? I forgot.