Skip to main content
Fixing code formatting
Source Link
Derek F
  • 64.1k
  • 15
  • 55
  • 104

Here is what I am trying to do.

I have a visualforce page, I have information from the account object populating in a table.

I'd also like to populate information from my custom object to that visualforce page. How do I do that? I would be okay using another table, I'm not picky on how that information shows up just as long as it works.

My code is simple, I'm a beginner.

<apex:page standardController="Account" recordSetVar="amanda">

<apex:pageBlock >

  <apex:pageBlockTable value="{!amanda}" var="acc">
   
   <apex:column value="{!acc.Name}"/>
    
</apex:pageBlockTable>

</apex:pageBlock>

</apex:page>

<apex:page standardController="Account" recordSetVar="amanda">
    <apex:pageBlock >
      <apex:pageBlockTable value="{!amanda}" var="acc">
       <apex:column value="{!acc.Name}"/>
      </apex:pageBlockTable>
    </apex:pageBlock>
</apex:page>

The API name of the custom object would be Milestone__c, I would like to bring over name, Where_are_we__c, and Name__c

Here is what I am trying to do.

I have a visualforce page, I have information from the account object populating in a table.

I'd also like to populate information from my custom object to that visualforce page. How do I do that? I would be okay using another table, I'm not picky on how that information shows up just as long as it works.

My code is simple, I'm a beginner.

<apex:page standardController="Account" recordSetVar="amanda">

<apex:pageBlock >

  <apex:pageBlockTable value="{!amanda}" var="acc">
   
   <apex:column value="{!acc.Name}"/>
    
</apex:pageBlockTable>

</apex:pageBlock>

</apex:page>

The API name of the custom object would be Milestone__c, I would like to bring over name, Where_are_we__c, and Name__c

Here is what I am trying to do.

I have a visualforce page, I have information from the account object populating in a table.

I'd also like to populate information from my custom object to that visualforce page. How do I do that? I would be okay using another table, I'm not picky on how that information shows up just as long as it works.

My code is simple, I'm a beginner.

<apex:page standardController="Account" recordSetVar="amanda">
    <apex:pageBlock >
      <apex:pageBlockTable value="{!amanda}" var="acc">
       <apex:column value="{!acc.Name}"/>
      </apex:pageBlockTable>
    </apex:pageBlock>
</apex:page>

The API name of the custom object would be Milestone__c, I would like to bring over name, Where_are_we__c, and Name__c

Source Link

How do I add info from a custom object to my visual force page when I'm already using a standard controller?

Here is what I am trying to do.

I have a visualforce page, I have information from the account object populating in a table.

I'd also like to populate information from my custom object to that visualforce page. How do I do that? I would be okay using another table, I'm not picky on how that information shows up just as long as it works.

My code is simple, I'm a beginner.

<apex:page standardController="Account" recordSetVar="amanda">

<apex:pageBlock >

  <apex:pageBlockTable value="{!amanda}" var="acc">
   
   <apex:column value="{!acc.Name}"/>
    
</apex:pageBlockTable>

</apex:pageBlock>

</apex:page>

The API name of the custom object would be Milestone__c, I would like to bring over name, Where_are_we__c, and Name__c