ActiveX component Integration

Hello,

I'm testing the OS platform (I'm new to the OS platform, I have been using Service Studio 5.0 for tests, but still missing the usage of Integration Studio 5.0) and I need some tips on what is the best way to use an existing ActiveX component for photo capture (using webcam) in several webscreens.

Could you give me some pointers on this ?

Thanks in advance

Ana

Hi Ana,

To include an ActiveX component on a web screen you'll need to include the OCX file as a resource in your eSpace and then use an Expression widget with the object HTML code (e.g. something like "<object classid=""clsid:ASAATC65-8C52-11D3-ABFF-0040055DE809"" codebase=""/YourEspace/yourcontrol.ocx"" ... it depends on the control) and set the Escape Content property of that widget to No.

Remember that you'll also need to escape double-quotes "" or alternatively use single quotes '.

Cheers,
Tiago Simões

Tiago Hi,

Can you elaborate more on your answer. I'm using the Outsystems 8.0.1 and I need to use an ActiveX control for scanning purposes. I need to add this to the page:

// In VintaSoft example:
  <OBJECT ID="VSTwain1" WIDTH=1 HEIGHT=1
          CLASSID="CLSID:1169E0CD-9E76-11D7-B1D8-FB63945DE96D"
          CODEBASE="">
  </OBJECT>

  // In your code:
  <OBJECT ID="VSTwain1" WIDTH=1 HEIGHT=1
          CLASSID="CLSID:1169E0CD-9E76-11D7-B1D8-FB63945DE96D"
          CODEBASE="https://www.your-server.com/.../VSTwain.cab#version=5,2,9,3">
  </OBJECT>

How can I accomplish this on the version 8.0.1 ?

The steps described below I need to replicate them on Outsystems.

What should I do for adding the ActiveX to my web project?

You should perform the following actions:

  • Upload VSTwain.dll file onto your web server.
  • Change the code base of OBJECT object in your HTML code:
  // In VintaSoft example:
  <OBJECT ID="VSTwain1" WIDTH=1 HEIGHT=1
          CLASSID="CLSID:1169E0CD-9E76-11D7-B1D8-FB63945DE96D"
          CODEBASE="">
  </OBJECT>

  // In your code:
  <OBJECT ID="VSTwain1" WIDTH=1 HEIGHT=1
          CLASSID="CLSID:1169E0CD-9E76-11D7-B1D8-FB63945DE96D"
          CODEBASE="https://www.your-server.com/.../VSTwain.cab#version=5,2,9,3">
  </OBJECT>

In this case you won't need to install ActiveX on all client computers. When the user opens your web page the ActiveX will be installed automatically.

VSTwain.cab file can be found in "Bin" directory of the setup package.


Your help is highly appreciated.

Alexei
Hi Alixei,

You can add the cab file as a resource to your espace (with deploy action Deploy to Target Directory) and use an expression widget with the Escape Content property set to false. You'll also need to double the double quotes.

Cheers,
Tiago Simões

Hi All, now I'm also integrating the ActiveX into Outsystem web reactive. I have a few question. Please help me on it.

1) How could we get the "ClassId"?

2)For configuration CODEBASE I already installed SmartSource driver. I tried to find "VSTwain.cab" file in "Bin" as Alexei mention above but I still can't see that file. Could anyone can let me know how I can get that file? 

Tiago Simões wrote:

Hi Ana,

To include an ActiveX component on a web screen you'll need to include the OCX file as a resource in your eSpace and then use an Expression widget with the object HTML code (e.g. something like "<object classid=""clsid:ASAATC65-8C52-11D3-ABFF-0040055DE809"" codebase=""/YourEspace/yourcontrol.ocx"" ... it depends on the control) and set the Escape Content property of that widget to No.

Remember that you'll also need to escape double-quotes "" or alternatively use single quotes '.

Cheers,
Tiago Simões

Hi Tiago,

Could you let me know how to get OCX file?


Hi all,

Seriously we are still using ActiveX?

Microsoft developed this technology and released it in 1996.  It was useful for running programs that can be executed from a user's web browser.  Once downloaded, Active X Components are given full control of any part of a user's machine.  This you might imagine caused a security disaster as anything could be called an Active X Control and contain malicious code, a virus, etc.

Regards,

Daniel

Hi Daniel, 


Thanks for your input. I'm working together with Hien We'll look into the security risks of ActiveX Control so we can best pursue this matter with our customer. Unfortunately, given the proprietary nature of the integration this was the approach suggested by their local smart scanner distributors (the scanner device is one of these https://banksystemsmarketing.com/product-category/burroughs-elite-scanners/

Under the integration APIs demonstrated so far, we were presented a JavaScript API besides the mentioned ActiveX Control, but unfortunately it is not yet supported or under general availability. We keep looking for other alternatives and appreciate any insights on this matter: for this application, end-users will require their scanners to be connected to the OutSystems web application in order to scan their images directly into the app. 

Thank you!