2016-04-19 14 views
0

すべてで基準に基づいて、すべてのケースを示し、その後、私は、ガントチャートにそのデータを使用したいと思います。私はコーディングについて多くのことを知っていますが、ユーザーマニュアルに基づいて試しています。このVisualforceページには大文字小文字の区別がなくなります。は、Salesforceは、Visualforceの

<apex:page standardController="Case" > 
    <apex:form > 
     <apex:pageBlock > 
      <apex:pageMessages /> 
      <apex:pageBlockButtons> 
       <apex:commandButton value="Save" action="{!save}"/> 
      </apex:pageBlockButtons> 
      <apex:PageBlockTable value="{!Case}" var="c"> 
       <apex:column value="{!c.Account}"/> 
       <apex:column value="{!c.Number}"/> 
       <apex:column value="{!c.Owner}"/> 
       <apex:column headerValue="Install Date"> 
        <apex:inputField value="{!a.Planned_Install_Date__c}"/> 
       </apex:column> 
      </apex:PageBlockTable> 
     </apex:pageBlock> 
    </apex:form> 
</apex:page> 

答えて

0

Salesforceからビジュアルフォースページにデータを取得するには、apexコントローラクラスが必要です。このような何か:

ビジュアルページ:

<apex:page standardController="Case" controller="MyCaseController"> 
<apex:form > 
    <apex:pageBlock > 
     <apex:pageMessages /> 
     <apex:pageBlockButtons> 
      <apex:commandButton value="Save" action="{!save}"/> 
     </apex:pageBlockButtons> 
     <apex:PageBlockTable value="{!Cases}" var="c"> 
      <apex:column value="{!c.Accountid}"/> 
      <apex:column value="{!c.CaseNumber}"/> 
      <apex:column value="{!c.OwnerId }"/> 
      </apex:PageBlockTable> 
    </apex:pageBlock> 
</apex:form> 

コントローラー:

public class MyCaseController { 

    public list<Case> cases {get;set;} 

    public MyCaseController(){ 
     cases = [select id, accountid, CaseNumber, OwnerId from case]; 
    } 
} 

あなたは、あなたのニーズにコードを収納することができるはずです。

関連する問題