Question Michael Lundberg · Sep 9, 2024 Write to Windows Eventlog Hello to you! Is it possible to write to Windows Eventlog with Object Script? Tried a bit but having trouble getting it to work. If possible, I would be grateful for a piece of sample code Regards Michael #Health Connect 0 3 0 104
Question Michael Lundberg · Apr 15, 2024 Extract XML from text Hello! I wonder if anyone has a smart idea to extract an XML fragment inside a text document (incoming from a stream)? The XML fragment is surrounded by plain text. Example: text...........text...........<?xml version="1.0" encoding="UTF-8 ?><Start>...etc</Start>text...........text........... The XML is not represented by any class or object in the Namespace. The XML can look different from time to time #ObjectScript #XML #InterSystems IRIS 1 9 0 260
Question Michael Lundberg · Jul 4, 2023 How to remove empty XLM-tags in transformation using EnsLib.EDI.XM? Hello! In a transformation (DTL) I create an XML and pass it to an EnsLib.EDI.XML.Operation.FileOperation. The receiver does not accept an empty tag (eg <Analysis/>) that is created automaticallyif the tag has no values in underlying tags. I have tried with action='remove' in transformationand other things but it only clears the content. #Ensemble #Health Connect 0 6 0 356
Question Michael Lundberg · Feb 24, 2023 Keep %xsd.double "as is" Hello! We have an integration that reads a file from labresults and needs to be transformed into another file format. #InterSystems IRIS 0 0 0 167
Question Michael Lundberg · Aug 15, 2022 SQL insert/update removes spaces Hi! I have a question regarding SQL insert/update from the mananger portal's SQL window. I am trying to do an insert with a value that contains multiple spaces ($32) between two words. This is needed for a comparative reason. But the spaces are automatically trimmed away all the time. How should I write to keep these? Example: Insert into TableA(MyColumn) Values('xxxx yyyy') then the spaces are trimmed away and it becomes: 'xxxx yyyy' But I want to keep the spaces. How do I get around the problem? Regards,Michael #SQL #InterSystems IRIS 0 4 0 229
Question Michael Lundberg · Apr 26, 2022 Save attached file to disk from Email Hello We have a solution with an EnsLib.EMail.InboundAdapter as services that scan a mailbox on incoming mail with attachments. When a new email arrives, the service sends the request (with a property %Net.MailMessage) to the process. In the process, we try to loop through and retrieve part 2 which we assume is the file. set Part = pRequest.Mail.Parts.GetAt (2) We can read out the file name:Set FileName = Part.FileName But how, and is it possible, to save the attached file to disk drive? #InterSystems IRIS 0 4 0 351
Question Michael Lundberg · Mar 15, 2022 Problems to call procedure and return of an outputvar Hello I have trouble capturing the value from a stored procedures output variable from an MS SQL Database. In the database querywindow of MS SQL manager, the procedure is called as:declare @return As varchar (100)Execute TheProcedure @return. @return then contains string of content. From HC I call the procedure: set RetValue = ""set Inparm = "@return"set Outparm = ## class (% ListOfDataTypes).% New () SET SQLQuery = "exec TheProcedure ?"(have also tried"{call TheProcedure (?)}" #InterSystems IRIS 0 3 0 368
Question Michael Lundberg · Sep 1, 2021 Change Content-Type in webservice call Hello! I call a Java-based web service from HC and get an error message back: "ERROR # 6243: HTTP request to SOAP WebService returned response with unexpected CONTENT-TYPE: text / html; charset = utf-8." The content (payload) that is sent from my HC-client is coded in iso-8859-1 but SOAP debug shows that Soap envelope to be sent with: "Output from Web client with SOAP action = urn: submitFile<? xml version = "1.0" encoding = "UTF-8"?> etc " and I guess that's what is causing the error message? #Ensemble 0 5 0 830
Question Michael Lundberg · Mar 23, 2021 Time in queue Hi! I need to know how long time a message has been in a possible queue before our business service starts handling the message. Is it possible to read with objectscript or another way? The business service is an EnsLib.SOAP.Service Grateful for answers Greetings Michael #InterSystems IRIS 0 4 0 393
Question Michael Lundberg · Apr 23, 2020 How to use classparameters? Hello! I'm not really familiar with how and if class parameters can be used during runtime or if it is static. Class %TimeStamp has parameter XMLTIMEZONE [Constraint = "IGNORE, UTC", Flags = ENUM] = "UTC"; I wonder if that parameter can be changed to IGNORE during runtime and in that case how? For the moment I have created my own type that inherits from %TimeStamp in order to change to IGNORE Greetings Michael #Other 0 6 0 304
Question Michael Lundberg · Feb 19, 2019 Give external users access to a CSP-pages Hi!I have a qeustion if it possible to let Ensemble manage user rights from AD-user group?What i want is to let external user have access to certain CPS-pages to read information. But not let them have access to Ensemble it self. And instead to set up individual accounts in Ensemble for each one of them i rather want to have dem in an AD-securitygroup.Is that possible and also limit them only to choosen CSP-pages? #Authentication #Access control #Ensemble 0 6 0 399
Question Michael Lundberg · Feb 20, 2018 How to avoid the process to get stuck in a Queue? Hi!We have problems in some productions where it stuck in a Queue when things goes wrong and i wonder if somebody have som tips to avoid it?example when we got stuck is this: set MyClass= ##class(SomeClass).%New(). MyClass has a Datefield #Ensemble 0 5 0 511
Question Michael Lundberg · Aug 28, 2017 Catch "Skipping previously file " event HiIs there anyway to catch info/warnings into an Ens.Alert when the inbound adapter is skipping previously file (of any reason)?Or any other way to pay attention to it.In our log it usual have Warning or Info level and it stops there. We really want to create some kind of an alert when it happends.All suggestions welcomeSincerly,Michael #Ensemble 0 5 0 665
Question Michael Lundberg · Mar 30, 2017 Programmatically read productdescription from other namespaces Hi!Does anyone know if it is possible to programmatically (COS) read the productdescription from other namespaces? #ObjectScript #Ensemble 0 5 0 381
Question Michael Lundberg · Dec 27, 2016 ODBC refuse to take credentials on the fly from a .NET application Hi! I'm trying to connect to one of our Ensemble servers Cache database from a C#-windows form . I'm running the client from my local computer with OS win7. Using .NET FW ver 4.5.2 in the client. ODBC local setup using "InterSystems ODBC35" In this ODBC konfigurationview i can put my userID and password and try a testconnect (or ping). And that run successful. However, we don't want to leave credentials in the ODBC-configuration it self (open up for anybody to use the source) but instead send it from the klients. #.NET #ODBC #Caché 0 1 0 449
Question Michael Lundberg · Sep 5, 2016 Does Ensemble has support for seal a flatfile with HMAC? HiI do not really have much information yet about an upcoming mission but i know it is about to seal a flatfile and then send it further. I think SHA256 HMAC will be used. There is a fixed sealkey to be used each time. Does anyone know if the Ensemble supports this ? I have looked in the documentation but not really found anything .Regards,Michael Lundberg #Ensemble 0 2 0 321
Question Michael Lundberg · Feb 12, 2016 How to handle large reponses with SOAP.OutboundAdapter Hi, We do have a production including a SOAP.OutboundAdapter that make a request to a .NET WCF Service. The response from that service vary in size. When it come to large one, we talk about maybe 8000 records (with 6-8 attributes per record) in xml, the adapter always give a timout. Even if we put a high number of seconds or set -1. After 1 1/2h still nothing get back. It's just standing there and waiting for ever. Our .NET developer have look at it (on the WCF-service) and from ther point of view they say that it seems like Ensemle can't handle such big responses. #Ensemble #Interoperability #.NET 0 2 0 544