Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8205531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:16:41+00:00 2026-06-07T08:16:41+00:00

I am trying to display information about Knowledge Articles on my page. One of

  • 0

I am trying to display information about Knowledge Articles on my page. One of the things I want to display is the most viewed article stat.

I have a Visualforce Apex component that looks like this:

<apex:component controller="Component_Query" access="global">
  <apex:attribute name="QueryString" type="String" required="true" access="global" assignTo="{!queryString}"
    description="A valid SOQL query in string form." />

    <apex:variable value="{!results}" var="results"/>
    <apex:componentBody />
</apex:component>

I have a Visualforce page that looks like this:

<apex:page >
    <table id="articles">
        <knowledge:articleList articleVar="article" sortBy="mostViewed" pageSize="5">
        <tr>
            <td>{!article.articlenumber}</td>
            <td><a target="_parent" href="{!URLFOR($Action.KnowledgeArticle.View, article.id)}">{!article.title}</a></td>
            <td>{!article.articletypelabel}</td>
            <td>{!article.lastpublisheddate}</td>
            <td>
                <c:Query_component queryString="SELECT NormalizedScore FROM KnowledgeArticleViewStat WHERE ParentId = '{!article.id}'">
                <apex:repeat value="{!results}" var="result">
                </apex:repeat>
                </c:Query_component>
            </td>
        </tr>
        </knowledge:articleList>
    </table>
</apex:page>

I put the Visualforce Page into a tab. When I view the page, all the information about the knowledge articles show up except for the information about the most viewed stat. How do I see this stat?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T08:16:44+00:00Added an answer on June 7, 2026 at 8:16 am

    This is what I ended up using in my Visualforce page:

        <c:Query_component queryString="SELECT NormalizedScore, Id, ParentId FROM KnowledgeArticleViewStat WHERE Channel='Csp'">
            <apex:variable value="{!results[articleid]}" var="result"/>
                <span class="inlinesparkline">100, {!result}</span>
        </c:Query_component>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to display information about an object, concretely a customer. I mean name,
I am trying to display some information about the data below the plot created
I am trying to retrieve and display information about current weather from a JSON
I have a situation where lets say i'm trying to get the information about
I'm trying to get the Django Admin interface to display information about my profile.
I am trying to develop an app in Android which can display information about
I have an access report which contains information about a given job. I'm trying
I am trying to display volunteer information with duty and what performance is allocated.
I am trying to produce images without gamma information so that IE8 can display
trying to display data only after variables have been set. $(document).ready(function () { function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.