【Salesforce】Invalid selectOptions found. Use SelectOption type in Apex.
Visualforceで選択リストを記述した際に発生しました。
Invalid selectOptions found. Use SelectOption type in Apex.
以前にもこのエラーが発生しましたね。
エラーが発生した場所のイメージです。。
<apex:selectList value="{!obj.selectField}" size="1" >
  <apex:selectOptions value="{!obj.selectField}" >
</apex:selectList>
凡ミスですね。
apex:optionsのValueにもStringのフィールドが設定されています。
選択リスト値のリストを設定すればOKです。
<apex:selectList value="{!obj.selectField}" size="1" >
  <apex:selectOptions value="{!SelectOptionList}" />
</apex:selectList>
     
            
No comments.