You need to sign in to do that
Don't have an account?
Michael Benson 4
Knowledge Article How to Count Articles Displayed?
I have a VisualForce page using only the standard apex markup <Knowledge:ArticleList>.
How can you know how many articles will be displayed?
How can you know if it returned no articles at all?
Visualforce Page:
<apex:page >
<!-- User Guides Content section-->
User Guides
<knowledge:articleList articleVar="article" categories="Knowledge_Categories:AccuDate_9700" keyword="warranty" articleTypes="KB_Article__kav" pageSize="10">
<li>
<apex:outputLink target="_self" value="{!URLFOR($Action.KnowledgeArticle.View, article.id, ['popup' = 'true'])}">{!article.title}</apex:outputLink>
</li>
</knowledge:articleList>
<!-- User Guides Content section-->
</apex:page>
How can you know how many articles will be displayed?
How can you know if it returned no articles at all?
Visualforce Page:
<apex:page >
<!-- User Guides Content section-->
User Guides
<knowledge:articleList articleVar="article" categories="Knowledge_Categories:AccuDate_9700" keyword="warranty" articleTypes="KB_Article__kav" pageSize="10">
<li>
<apex:outputLink target="_self" value="{!URLFOR($Action.KnowledgeArticle.View, article.id, ['popup' = 'true'])}">{!article.title}</apex:outputLink>
</li>
</knowledge:articleList>
<!-- User Guides Content section-->
</apex:page>
You could use apex:variable and count it first
Let me know if it helps or you still face issues.
Thanks
Shashikant
All Answers
You could use apex:variable and count it first
Let me know if it helps or you still face issues.
Thanks
Shashikant
Appreciate your Help.
Michael
Thanks
Shashikant