go to post Eduard Lebedyuk · Apr 16, 2019 You have ASYNC calls to MS SQL operation in your Business process, right?Add sync elements immediately after them.
go to post Eduard Lebedyuk · Apr 15, 2019 Serenji connects you directly to the code in your namespaces, resulting in an experience more familiar to existing Studio users. No need to export and import classes and routines.Nice!
go to post Eduard Lebedyuk · Apr 15, 2019 Sure, there's a prebuilt docker container for that: docker run -d -p 52773:52773 --name irispy intersystemscommunity/irispy-community:latest
go to post Eduard Lebedyuk · Apr 15, 2019 Callin is stack-based. You push function arguments to a stack, call function, read result from stack.These two functions are used to push and pop $lb to stack, not to get individual $lb elements.
go to post Eduard Lebedyuk · Apr 15, 2019 Thank you Robert!To be honest I'm hoping someone has C code to share.
go to post Eduard Lebedyuk · Apr 13, 2019 After you sent ASYNC call in BP add sync activity next. Process would wait for ASYNC call to complete before going further.
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.