go to post Enrico Parisi · Sep 22, 2024 Can you provide more details? It seems you are using an FTP Outbound adapter, but EnsLib.FTP.OutboundAdapter does not have a property/setting called "Filename". General answer would be: set the Filename property in you Business Operation code, there you can set it to whatever value you need.
go to post Enrico Parisi · Sep 20, 2024 Where are you seeing "DTL response = <ID scope='Message'>3</ID>"? What you see is the "representation", the "export" of your XML enabled class rendered by...whatever you are using to view/display it, the quotes are not part of the content. How are you using/consuming your target (DTL response)? Some XML (SOAP? REST?) message? If so, I believe that you won't find single quotes when you will use it. This is just guessing, because you don't provide any context/detail.
go to post Enrico Parisi · Sep 18, 2024 Hi John, for JSON the correct property parameter is %JSONFIELDNAME, documented here. Adding %JSONFIELDNAME = "TheName" to the Name property in my sample above, the JSON result is: {"Slide":[{"TheName":"Name1"},{"TheName":"Name2"},{"TheName":"Name3"}]}
go to post Enrico Parisi · Sep 18, 2024 Following your enthusiasm I implemented a little test 😁 Class Community.Array.Base Extends (%RegisteredObject, %XML.Adaptor, %JSON.Adaptor) { Property Slide As list Of Community.Array.Slide(XMLPROJECTION = "ELEMENT"); ClassMethod test() { Set Base=##class(Community.Array.Base).%New() For i=1:1:3 { Set Slide=##class(Community.Array.Slide).%New() Set Slide.Name="Name"_i Do Base.Slide.Insert(Slide) } Do Base.XMLExport(,",indent") Write !,"JSON: ",! Do Base.%JSONExport() } } Class Community.Array.Slide Extends (%RegisteredObject, %XML.Adaptor, %JSON.Adaptor) { Property Name As %String; } The output is: USER>Do ##class(Community.Array.Base).test() <Base> <Slide> <Name>Name1</Name> </Slide> <Slide> <Name>Name2</Name> </Slide> <Slide> <Name>Name3</Name> </Slide> </Base> JSON: {"Slide":[{"Name":"Name1"},{"Name":"Name2"},{"Name":"Name3"}]} Is this what you need?
go to post Enrico Parisi · Sep 17, 2024 We are not InterSystems support team, we are a Developer Community. 😊 You can download it from WRC (Worldwide Response Center) portal, the official InterSystems Support. If your system is under support/maintenance you should have access to it. If you your system is not covered by support/maintenance, you are not entitled to updates. For testing purpose you may use/download IRIS Community Edition.
go to post Enrico Parisi · Sep 17, 2024 I've never done it but it should work, the correct syntax is MSH:4, not MSH-4.
go to post Enrico Parisi · Sep 17, 2024 Instead of using array use list, possibly with XMLPROJECTION = "ELEMENT", something like: Property Slide As list Of Q.Interface.Fragment.IMS.Slide(XMLPROJECTION = "ELEMENT"); This way you get what you need.
go to post Enrico Parisi · Sep 16, 2024 Many ways to do it, my way: USER>Set input=25 USER>Set ln=10 USER>Set $Piece(Pad,"0",ln-$Length(input))="0" USER>Set Padded=Pad_input USER>Write Pad="00000000" Padded="0000000025" input=25 ln=10
go to post Enrico Parisi · Sep 12, 2024 Ciao Pietro, exactly for that scenario IRIS provides the Work Queue Manager, I suggest you to start with the documentation: Introduction to the Work Queue Manager (and following chapters) Then if you have doubts, come back with more specific questions.
go to post Enrico Parisi · Sep 4, 2024 I'm trying to convert date - 2023-09-28T20:35:41Z to BST/GMT format. Please note that BST and GMT are not "format" and (may) have different values.From your answer to @Robert Cemper it seems you need to covert to BST value (not GMT) and to "yyyymmddhhmmss" format. To answer your question, is BST your system local timezone?
go to post Enrico Parisi · Aug 28, 2024 If you don't like the default behavior, change it. 😊 You can change it system wide from Management Portal, System Administration -> Security -> System Security -> System-wide Security ParametersThere you can change "Inactive limit" to 0 (zero), this way accounts never expire. You can also change it for any individual user accounts in Management Portal, System Administration -> Security -> Users -> (select the user)There you can enable the checkbox "Account Never Expires".
go to post Enrico Parisi · Aug 28, 2024 Instead of the $SYSTEM "shortcut", use the actual full syntax: JOB ##class(%SYSTEM.OBJ).Export("RICHS.int","c:\AAA\richh.rtn")
go to post Enrico Parisi · Aug 27, 2024 HS.FHIR.DTL.vR4.Model.Resource.Encounter is a %RegisteredObject, it cannot be used as interoperability request/response. An interoperability response/request MUST be a persistent class.
go to post Enrico Parisi · Aug 27, 2024 To loop/list all files within a directory, possibly with wildcard filter, you can use the FileSet class query in %Library.File class, see documentation on Query Directories and Drives, List the Contents of a Directory.
go to post Enrico Parisi · Aug 26, 2024 You have a superclass with some logging method. Now every time the logging method is called from a child class it logs the name of the superclass instead of the Child class? No If so the issue is that $CLASSNAME returns the name of the class where the method is located not where a method is called from. Wrong, it returns the class name where it is called from. Your first sample method works just fine, no need for method generator. I suggest you to make a quick test.
go to post Enrico Parisi · Aug 23, 2024 Why modify the code when you can modify the SQL Gateway definition to point to the production system? This way the code is the same (dev/prod) but only the configuration change. In your example "xxxxx" is the SQL Gateway name, change in management portal to point to the required environment.
go to post Enrico Parisi · Aug 23, 2024 I don't understand what you refer with "the name of the item which created it", can you provide an example of what you expect as result? $CLASSNAME($THIS) returns the actual class name of $this instance, not a superclass or the class where is executed (possibly a superclass).
go to post Enrico Parisi · Aug 23, 2024 You can use the ImportFromString() method in EnsLib.HL7.Message class: Set HL7Message=##class(EnsLib.HL7.Message).ImportFromString(StringHL7,.Status)
go to post Enrico Parisi · Aug 21, 2024 With "pre-compiled parameter" you mean a class parameter? Of what class? You may user the $paramater function: $parameter(classname,parametername)