go to post Eduard Lebedyuk · Apr 12, 2019 Not sure about iKnow, but check the article Converting documents with Caché and LibreOffice.
go to post Eduard Lebedyuk · Apr 12, 2019 4.4-4.6 Images do not load.Consider using "Highlight ObjectScript" button to highlight code
go to post Eduard Lebedyuk · Apr 12, 2019 Some articlesAPM - Finding the expensive parts of your application Profiling code using Caché MonitorVisualizing the data jungle -- Part III. Excursion to heat maps based on %SYS.MONLBL
go to post Eduard Lebedyuk · Apr 11, 2019 Here's one idea (no idea if it would work though):Extract query into a new csp page.Make it auto-refresh with META TAGSEmbed it into a root page using INCLUDE.Long-term I recommend using REST API for that.
go to post Eduard Lebedyuk · Apr 11, 2019 Please provide a minimal example if possible.request and response objects should be available anywhere in the process job.
go to post Eduard Lebedyuk · Apr 10, 2019 What do you mean by "After that you need to create an instance of this class and add it to HeaderOut property of your WS client."I mean you create an object from the class using %New method.What is HeadersOut and where do I set it?HeadersOut is a property of your WebClient object.
go to post Eduard Lebedyuk · Apr 10, 2019 Your error looks like it's cause because there's no HeaderOut property defined in current class.Anyway, you need to create a custom class which would be your header: Class custom.Header Extends %SOAP.Header { Parameter XMLFORMAT = "literal"; Parameter XMLIGNORENULL = "RUNTIME"; Parameter NAMESPACE = "urn:epic-com.2013.Interconnect.Headers"; /// The XMLPREFIX parameter controls the prefix to be used for the XML namespace that /// is given by the NAMESPACE parameter. ///Parameter XMLPREFIX As STRING = ""; Parameter XMLTYPE = "Epic-Client-ID"; Property Value As %String(XMLPROJECTION = "CONTENT", MAXLEN = 36) [ InitialExpression = "12349fe5-2ff8-4b79-b723-e69efbabcdef" ]; } After that you need to create an instance of this class and add it to HeaderOut property of your WS client.
go to post Eduard Lebedyuk · Apr 10, 2019 That's because first code generation is run during Test.String compilation, which does not have Test method.Add something like this at the beginning: #; don't generate any code if it not for a property quit:%mode="method" $$$OK
go to post Eduard Lebedyuk · Apr 10, 2019 Thank you!NoContext helped. What does it mean?This works too btw: d %code.WriteLine(" q ..Test()")
go to post Eduard Lebedyuk · Apr 10, 2019 Can you share the code please?Changed .. to z and compilation fails for me.
go to post Eduard Lebedyuk · Apr 9, 2019 Use methods from Ens.DataType.UTC class to convert UTC time to local timezone.
go to post Eduard Lebedyuk · Apr 9, 2019 Okay, how do I make this work with methods?On property get/set I need to call instance method.I've tried this: Class Test.String Extends %String { Method Get() As %String [ CodeMode = objectgenerator ] { do %code.WriteLine($c(9) _ "Quit ..Test()") quit $$$OK } } And class: /// set obj = ##class(Test.Obj).%New() /// w obj.prop Class Test.Obj Extends %RegisteredObject { Property prop As Test.String; Method Test() { quit $random(100) } } But it fails to compile.
go to post Eduard Lebedyuk · Apr 9, 2019 Yeah, apparently only DeepSee and Ens packages/globals can be mapped successfully.Tried random package and it didn't show up even after mapping to %ALL.
go to post Eduard Lebedyuk · Apr 9, 2019 I created these mappings (no restarts):Ens* global mapping for ENSLIB -> USERDeepSee* global mapping for ENSLIB -> %ALLEns* package mapping for ENSLIB -> USERHere's the result:
go to post Eduard Lebedyuk · Apr 9, 2019 Turns out it's much easier than I thought: Class Test.String Extends %String { ClassMethod Get() As %String [ CodeMode = objectgenerator ] { do %code.WriteLine($c(9) _ "Quit $g(^Test.String, 0)") quit $$$OK } ClassMethod Set(%val As %String) As %String [ CodeMode = objectgenerator ] { do %code.WriteLine($c(9) _ "Set ^Test.String = %val") quit $$$OK } } Example: set obj = ##class(Test.Obj).%New() write obj.prop >0 set obj.prop=1 write obj.prop >1
go to post Eduard Lebedyuk · Apr 9, 2019 I downloaded IRIS Community edition (store/intersystems/iris:2019.1.0.510.0-community) and was able to create package and global mappings without any issues.
go to post Eduard Lebedyuk · Apr 9, 2019 Do you want it for debugging or logging purposes?If for debugging, here's a series of articles Debugging Web (part 1, part 2) dealing with REST Debugging.Atelier can be used to debug REST.
go to post Eduard Lebedyuk · Apr 9, 2019 Is it one node or known nodes which can contain characters for escaping?If so custom datatype may be a better solution.