Skip to Content

Many modern web development editors are now able to provide some level of autocomplete for JavaScript similar to the functionality enjoyed by java/.net developers etc. Typically some import and configuration is required for the editor to be aware of the JavaScript libraries you may be using in your project.  For UI5  Robin van het Hof  has written an excellent  blog  outlining how to get the UI5 or any JavaScript libraries into Webstorm. (note: there also appears to be a plugin available now as well ).  This is pretty straight forward as the UI5 libraries are easily available for download  via the open UI5 project. This is not the case for the MII libraries so how can we get them? This turns out to be relatively simple.


First create a new default irpt of html page in MII. Your page should only contain the script tag for the MII bootstrap.js file.  It should look similar to this:

/wp-content/uploads/2015/08/irpt_779812.png


Then simply launch or load this page in the Chrome web browser. Select ‘Save page as..’  and save with a useful name like ‘MII.html’  and  save as type ‘Webpage, complete’.  You should now have an html file and a directory. One is the html from your webpage and the directory contains all the JavaScript and css sources used by the page.


/wp-content/uploads/2015/08/descktop_779840.png

/wp-content/uploads/2015/08/dir_779841.png


You may want to remove the UI5 sources and css files that were also pulled in if you plan import them separately. These are the sap-ui-core.js and library(*).css files. Now that you have the MII sources follow the instructions in Robin’s blog or for your specific development environment to import them and make them available in your preferred editor. You should then be able to enjoy autocomplete and api browsing with the MII javascript libraries. 🙂




/wp-content/uploads/2015/08/webstorm_779842.png


A version of this blog was published here

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply