SAP UI5 Diagnostics工具里一个使用面向切片编程(AOP)的一个例子
We know that UI5 framework provides a convenient Diagnostics tool for application developer to set breakpoint on a given method of control class. The Diagnostics tool could be launched via Ctrl+Alt+Sh
用Groovy读取本地文件的代码
下面这些包默认已经被导入了,不需要使用import再次显式导入:java.io.*java.lang.*java.math.BigDecimaljava.math.BigIntegerjava.net.*java.util.*groovy.lang.*groovy.util.*Groovy的运行时方法调用抉择运行时,Groovy根据参数类型决定具体哪一个方法被执行。而Java恰恰相反,被调用的方法
SAP Fiori Launchpad Tile,UI5应用,和PFCG Role的对应关系
问题:已经看到了SAP Fiori Launchpad上的某个tile,如何反推后台需要配置哪个PFCG Role才能看到该tile?这个问题是今天一个朋友在微信上问我的。因为我最近忙着学习一个新的SAP产品,所以这个问题也没有时间展开来写,本文就只做概要介绍。下图是一个Gateway系统上打开的SAP CRM Fiori Launchpad:如何弄清楚后台用户配置了哪个PFCG Role之后,才
使用Chrome开发者工具研究JavaScript里函数的原生实现
As the size of my blog Chrome Development Tool tips used in my daily work turns to be larger I create a separate post to record down this small tip. Are you curious about the “native code” h
使用Chrome开发者工具研究JavaScript的垃圾回收机制
I use the following simple JavaScript code to illustrate:var JerryTestArray = [];(function(){ for( var i = 0; i <&n
Chrome开发者工具里的一个隐藏技能:chrome://net-internals
During my holiday I was writing a small tool for fun, which extracts my personal posts from http://www.baidu.com for further analysis. I am using AJAX in jQuery to perform a synchronous call
JavaScript ES6 Fetch API时需要注意的一个Cookie问题
When I am doing a test of comparison between Stateful and Stateless BSP application ( mentioned in blog Stateless and Stateful – Different behavior in application side ), I meet with a strange is
SAP UI5和Angular的事件处理机制比较
When I am doing a test of comparison between Stateful and Stateless BSP application ( mentioned in blog Stateless and Stateful – Different behavior in application side ), I meet with a strange is
SAP UI5和Angular里控制器(Controller)实现逻辑比较
Let’s first refresh our memory on SAPUI5 controller. I have a simple xml view which only contains a button:<core:View xmlns:core="sap.ui.core" xmlns:common="sap.ui.commons&
通过阶乘的例子,练习在JavaScript, Scala和ABAP里实现尾递归(Tail Recursion)
Before we start to research tail recursion, let’s first have a look at the normal recursion.A simple factorial implementation by recursion:function factorial(n){ if(n ===1) 
利用ES6标准化JavaScript proxy对象拦截SAP C4C页面的HTML div原生操作
SAP Cloud for Customer的UI实现里,有不少使用JavaScript在运行时动态创建div标签的例子。如果想研究这些情形发生的上下文,我们可以使用ES6提供的标准Proxy对象,给浏览器原生的document.createElement方法注入一个proxy,里面设置一个断点。这样每当div标签页被动态创建时,我们注入的proxy将会取代标准的document.createEl
180行JavaScript代码实现的小球随机移动代码
<html> <body> <div id ='desc'><b>test1:</b>test2</div> <canvas id = 'canvas'>&
几种常用的排序算法之JavaScript实现
插入排序<html><script>/* 1)算法简介 插入排序(Insertion-Sort)的算法描述是一种简单直观的排序算法。它的工作原理是通过构建有序序列,对于未排序数据,在已排序序列中从后向前扫描,找到相应位置并插入。插入排序在实现上,通常采用in-place排序(即只需用到O(1)的额外空间的排序),因而在从后向前扫描过程中,需要反复把已排序元素逐步向后
SAP UI5和微信小程序框架里的全局变量
SAP UI5in global variable sap.ui there are many useful utility service available, such as current browser and os information.and use sap.ui.getCore().byId, we can get any UI5 control instance by its i
SAP UI5和angular里的常量定义
SAP UI5以我们以前负责的Opportunity为例,直接创建一个新的js文件,然后用所有字段为大写格式的JSON对象来模拟constant。UI5 framework也是用的这种方式。Angular用constant方法注入:app.constant('MONGOLAB_CONFIG', { baseUrl: '/databases/',
SAP Server Side JavaScript解决方案
服务器端的JavaScript, 看下wikipedia的介绍:https://en.wikipedia.org/wiki/JavaScript#Server-side_JavaScriptServer-side JavaScript> In December 1995, soon after releasing JavaScript for browsers, Netscape intro
SAP UI5应用里的页面路由处理
选择SAP UI5应用的webapp文件夹,右键,选择New->SAP UI5 View, 新建一个UI5视图:视图名称改成app:在manifest.json文件里编辑route区域,将默认的route重命名为home,清空Pattern字段,路由的目标,设置成我们UI5应用里的另一个视图View1:将我们刚才新建的视图设置成这个应用的root view:```JavaScriptvar
SAP UI5 StandardListItem和ObjectListItem的区别
StandardListItem的用法:```xml<mvc:View controllerName="sapcp.cf.tutorial.app.controller.View1" xmlns:mvc="sap.ui.core.mvc" displayBlock="true" xmlns=&
SAP UI5应用里的列表处理
在XML view里,使用List标签引入列表:<mvc:View controllerName="sapcp.cf.tutorial.app.controller.View1" xmlns:mvc="sap.ui.core.mvc" displayBlock="true" xmlns=&qu
使用SAP WebIDE开发SAP Fiori Worklist应用消费OData服务
新建一个Destination,类型为HTTP,再添加三个额外的Properties,其中WebIDEUsage设置为odata_gen:其中WebIDEUsage属性的值,除了odata_gen之外,还有odata_abap,ui5_execute_abap等选择。关于这些值的区别,参考SAP帮助文档:> Values for the WebIDEUsage property determ