专栏首页Jerry的SAP技术分享如何将SAP Cloud for Customer的扩展字段放置到Embedded Component中

如何将SAP Cloud for Customer的扩展字段放置到Embedded Component中

My series of Cloud Application Studio Blogs

  • How to detect EditMode in an Embedded Component
  • Step by step to enable your custom BO with attachment upload functionality
  • Step by step to create an Adobe Print form in Cloud application Studio
  • How to render PDF which displays picture from the image attachment of your custom BO
  • How to get current logged on business user’s employee information and assigned organization unit via ABSL
  • How to implement dynamic access control based on custom BO using OWL
  • How to make Code List Restriction work when control field and restricted field are not on the same BO
  • How to implement custom number range using custom business object
  • Two approaches to create Code List in Cloud Studio
  • Create Dynamic Code List via Custom Business Object Association
  • Step by step to develop Thing Type based navigation and BO Object based navigation
  • Put Extension field into embedded component and make it visible in Standard UI
  • One possible cause that embedded component fails to display in UI
  • Step by step to create HTML Mashup and make it visible in UI
  • Step by step to enable Text Collection for your custom BO
  • Automatically send an Email notification to line manager via Workflow in Account application
  • Step by step to create Object Value Selector in Cloud Application Studio

Requirement

Create extension field , put it to a given embedded component and finally make it visible in standard UI.

(1) Create an extension field on Opportunity root node and implement an action to calculate whether the current opportunity is over due:

The check logic for over due is simply based on the comparison between current system date and closed date maintained in opportunity header.

import ABSL;
var current = Context.GetCurrentGlobalDateTime( ).GetDate();
var close = this.SalesForecast.ExpectedProcessingDatePeriod.EndDate;
this.IsOverDue = current.GreaterThan(close);

(2) Create a new embedded component OppEC, create two data field and bind them to standard BO field ID and extension field IsOverDue.

Create a checkbox UI element in the embedded component and bind it to ID field. Create a button in order to execute OverdueCheck action.

Switch to embedded component’s controller tab, create an unbound data field OpportunityID, and use it as BOOperation Read’s parameter. This unbound data filled will be filled with values passed from inport to be created soon.

Create an inport and declare the parameter bound to OpportunityID.

Assign the created event handler to OnFire attribute of this inport.

Create another event handler overDueCheck and bind the BO action OverdueCheck whose implementation is done by our ABSL code.

(3) Add the embedded component to Opportunity TI overview tab,

and bind the parameter defined in standard outport to the parameter declared in my custom inport in embedded component OppEC:

Now we could test in UI: select an opportunity whose close date is yesterday, and click check button:

After that the is Overdue check box is set as selected, meantime we could observe the corresponding roundtrip from Chrome development tool which indicates the due check is done successfully with due indicator marked as X:

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • 使用soapUI消费SAP Cloud for Customer的web service

    Hello all, I am really a newbie to Cloud for Customer world and this is my firs...

    Jerry Wang
  • 一些SAP CRM和C4C顾问应聘的面试题

    We have checked your resume and most of your project experience are based SAP co...

    Jerry Wang
  • 2016-05-09的POC Yaas Open Event的代码审查

    Jerry: One phone number is only allow for registration once, right? How to maint...

    Jerry Wang
  • 松乐日志 2017 Week#52

    区块链技术造福食品和农业领域 Blockchain Technology Can Benefit Food and Agriculture 今年的重大事件之一是...

    企鹅号小编
  • 数据科学家修炼指南

    Software engineer’s guide to getting started with data science 数据科学家修炼指南 Decem...

    CDA数据分析师
  • 快速学习-Saturn(英文版入门指引)

    Saturn is a platform created by VIP.com(唯品会) to provide a distributed, fault tol...

    cwl_java
  • 动态DAG计划的几何深度强化学习(AL)

    在实践中,面对包含不确定性以及不确定性和动态性的组合优化问题是很常见的。这三个属性要求适当的算法。强化学习(RL)是一种非常自然的方式。如今,尽管做出了一些努力...

    田冠宇
  • 彭博报道提及:腾讯企点QTrade为金融机构远程交流提供保障

    ? 以下为彭博报道原文: China’s Trade-From-Anywhere Markets Face Their Biggest Test By Lul...

    腾讯企点
  • 使用soapUI消费SAP Cloud for Customer的web service

    Hello all, I am really a newbie to Cloud for Customer world and this is my firs...

    Jerry Wang
  • 【论文推荐】最新八篇强化学习相关论文—残差网络、QMIX、元学习、动态速率分配、分层强化学习、抽象概况、快速物体检测、SOM

    【导读】专知内容组整理了最近八篇强化学习(Reinforcement learning)相关文章,为大家进行介绍,欢迎查看! 1.BlockDrop: Dyna...

    WZEARW

扫码关注云+社区

领取腾讯云代金券