function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
David DurantDavid Durant 

Visual Force with Custom Object not apearing?

<apex:page standardController="WO_Comments__c">
    <apex:pageBlock title="Description" >
        <apex:pageblockTable value="{!WO_Comments__c}" var="WO_Comments__c">
             <apex:outputText value="{!WO_Comments__c.Comment__c}" />
        </apex:pageblockTable>
    </apex:pageBlock>
</apex:page>

I am having somewhat of the same issue.  I do not get an error however, the custom object will not appear after I enter the code in.

If you see the attached picture where I do apex:pageblock description it shows but, when for the custom object whether I do ouput text or pageblock table I cannot get the custom object to appear
User-added image
Below is what it should look like. This is the custom object I am trying to referencing but on a different page layout as an item of the related list.
User-added image
Any suggestions? Am I entereing the code incorrectly?
KevinPKevinP
This is likely an issue related to the Org Wide Default or Object permissions issue.
David DurantDavid Durant
Thats what I thought but when I started trying other apex fields to see if I could at least get the related list field "WO_Comments__C" to appear I was able to.

Just not the way I wanted using:
<apex:page showHeader="true" tabstyle="Case">
    <apex:ListViews type="WO_Comments__c" />
</apex:page>
I was able to at least get it to appear using the list view but I am going to be inserting this into a page layout and I cant have it showing the view, create new view, or the a b c d etc.

User-added image
asish1989asish1989
<apex:page standardController="Book__c" recordSetVar="books"  sidebar="true">
    <apex:pageBlock title="Descriptions">
        <apex:pageBlockTable value="{!books}" var="a">
            <apex:column value="{!a.name}"/>
         </apex:pageBlockTable>
     </apex:pageBlock>
</apex:page>
David DurantDavid Durant
I tried that code and its still displaying nothing under the description but I am not getting any errors. Im confused as to how I can get it to work when I use apex:listview but not when I use pageblocktable or column. I attached below what the custom object looks like to see if I may be referring to anything incorrectly.

This is what I treid in response to the comment above.
<apex:page standardController="WO_Comments__c" recordSetVar="Comments"  sidebar="true">
    <apex:pageBlock title="Description">
        <apex:pageBlockTable value="{!Comments}" var="a">
            <apex:column value="{!a.Comment__c}"/>
            <apex:column value="{!a.Work_Order__c}"/>
         </apex:pageBlockTable>
     </apex:pageBlock>
</apex:page>


User-added image
asish1989asish1989
Hi David Durant,

Try to run this page first in new tab, check whether still blank page is there or not?
David DurantDavid Durant
I am currently running it in a new tab on a blank visual force page. Is this what you are talking about?