Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Salesforce 调用visualforce页面上的方法的未知属性_Salesforce_Apex_Visualforce - Fatal编程技术网

Salesforce 调用visualforce页面上的方法的未知属性

Salesforce 调用visualforce页面上的方法的未知属性,salesforce,apex,visualforce,Salesforce,Apex,Visualforce,大家好,当我尝试使用来自控制器的方法时,我收到一个错误“Unknown property”CAP_ManageDepartment.countriesOptions“” 以下是我的方法: @RemoteAction global static List<String> getCountriesOptions(ccrz.cc_RemoteActionContext ctxpage) { List<String> allCountriesList =

大家好,当我尝试使用来自控制器的方法时,我收到一个错误“Unknown property”CAP_ManageDepartment.countriesOptions“”

以下是我的方法:

   @RemoteAction global static List<String> getCountriesOptions(ccrz.cc_RemoteActionContext ctxpage) {     
    List<String> allCountriesList = new List<String>{' Afghanistan',' Albania',' Algeria'};        
    return allCountriesList;
}
@RemoteAction全局静态列表getCountriesOptions(ccrz.cc_RemoteActionContext ctxpage){
List allCountriesList=新列表{‘阿富汗’、‘阿尔巴尼亚’、‘阿尔及利亚’};
返回allCountriesList;
}
这就是我想要得到它的地方:

     <div class="form-group">
        <div class="req_list_description">
        <apex:selectList value="{!editCountry}" multiselect="false" size="1">
            <apex:selectOptions value="{!countriesOptions}"/>
        </apex:selectList>
        </div>
     </div>

错误:未知属性“CAP_ManagedDepartment.countriesOptions”

我该怎么办