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.
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.
Cheers
Stefan
SpiderBasic in the Context of SAP Web Application Server
-
- Posts: 46
- Joined: Tue Dec 01, 2015 8:17 am
- Contact:
Re: SpiderBasic in the Context of SAP Web Application Server
That's very promizing ! Good work
-
- Posts: 46
- Joined: Tue Dec 01, 2015 8:17 am
- Contact:
Re: SpiderBasic in the Context of SAP Web Application Server
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.
There are three tiny interesting things:
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
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.
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.
- 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.
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>
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