码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • Salesforce-Visualforce-1.概要(Get Started with Visualforce)


    一、Visualforce 简介

    • Visualforce 是一个 Web 开发框架,开发人员使用 Visualforce 可为托管在 Lightning 平台上的移动和桌面应用程序构建复杂的自定义用户界面。可以使用 Visualforce 构建符合 Lightning Experience 样式的应用程序,以及自己的完全自定义界面。
    • 通过 Visualforce,开发人员可以扩展 Salesforce 的基础功能,替换原有功能或创建全新的应用程序。利用强大的内置标准控制器特性,或在 Apex 中编写自己的业务逻辑。可以为自己的组织构建功能,或者在 AppExchange 中创建出售的应用程序。
    • Visualforce 应用程序开发与构建 Web 应用程序非常类似。开发人员使用组件、HTML,以及可选的样式元素等创建 Visualforce 页面。
    • Visualforce 可以集成任何标准网页技术或 JavaSript 框架,营造更生动、更丰富的用户界面。每个页面只能通过一个 URL 进行访问。

    当有人访问页面时,服务器执行页面所需的数据处理,将页面呈现为 HTML,并将结果返回给浏览器进行显示。
    在这里插入图片描述
    代码示例

    <apex:page standardController="Contact" >                            
        <apex:form >                            
            <apex:pageBlock title="Edit Contact">                            
                <apex:pageBlockSection columns="1">                            
                    <apex:inputField value="{!Contact.FirstName}"/>                            
                    <apex:inputField value="{!Contact.LastName}"/>                            
                    <apex:inputField value="{!Contact.Email}"/>                            
                    <apex:inputField value="{!Contact.Birthdate}"/>                            
                </apex:pageBlockSection>                            
                <apex:pageBlockButtons >                            
                    <apex:commandButton action="{!save}" value="Save"/>                            
                </apex:pageBlockButtons>                            
            </apex:pageBlock>                            
        </apex:form>                            
    </apex:page>
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15

    二、打开方式

    从应用程序启动器打开 Visualforce 页面
      Visualforce 应用程序和自定义选项卡都可以从应用程序启动器中获得
    在这里插入图片描述

    三、Visualforce开发工具

    1.内置方法:

    • Developer Console 是功能强大且齐全的工具,用于 Salesforce 组织内部的 Lightning 平台开发。

    • 开发模式下的 quick fix(快速修复)和页脚是快速创建新页面或对现有页面进行简短编辑的快捷方式。适用于快速更改或创建一个简短页面,并在其合并到应用程序页面之前在空白板上测试一些新代码。
        the development mode “quick fix” and footer is a fast way to quickly create a new page, or make short edits to an existing page. It’s great for quick changes or when you want to create a short page to test out some new code on a blank slate, before incorporating it into your app pages.

    • 通过在“快速查找”框中输入 “Visualforce 页面”,然后选择 Visualforce Pages(Visualforce 页面),可以在“设置”中使用设置编辑器,这是最基础的编辑器,但它提供了对 Developer Console 或开发模式页脚中不可用页面设置的访问。
        The Setup editor, available in Setup by entering Visualforce Pages in the Quick Find box, then selecting Visualforce Pages, is the most basic editor, but it provides access to page settings that aren’t available in the Developer Console or development mode footer.

    2. 外部工具:

    • 还有多种可用的外部工具,例如用于 Eclipse 的 Lightning 平台 IDE 插件,它可以连接到您的 Salesforce 组织并用于 Visualforce 开发。
        There are also a number of external tools available, such as the Lightning Platform IDE plug-in for Eclipse, which can connect to your Salesforce organization and be used for Visualforce development.

    Resources

    Create Visualforce Pages
    Developer Console Functionality
    Using the Editor for Visualforce
    Tools for Visualforce Development
    Standard Component Reference
    The Salesforce Extensions for Visual Studio Code
    Lightning Platform Tools and Toolkits
    Developing Visualforce With Your Browser
    Visualforce Developer’s Guide
    Dreamforce Session: Introduction to Visualforce
    Build Apps Visually with Lightning App Builder
    Trailhead: Lightning App Builder
    Trailhead: Use Visualforce in Lightning Experience

  • 相关阅读:
    【附源码】计算机毕业设计SSM体育馆预定系统
    k8s入门之Secret(十)
    Linux-shell编程入门基础
    【计算轨迹误差】
    ProEasy机器人:TCP无协议通讯(socket通讯)时打印log日志
    索尼PS VR2体验:硬件素质不错,高质量游戏是关键
    java-net-php-python-jsp生活用品购物系统计算机毕业设计程序
    基于Questasim的SystemVerilog DPI使用流程
    使用ubantu+pyspark完成对美国疫情的数据分析和可视化显示
    去除做题痕迹的软件有哪些?安利三款好用的
  • 原文地址:https://blog.csdn.net/nihaixiao/article/details/125469198
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号