在 salsforce 中创建一个选择对象字段 [英] make a select object field in salsforce

查看:29
本文介绍了在 salsforce 中创建一个选择对象字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我只是 salesforce 的初学者,并开始使用 apex 学习 Visualforce 页面,

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

基本上我有默认对象people",里面有很多记录

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:

页面代码:

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

类:

opportunity o = new Opportunity();

public Opportunity getProxyObject() { return o; }

任何机构可以帮助我吗?欢迎任何形式的建议!!!

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

推荐答案

如果您有从机会到人们的查找字段,只需在页面上写下类似这样的内容 <apex:inputField value="{!proxyObject.people__c}"/>

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

这篇关于在 salsforce 中创建一个选择对象字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆