You are on page 1of 3

00:13:35

I go back over to the Project Explorer. I�ve got my Exercises01 project and all my
content is checked out ready to do further development on.
00:13:45
I�ve got my xsaccess file, it�s got some just basic authentication set, we have our
schema already created here for us.
00:13:56
And actually we�ll already be able to go to the catalog as well and see that schema
also.
00:14:03
So everything is basically ready to start development. In your exercises that
you�ll do you�ll also see how to grant yourself the initial role,
00:14:12
how to change the xsaccess file because maybe we want form-based authentication and
maybe we want to have some cache control, some of the advanced settings.
00:14:20
But right now, we�re really ready to start the rest of our development but maybe we
just want to test something here,
00:14:26
maybe we just want to go ahead and run this index.html. And what you see here is it
opens that web page in a browser window for us.
00:14:35
This is a newer feature of the HANA Studio. You no longer have to type in the URLs,
we can just test them directly from the tooling.
00:14:42
I�ll get a little button that says Hello. When I click on it, it says Hello world.
Not anything spectacular
00:14:48
but it�s enough to tell us that the objects were generated correctly, that they�re
accessible over the web browser, that, you know, the basic authentication is set up
right.
00:14:58
So, you know, just starting off, that I�ve got a project that works and is ready
for further development.
00:15:03
Which we�ll see in the subsequent units.
20
WEEK 1, UNIT 5
00:00:12
Welcome back to Unit 5, and in this unit we are going to talk about the Web-Based
Workbench.
00:00:19
So in SP6, we introduced two separate IDEs, one is the full version, and then one
is the light version.
00:00:28
Now in SP7, we merged these two IDEs together so that we had one IDE moving
forward.
00:00:36
And, this is an alternative to using the Studio. It shares some of the basic
features and functionality of the Studio
00:00:47
but does not have all of the features of the Studio.
00:00:50
Some of the advantages of using the Web-Based Workbench over the Studio include
having a zero installation
00:00:59
so there is nothing to install. You simply access it via the browser and do all of
your work within the browser itself.
00:01:09
Another advantage is the fact that the version is always the same as the server
that you are running it from.
00:01:16
So there is no chance of mismatching the Studio version with the server.
00:01:22
And finally, the fact that you can run it on the browser allows you to run it on a
mobile device.
00:01:29
So, say, for example, you are at the airport and you have to make a quick change to
maybe a role or something that's broken,
00:01:37
you of course can access it via a mobile device and make that quick change while
you're sitting at the airport.
00:01:46
So again, this is a completely browser-based IDE, lightweight, for creating and
editing development objects within HANA.
00:01:55
You are also able to do debugging for a server-side Java script.
00:02:01
We can access the editor via the direct URL sap/hana/xs/editor.
00:02:09
Within this editor we have full access to the HANA repository within the browser
00:02:16
where we can create, delete and rename packages and files within these packages.
00:02:23
The code editors support things like syntax coloring, code folding, client-side and
server-side syntax checking,
00:02:32
as well as � with this approach there is no need to check out the files to your
local project like you do in the Studio.
00:02:40
It's direct editing. So, you open up the file, you edit the file and click Save,
00:02:45
and it's automatically committed to the server and the activation is done
automatically for you.
00:02:52
Again I mention the debugging support because today we support the debugging of
server-side Java scripts.
00:03:00
And in a future support package, we of course will allow for the debugging of
procedures as well � SQL script procedures.
21
00:03:06
So we can set breakpoints within the editor and do evaluation of the variables
within the server-side Java script as well as the parameters.
00:03:18
We have full access to the catalog so we can browse the tables, views, procedures
and functions,
00:03:26
the run-time objects themselves that are generated by our repository.
00:03:31
We can access this via the sap/hana/xs/catalog direct URL.
00:03:40
For security, we are able to maintain and create users directly from the web IDE.
00:03:50
We are also allowed to assign roles to those users and we can access this via the
direct URL sap/hana/xs/security.
00:04:01
We also have the ability to view trace files from the web IDE.
00:04:06
Now, we are able to view trace files for the Index Server and the XS Engine trace
files only.
00:04:15
We can access this via the /sap/hana/xs/trace direct URL.
00:04:23
So we can go to the demo here: So this is the landing page for the Web-Based
Development Workbench.
00:04:32
And you can see here, I have four separate areas I can access.
00:04:37
So I can go into the editor. And I was planning on that happening.
00:04:47
So I go ahead and relog in.
00:04:58
So, this is the editor, the web-based editor.
00:05:01
You can see here, I have a complete access to the HANA repository under the Content
folder here.
00:05:11
So, if we browse to the workshop package, and under exercises, and then under the
g01 package,
00:05:21
we see the artifacts that Thomas created in the earlier unit. And you can see...
00:05:28
You can open up these files and edit those files directly.
00:05:35
If we go ahead and open up the index.html file here, again, basically the same
editor that you would see in the Studio
00:05:45
but you have direct access to this via the web. So, if I wanted to go ahead and
change this,
00:05:50
I can say "Hello World!... instead of "Hello World!", I say "Hello openSAP!", and
click Save,
00:05:58
and when I do that, it does an automatic commit and activation on the server side.
00:06:02
So, there's no... I don't have to do a Save and an activation like I do in the
Studio. It happens all for me automatically.
00:06:11
So if I go ahead and run this then simply by selecting it, and say Run.
00:06:22
And when I click Say Hello, it says Hello openSAP!
00:06:26
So again, you can see the direct editing effect here without having to do
activation.
00:06:32
As soon as you save it, it's automatically activated and automatically live.

You might also like