You need to sign in to do that
Don't have an account?
ArchieTechie6
Salesforce Knowledge VisualForce Page Error: Unknown property 'Knowledge__kavStandardController.listOfArticles'
Hi All,
I am trying to fetch knowledge articles in my VF Page.
Below is my code:
I am trying to fetch knowledge articles in my VF Page.
Below is my code:
<apex:page standardController="Knowledge__kav">
<apex:form >
<apex:pageBlock >
<apex:pageBlockTable value="{!listOfArticles}" var="details">
<apex:column value="{!details.articleNumber}"/>
<apex:column value="{!details.Title}"/>
<apex:column value="{!details.UrlName}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
I am getting below error:
<apex:form >
<apex:pageBlock >
<apex:pageBlockTable value="{!listOfArticles}" var="details">
<apex:column value="{!details.articleNumber}"/>
<apex:column value="{!details.Title}"/>
<apex:column value="{!details.UrlName}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
I am getting below error:
Error: Unknown property 'Knowledge__kavStandardController.listOfArticles'
Can anyone guide me where I am going wrong?
Thanks!
Can anyone guide me where I am going wrong?
Thanks!
Please do not forget to mark this thread as SOLVED and answer as the BEST ANSWER if it helps address your issue.
I am very new to SF so I am sorry if I am asking basic question.
As per your suggestion, I tried the below code but I am getting error: Error: Invalid field listOfArticles for SObject Knowledge__kav
<apex:form >
<apex:pageBlock >
<apex:pageBlockTable value="{!Knowledge__kav.listOfArticles}" var="details">
<apex:column value="{!details.articleNumber}"/>
<apex:column value="{!details.Title}"/>
<apex:column value="{!details.UrlName}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
I want to display Article Number, Title , URL in a table.
Please help !
If I use knowledge:articleList, it is working fine.
I am not sure how to get the listOfArticles from Standard Knowledge Object.