ActiveX component (EmiratesID) fails to initialize

ActiveX component (EmiratesID) fails to initialize

  
Hi,

https://sathishv10.outsystemscloud.com/IDCard/

I'm trying to read Data from National ID card (EmiratesID) via ActiveX EIDA_ZF_ActiveX.CAB in New Person Detail web screen
(https://sathishv10.outsystemscloud.com/IDCard/PersonDetailDetail.aspx?PersonDetailId=0)

Used Object in the web screen
"<OBJECT id=""EIDAWebComponent"" style=""border:solid 1px gray""
    CLASSID=""CLSID:A4B3BB86-4A99-3BAE-B211-DB93E8BA008B""
    codebase=""/cab/EIDA_ZF_ActiveX.CAB""
    width=""130"" height=""154""></OBJECT>"

included js/eida_webcomponents.js
While initializing the component -
Initialize() in RunJavaScript action, component is not getting initialized.
Could any one can guide me please.
Attached js error screen shot and sample oml file.

 
Thanks
 
Regards
Sathish
sample oml file
Hi,

First of all, the topic does not provide a meaningful description. so we don't know what the question is
something like "ActiveX component (emeriatesID) fails to initialize"


well, there error suggests you are doing something with xml.
and you are missing a root-element basically.

so you probably have something like
<bar>
   inner stuff
</bar>
<bar>
   inner stuff of another element
</bar>
instead of
<foo>
<bar>
   inner stuff
</bar>
<bar>
   inner stuff of another element
</bar>
</foo>
Hi,

Yes but the cause of the issue is, the component must be initialized from the ActiveX.

EIDAWebComponent = document.getElementById(EIDAWebComponentName);
var Ret = EIDAWebComponent.Initialize();



My question is, why Initialize() method is not supported since i have included the PublicDataActiveX.dll in Resources with Deploy Action "Deploy to Target Directory"

Any mistake in including ActiveX component.

Kindly test the attached IDCard.oml (latest attachment)

Thanks

Regards
Sathish
erm,

if you want to initialize activex via javascript, you need to approach it differently.
var yourObj = new ActiveXObject(....);
yourObj.Initialize();
(see https://msdn.microsoft.com/library/7sw4ddf8(v=vs.94).aspx)

but I strongly recommend to read the documentation of the componenty itself






Dear Sathish,

I am facing the same issue now, could you help me in case you get a solution?

Sathish wrote:
Hi,

Yes but the cause of the issue is, the component must be initialized from the ActiveX.

EIDAWebComponent = document.getElementById(EIDAWebComponentName);
var Ret = EIDAWebComponent.Initialize();



My question is, why Initialize() method is not supported since i have included the PublicDataActiveX.dll in Resources with Deploy Action "Deploy to Target Directory"

Any mistake in including ActiveX component.

Kindly test the attached IDCard.oml (latest attachment)

Thanks

Regards
Sathish
 
 
hi,

Check the following are included in your application...
1) Install EIDA_SDK setup in the client machine
2) Include eida_webcomponents.js to Data\Resources
3) Add Javascript tag to include the js file in the preparation

Regards
Sathish
It is working on asp.net pages, but does not work on mvc in razor page, it is give cannot initialize,

do you have a solution?

please attach oml file..