Created a nice software using SpiderBasic ? Post you link here !
Stefan Schnell
 
Posts: 46
Joined: Tue Dec 01, 2015 8:17 am

SpiderBasic in the Context of SAP Web Application Server

by Stefan Schnell Mon Jan 11, 2016 9:38 pm

Hello community,

here a tiny preview at my actually SAP test environment, I load the SpiderBasic framework in the SAP MIME repository, add the html file as BSP (Business Server Page) and correct the pathes to the script files and voila - SpiderBasic works on the SAP Web Application Server.
:D

In combination with my post here you can use now SpiderBasic seamlessly with SAP. The next steps is to connect an SAP system via WebService or OData service, with this possibility you don't need an extra data layer like SQLite database. You can connect to the SAP system directly and you can use CRUD(Q) operations. For that a good preparation is my suggestion from here. And later to expand the HTTPRequest, to manipulate the header.
:D

Cheers
Stefan

Image
Fred
Site Admin
 
Posts: 1013
Joined: Mon Feb 24, 2014 10:51 am

Re: SpiderBasic in the Context of SAP Web Application Server

by Fred Tue Jan 12, 2016 7:34 am

That's very promizing ! Good work :)
Stefan Schnell
 
Posts: 46
Joined: Tue Dec 01, 2015 8:17 am

Re: SpiderBasic in the Context of SAP Web Application Server

by Stefan Schnell Thu Jan 14, 2016 4:31 am

Hello Fred,

thanks for your reply.

Here now more results from my experiments in a business environment. At first I transfer the SpiderBasic framework in a public folder of the SAP MIME-Repository. In this case you don't have any security restrictions and each other BSP can access to the framework without problems. I check your example GadgetOverview and it works as expected.

Image

There are three tiny interesting things:
    1. In the SpiderBasic framework are files with 0 byte size, like document.css in dijit\themes\flat directory. The SAP MIME-Repository don't accept files with 0 byte size. To avoid errors it is necessary to insert e.g. a space in this files.
    2. The WebGadget works perfect in the environment, but it generates a security error.
    Image
    3. The business works primarily with the Internet Explorer, so I add the meta tag <meta http-equiv="X-UA-Compatible" content="IE=edge" /> in my html code. I think it is a benefit if this meta tag is always in the html code.

For my experiments I modify the html code. I add the possibility to work with a flexible path of the SpiderBasic framework. On this way it is easier to experiment e.g. with different versions.

Code: Select all
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="utf-8">
<title>SpiderBasic</title>
<script type="text/javascript">var spider = {}; spider.nbModules = 0; spider.nbLoadedModules = 0;</script>

<script type="text/javascript">
var Path = "/SAP/BC/BSP/SAP/PUBLIC/spiderbasic/libraries/javascript";
document.write("<script type='text/javascript' data-main='" + Path + "/main.js' src='" + Path + "/require.js'><\/script>");
document.write("<script type='text/javascript' src='" + Path + "/library.js'><\/script>");
</script>
<script type="text/javascript">var dojoConfig = { locale: 'en',  async: 1 }; </script>
<script type="text/javascript">
document.write("<link rel='stylesheet' href='" + Path + "/dijit/themes/flat/flat.css' type='text/css' />");
document.write("<link rel='stylesheet' href='" + Path + "/dgrid/css/dgrid.css' />");
document.write("<link rel='stylesheet' href='" + Path + "/cbtree/icons/cbtreeIcons.css' type='text/css' />");
document.write("<link rel='stylesheet' href='" + Path + "/cbtree/icons/fileIconsMS.css' type='text/css' />");
document.write("<script type='text/javascript' src='" + Path + "/xdate.dev.js'><\/script>");
document.write("<script type='text/javascript' src='" + Path + "/canvas-toBlob.js'><\/script>");
document.write("<script type='text/javascript' src='" + Path + "/FileSaver.js'><\/script>");
document.write("<link rel='stylesheet' href='" + Path + "/themes/blue/window.css' type='text/css' />");
</script>

<script type="text/javascript" src="gadgetoverview.js"></script>

<link rel="icon" type="image/png" href=""/>

</head>

<body class="flat" id="spiderbody">

</body>
</html>


Image

I think about over a program to deploy the SpiderBasic javascript and/or html code automatically to an SAP system, from the SpiderBasic IDE via the Tools menu. That would be an ease of work definitely.

Cheers
Stefan
Return to Showcase

Who is online

Users browsing this forum: No registered users and 3 guests