Tag:Wang Zi

  • Display countdown UI in SAP webclient UI

    Time:2020-11-13

    First let’s have a look at what is achieved: Once you click work center “Jerry count down”, the count down is displayed with a small animation. The steps to build this application are almost the same as Step by step to create Bar Chart in Webclient UI. (1) Create a new WebUI component with a […]

  • Using JMeter to test SAP cloud API certified by SAP ID service

    Time:2020-11-12

    Recently I am working on a co-innovation project with one local partner in China. They will provide a Face Recognition solution which consists of a set of hardware & software. Once a person is recognized, the partner software will consume SAP S/4HANA contact creation API to create a contact instance in the system.Since we need […]

  • Debugging SAP ui5 application installed on IOS device on Windows computer

    Time:2020-11-2

    It is possible to debug a UI5 application running on an iOS device with a windows laptop. Suppose I have deployed my UI5 application to SAP cloud platform: https://jerrylist.cfapps.eu10… Now I launch this application in my iPad: And I would like to debug this UI5 application which is running on iPad with my windows laptop. […]

  • build.gradle Principle analysis of Maven central implementation of repositories

    Time:2020-10-26

    If the build.gradle What happens if you change Maven central to Maven central 2? Error message: could not find method mavencentral2() for arguments [] on repository container of type org.gradle.api . internal.artifacts.dsl .DefaultRepositoryHandler. For this defaultrepository handler, search the gradle directory and find the corresponding java file: DEFAULT_ MAVEN_ CENTRAL_ REPO_ The name constant is […]

  • Analysis of hybris server startup log

    Time:2020-10-25

    Build file detection, using B2C_ ACC recipe start server / home / jerrywang / hybris / installer / recipes / B2C_ acc/ build.gradle The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead. at build_24qda9aair3teyrqc9izdrv89.run(/home/jerrywang/Hybris/installer/recipes/b2c_acc/build.gradle:79) :recipes/b2c_acc:startExecuting: createConfig…Buildfile: /home/jerrywang/Hybris/hybris/bin/platform/build.xml Simple startup environment detection, such as operating system, […]

  • Custom ID format of order generated by hybris

    Time:2020-10-24

    In the project local.properties The definition is as follows: keygen.order.code.digits=8keygen.order.code.start=00000000keygen.order.code.numeric=truekeygen.order.code.template=$ core-spring.xml: <bean id=”orderCodeGenerator” class=”de.hybris.platform.servicelayer.keygenerator.impl.PersistentKeyGenerator”> <property name=”key” value=”${keygen.order.code.name}”/> <property name=”digits” value=”${keygen.order.code.digits}”/> <property name=”start” value=”${keygen.order.code.start}”/> <property name=”numeric” value=”${keygen.order.code.numeric}”/> <property name=”template” value=”${keygen.order.code.template}”/> The results are as follows: After modifying the definition, if you don’t want to restart hybris server, it can take effect immediately. Use the following java […]

  • Discount maintenance of hybris order price

    Time:2020-10-23

    Create a new order in backoffice, maintain a line item, and add a product: In the subtotal interface of line item, maintain base price, and in the discount values field, enter discount information: Discount: 10.00%: Go back to the order interface, click the recalculate price button, and you will see the message that 1 * […]

  • SAP hybrid discount group, discount group, discount record and user group

    Time:2020-10-22

    Create a new customer discount group under the price Settings > discount > customer discount groups menu in backoffice. This is just a place holder to store the specific discount information created later Maintain a discount record in discount. The discount is 20% and the ID is jerrydishcount_ 20: There is also a way and […]

  • A little trick, let your ABAP open SQL have self description effect

    Time:2020-10-17

    ABAP developers must have dealt with the confusing database table fields in Figure 1. To understand its meaning, you have to open se11 to see the field description. If you use as to set more readable aliases for these field names when writing code after viewing the description information, it will be more convenient to […]

  • Using chrome developer tools to study JavaScript garbage collection mechanism

    Time:2020-10-16

    I use the following simple JavaScript code to illustrate: var JerryTestArray = []; (function(){ for( var i = 0; i < 100; i++){ JerryTestArray[i] = document.createElement(“div”); } })(); Create a new empty tab in your Chrome, and first create a snapshot with empty heap status by click “Take Snapshot” button: The Snapshot1 is generated. Now […]

  • A hidden skill in chrome developer tools: chrome://net-internals

    Time:2020-10-15

    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 to fetch html source code of given url specified by argument requestURL.、 function getPostByAJAX(requestURL){ var html = $.ajax({ url: requestURL, async: false}).responseText; return html; […]

  • A quick way to find the spring framework is to find the XML configuration file and parse the beans definition

    Time:2020-10-15

    We can define bean configuration in xml and then can get instantiated bean instance with help of all kinds of containers for example ClassPathXmlApplicationContext as displayed below: The content of Beans.xml: <?xml version=”1.0″ encoding=”UTF-8″?> <!– http://stackoverflow.com/questions/18802982/no-declaration-can-be-found-for-element-contextannotation-config –> <beans xmlns=”http://www.springframework.org/schema/beans” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:context=”http://www.springframework.org/schema/context” xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd”> <bean id=”helloWorld” class=”main.java.com.sap.HelloWorld”> <property name=”message” value=”sss”/> <property name=”testMin” value=”2″/> <property […]