Hi all, In the JavaScript there already exists many libraries with a lot out of the box functionalities that make the developments easier. When working on complex SAPUI5 apps, you’ll probably use at least one third party JavaScript library. Two libraries that I often use: • Lodash • Contains functions that makes it easier to work with arrays • • MomentJS • A library with additional date and time functionalities • In this blog I’ll explain how you can use these libraries in your SAPUI5 app.
I’ll use the library MomentJs to show you how. First go to the website of Moment.js: Click on: “moment-with-locales.min.js” Copy the content of the page.
Lodash Get
In your UI5 project create a folder “libs”. This is the place to put in all the third party libraries. In the folder “libs” we create a file “moment.js” In this file we paste the code that we’ve copied from the MomentJS website. The project structure will look like this. One of the ways to include this library into your project could be including the library in the index.html page. Please, don’t do this, this will not work when your UI5 app is used in the Fiori Launchpad. The Fiori Launchpad will start your app from the Component.js and not from the Index.html.
Lodash Find
We have to include the library in the JavaScript files where we want to use it, in this example we’ll use it in the controller. You include the library by using the define functionality. In the define function you add the path to the file that contains the code of the library, in this case it will be “SAPUI5ExternalLibs/libs/moment” ( “//” ). The value in the define function will be undefined and should be different from the global name of the library. Therefore we used the name “momentjs”.
Download michael brecker licks pdf free. This one short lick is like a masterclass on how to use tri-tone substitutions. If you aren’t quite ready for substitutions yet, don’t worry! The PDF is very important on this one so make sure to download it and be looking at it while listening to the episode. File this episode under work to be done when you feel ready. I would guess that most of you will be able to grasp what Michael is doing even if you aren’t quite ready to put it into your own solos yet.