Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Replace ActiveX in ZEN interfaces running in Chrome and Edge?

Question
Peter Kopp · Sep 4, 2020

Replace ActiveX in ZEN interfaces running in Chrome and Edge?

Does anybody have a solution for replacing ActiveX in ZEN interfaces running in Chrome and Edge?

I am not able to modify security settings in either browser, hence looking for a replacement for those controls.

 

Sample1:

                                var loc = new ActiveXObject("WbemScripting.SWbemLocator");
                                var objWMIService = loc.ConnectServer(".", "root\\cimv2");
                                var colItems = objWMIService.ExecQuery("Select * From Win32_Printer Where Default = TRUE", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly);

 

Sample2:

                                var loc = new ActiveXObject("WbemScripting.SWbemLocator");
                                var svc = loc.ConnectServer(".", "root\\cimv2");
                                coll = svc.ExecQuery("Select * from Win32_ComputerSystem");
                                var items=new Enumerator(coll);
                                var tUNC=(items.item().DNSHostName)+'.'+(items.item().Domain)

                                col2 = svc.ExecQuery("Select * from Win32_LogicalDisk where Name='U:' and DriveType=4");

Thank you for all input.

#HTML #ZEN #Ensemble

Source URL:https://community.intersystems.com/post/replace-activex-zen-interfaces-running-chrome-and-edge