cancel
Showing results for 
Search instead for 
Did you mean: 

Can you use third party .dlls with SAPUI5?

0 Kudos

I am redesigning a Reman service, which currently exists as a thick client application that receives SAP Optimization Jobs (from SAP), calculates the best way to optimize product use (custom code Optimizer, WILL REPLACE WITH third party .dll) and display the best optimization on the client (custom app). They can either edit or submit the optimization back to SAP

I am trying to create a SAPUI5 application that either: Reaches out to an external web server to run a small application (Optimizer) and returns the data back to the UI5 application, or, Load the third party dll into SAP UI5 and call the Optimizer (.dll) that way.

Is this possible? Can you use third party dlls in UI5?

Accepted Solutions (0)

Answers (2)

Answers (2)

daniel_ruiz2
Active Contributor
0 Kudos

hi Tiffany,

yup, you can - but there are some "restrictions" when you do so:

- you need to regsvr the dll into the client computer, which needs of course to be running windows for such;

- they need to be using IE (11 for instance) to browse the application;

- you need to code JScript (not javascript but jscript) - you can use ANY windows dlls and code very much like you would code ASP 3.0, you can do a CreateObject, etc.. vbscript sort of syntax;

- as long you have scope your "javascript" can call "jscript" functions, so there's no difference on how you would code UI5; (you still can use requirejs, etc)

as an alternative, you could run an IIS and have your DLL as a COM+ object and perhaps expose a REST service (or even OData) using .NET (using WCF) - this is probably a way more "clean" than binding the client usage to IE only, but you need an IIS in particular.

Hope it helps,

Dan.

ChrisSolomon
Active Contributor
0 Kudos

What year is this? haha

daniel_ruiz2
Active Contributor
0 Kudos

This message was moderated.

SergioG_TX
Active Contributor
0 Kudos

you cannot load / use any dlls in sapui5. you can, however, consume external web services by calling them via AJAX. would this suffice your requirement?

daniel_ruiz2
Active Contributor
0 Kudos

This message was moderated.