make a select object field in salsforce

笑着哭i 提交于 2019-12-25 02:02:32

问题


First, I'm just a beginner in salesforce and started to learn visualforce page using apex,

basically I have the default object "people", and many records in it

now is to write a "payment" visual page to allow people to select the people record

they are master-details relationship, what apex tag should I use in both page side and apex class? similar like time selector one below:

page code:

<apex:inputField value="{!proxyObject.closeDate}"/> 

class:

opportunity o = new Opportunity();

public Opportunity getProxyObject() { return o; }

Can any body help me with it? Any kind of suggestions are welcomed!!!


回答1:


If you have lookup field from opportunity to people just write on page something like this <apex:inputField value="{!proxyObject.people__c}"/>



来源:https://stackoverflow.com/questions/15888266/make-a-select-object-field-in-salsforce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!