【问题标题】:Can you automate putting a field on a page layout across ALL profiles?您能否自动在所有配置文件的页面布局上放置一个字段?
【发布时间】:2012-05-30 14:26:52
【问题描述】:

我在 Salesforce 中工作,需要将货币字段添加到我的联系人对象并放在所有配置文件的同一部分中。

有没有办法在不手动调整每个配置文件的页面布局的情况下做到这一点?每个配置文件和记录类型都有许多页面布局,希望有更好的方法

谢谢,

-新人。

【问题讨论】:

    标签: salesforce apex-code visualforce


    【解决方案1】:

    创建字段时,您可以选择将字段添加到每个页面布局和每个配置文件。您必须浏览每个页面布局才能将字段移动到适当的部分,但在初始创建后,应该无需返回每个配置文件。

    您可能想探索使用 Force.com IDE 来管理您的页面布局。页面布局的一部分可能如下所示:

    <layoutSections>
        <customLabel>true</customLabel>
        <detailHeading>false</detailHeading>
        <editHeading>true</editHeading>
        <label>Contact Information</label>
        <layoutColumns>
            <layoutItems>
                <behavior>Required</behavior>
                <field>Name</field>
            </layoutItems>
            <layoutItems>
                <behavior>Edit</behavior>
                <field>AccountId</field>
            </layoutItems>
         </layoutColumns>
    </layoutSections>
    

    一旦您弄清楚如何更改一个布局,就可以将您的更新复制粘贴到多个布局中。

    【讨论】:

      猜你喜欢
      • 2013-08-14
      • 2014-06-13
      • 2016-03-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多