CRM开发学习一

本文主要阐述UI组件,genIL和BOL。

先说下这张图。从下往上看,后台具体的表的操作,由CRM包装为一系列的API;这些API再进一步包装为genIL(generic interaction layer);genIL可以在一步由CRM包装出BOL(business object layer),当然开发人员自己也可以建BOL;这些BOL绑定到UI组件MVC架构中的M上;UI组件实例化后就是最终展现到用户浏览器上面的内容。

这两段定义需要准确的理解;

• Business object layer (BOL): The business object layer saves the business
object data, for example of sales orders, at runtime of the SAP CRM session.
This layer guarantees the separation of the CRM WebClient UI and the
underlying business logic.
• Generic interaction layer (genIL): The generic interaction layer handles the
data transfer from the business object layer to the application programming
interfaces (APIs) of the underlying business engine. It is the connection
between the business object layer and the underlying business engine.

BOL的数据来自于genIL。genIL才是真正与表进行交互的。

在浏览器上面,进入一个UI组件,鼠标点一个栏位,按【F2】就能获取到这个Attribute,这个View,这个Context,这个Window,这个Configuration,这个Component的所有有用信息。绝对的神器。

知道了组件名,在GUI用事物代码【BSP_WD_CMPWB】就能查看这个组件了。

实际上,这个UI组件就是一个MVC架构的BSP项目。所以你用SE80也是一样能看的。

区别就是如图这样,展现的效果更好,可用的功能更多。

MVC架构理解这张图就行了。

关键是理解上面这张图。在UI里面,【C】的表现形式是XXX.DO,实际的内容是一个以_IMPL结尾的class,事件,方法,页面跳转等等有逻辑代码的都含在里面;【M】要分两种,都是class,一种是以_CTXT结尾的,这个是上下文的主class,它的下面挂若干个(也可能没有)以_CNxx结尾的class,这个才是真正某个上下文的业务模型,各种和字段有关的内容包括需要逻辑代码的地方都在这里面;【V】就是那些.HTM文件,需要UI展现的才有这个文件,文件里面的元素通过ID关联到后台字段。

关于BOL和genIL,请看下面这张图。

BOL没有直接改表数据。BOL将对数据的操作传递给genIL。CRM本来就有很多FUNC是处理相关数据到表的,genIL根据BOL传过来的数据进行判断分析和加工,调用相应的FUNC执行。所以很多时候你会发现,BOL的属性结构和真实的表结构往往不一样。

BOL有几种类型:

Access Object: An access object is a special type of BO, whose ID can be used to
determine both the attributes of the access object itself and those of its dependent objects.

访问对象:获取数据的入口对象,一般从这里使用BOL。
Dependent Object: A dependent object is a special type of BO, whose attributes
cannot be determined solely from the ID of this BO, but instead, only or together with the ID of the superior access object.
Root object: The root object is the only object within the hierarchical structure of a data model that is assigned as a superior object to all other objects. Each root object is also an access object.

根对象:相关的一组对象的集合。
Search-Object: A query object is a special type of BO whose attributes are the
parameters of a search request.

查询对象:一般用于查询条件。

Dynamic Search-Object: A dynamic query object is a type of BO whose attributes are the parameters of a search request. It is possible to create select options for these parameters.

动态查询对象:查询条件可变的UI对应的BOL。
Search Result Object: The result object of a search request has a dictionary structure assigned and displays data from different BOs as a result list. To link the search result object to the data model hierarchy the Search Result Object is associated with the root object of the same component.

查询结果对象:查询结果数据集合对应的BOL。

记住两个事物代码:

【GENIL_MODEL_BROWSER】查询BOL;

【GENIL_BOL_BROWSER】根据BOL查询数据。
————————————————
版权声明:本文为CSDN博主「范叉叉」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/fanchacha/java/article/details/51462018

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
回答: Dynamics CRM 365是一种客户关系管理平台,用于帮助企业管理客户关系和提升销售业绩。如果你是零基础入门学习,以下是一些建议和资源可以帮助你开始学习: 1. 官方SDK:Dynamics CRM 365的官方SDK是学习的主要资料之一,其中包含了源码和工具等内容。你可以从Dynamics官网下载SDK,官方SDK的在线网址是:https://docs.microsoft.com/zh-cn/dynamics365/customer-engagement/developer/developer-guide \[2\] 2. 学习资料:除了官方SDK,你还可以寻找其他学习资料来帮助你入门。可以在网上搜索Dynamics CRM 365的教程、视频教程和文档等资源,这些资源可以帮助你理解平台的基本概念和功能。 3. 社区支持:加入Dynamics CRM 365的社区可以帮助你与其他学习者和专业人士交流和分享经验。你可以参加相关的论坛、社交媒体群组或线下活动,与其他人一起学习和解决问题。 4. 实践项目:通过实践项目来应用你所学的知识是提升技能的有效方式。你可以尝试在实际项目中使用Dynamics CRM 365,这样可以更好地理解平台的应用和功能。 总之,零基础入门学习Dynamics CRM 365需要一定的时间和努力,但通过合适的学习资源和实践,你可以逐步掌握平台的基本知识和技能。祝你学习顺利! #### 引用[.reference_title] - *1* *2* [【转】Dynamics CRM 365零基础入门学习(一)Dynamics介绍以及开发工具配置](https://blog.csdn.net/sinolover/article/details/107379993)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [【转】Dynamics CRM 365零基础入门学习(五)权限管理](https://blog.csdn.net/sinolover/article/details/107380058)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值