0
我對visualforce/salesforce很陌生,我是一個非常可怕的初學者,所以請原諒我可能很容易的問題。Visualforce頁面沒有執行動作
我正在創建一個頁面來跟蹤會議預算。基本上用戶輸入在一個字段中設置了多少預算,然後輸入實際成本,然後在第三個字段中,SF/VF應該計算2個數字並顯示差異。我設置了字段(正確地我認爲這很簡單)並設置了一個頁面。現在,當您將信息輸入到字段並單擊保存時,不會發生任何事情。
這是我的頭腦,我試圖找到文獻中的答案,但沒有很多運氣。
下面是代碼:
<apex:page standardController="Conference__c" sidebar="true">
<apex:sectionHeader title="Conference Budget" subtitle="{!Conference__c.name}"/>
<apex:form >
<apex:pageBlock title="Conference Budget" id="thePageBlock" mode="edit">
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!save}"/>
<apex:commandButton value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons>
<apex:actionRegion >
<apex:pageBlocksection title="Conference Budget">
<apex:panelGrid columns="4" width="400px" cellspacing="5px">
<apex:outputText value="Item" id="Item"/>
<apex:outputText value="Budgeted" id="Budgeted"/>
<apex:outputText value="Actual" id="Actual"/>
<apex:outputText value="Difference" id="Difference"/>
<apex:outputText value="Advertising" id="advertising"/>
<apex:inputField value="{!Conference__c.Advertising_b__c}"/>
<apex:inputField value="{!Conference__c.Advertising_a__c}"/>
<apex:inputField value="{!Conference__c.Advertising_d__c}"/>
<apex:outputText value="Totals" id="totals"/>
<apex:inputField value="{!Conference__c.Total_Cost_b__c}"/>
<apex:inputField value="{!Conference__c.Total_Cost_a__c}"/>
<apex:inputField value="{!Conference__c.Total_Cost_d__c}"/>
<apex:actionStatus startText="applying value..." id="status"/>
</apex:panelGrid>
</apex:pageBlocksection>
</apex:actionRegion>
</apex:pageBlock>
</apex:form>
</apex:page>