您的位置:首页 > 其它

salesforce VF page 显示 Dependent picklist field

2014-01-08 09:35 381 查看
Controller First…

public with sharing class locationController{

public list<location__c> locationList{get;set;}

public locationController(){
locationList = [Select ID, Country__c, State__c, City__c
From Location__c];
}

}


Visualforce Page Second…

<apex:page controller="locationController">
Location Table
<apex:messages style="color:red"></apex:messages>

<apex:form>
<apex:pageblock>
<apex:pageblocktable value="{!locationList}" var="locItem">
<apex:column headervalue="Country">
<apex:inputfield value="{!locItem.Country__c}">
</apex:inputfield>
</apex:column>

<apex:column headervalue="State/Province">
<apex:inputfield value="{!locItem.State__c}">
</apex:inputfield>
</apex:column>

<apex:column headervalue="City">
<apex:inputfield value="{!locItem.City__c}">
</apex:inputfield>
</apex:column>
</apex:pageblocktable>
</apex:pageblock>
</apex:form>

</apex:page>


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: