Client-side DLLs

April 17th, 2007

The Siebel 7 thin-client is marvellous for many reasons, but sometimes it’s necessary to integrate with an old-fashioned, locally installed thick-client application. In Server Script it’s possible to access any DLL by using the eScript SElib.dynamicLink() function, but browser script doesn’t give us the same flexibility.

What we have in the browser is JScript’s ActiveXObject function, which creates an instance of an ActiveX component. For instance, to get the installed version of Microsoft Word, we do:

var wdApp = new ActiveXObject("Word.Application");
alert(wdApp.Version);

No problemo. (Although note that for the function to work, the ActiveX component must be successfully registered).

The big limitation of this function is in the name: it will only talk to OLE Automation (i.e. ActiveX/COM) components. If your client-side object is an old C library then you’ll have no luck. There is a solution, however: open up any installation of Visual Studio (or similar) and whip up a COM wrapper for your old school object. Performance will take a hit, but it saves rewriting applications from scratch.

Siebel’s explanation of ActiveXObject is buried in the upgrade guide – and is missing from some versions of Bookshelf. Find it here. They’ve also got a good technote on creating a COM wrapper, but note that they’re linking the DLL from eScript using COMCreateObject: for browser script use ActiveXObject as above.

Entry Filed under: Scripting, Siebel

3 Comments Add your own

  • 1. Notes On Siebel » S&hellip  |  May 5th, 2008 at 10:18 am

    [...] More detail on using the ActiveXObject is available in the post on Client-side DLLS. [...]

  • 2. Test  |  September 18th, 2008 at 8:12 pm

    Hi stu,
    Was wondering, if we use ActiveXobject in our browser script, then do we need to register the DLL on client machines too?

  • 3. Test2  |  April 15th, 2009 at 11:14 pm

    Hi Test,

    if you are planing to use your own activeXobject on some local PC then you need to register DLL there locally (if needed on each PC..)

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

April 2007
M T W T F S S
« Mar   May »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Most Recent Posts