go to post Eduard Lebedyuk · May 29, 2017 If you store data in globals, you can run parallel jobs on your data.On a single job however, locals are faster because there's no journaling and disk writes.
go to post Eduard Lebedyuk · May 26, 2017 %OnAddToSaveSet() can get called many times during modification or saving of our target object and all objects related to it. Therefore it's better to move code we need to execute once to triggers or initialexpression or sqlcomputed.
go to post Eduard Lebedyuk · May 26, 2017 Please note that It's not recommended to use %OnAddToSaveSet(), especially performing heavy operations there.
go to post Eduard Lebedyuk · May 24, 2017 Like this: set p = ##class(%SYS.ProcessQuery).%OpenId($job) set p.UserInfo = "My Text" kill p
go to post Eduard Lebedyuk · May 19, 2017 In your %XML.Reader set IgnoreSAXWarnings to 1. In your XML enabled classes set params: Parameter XMLIGNOREINVALIDTAG As BOOLEAN = 1; Parameter XMLIGNOREINVALIDATTRIBUTE As BOOLEAN = 1; This would allow for errors to be skipped, but they wouldn't be reported either. I'm not sure if the behavior you want is possible without some modifications.
go to post Eduard Lebedyuk · May 18, 2017 Here's a few thoughts:Get list of pivotsFor eachGet MDXTry to execute MDXIf it fails, record the errorAggregate/display errorsShould be doable. DeepSee API has all the required functions.
go to post Eduard Lebedyuk · May 17, 2017 GuruBaseAllah.BLZServiceSOAP11porthttp class already exists.
go to post Eduard Lebedyuk · May 16, 2017 Check UserAction method of %Studio.Extension.Base class. You can call CSP pages from there.
go to post Eduard Lebedyuk · May 14, 2017 Write statement does what it's name implies - outputs characters into a current device. It's a way to go if you're working from a terminal, but ZEN does it's own device management, so writing into a current device interferes with ZEN also writing into current device, which causes an error. To make it work check if there's no data (SQLCODE=100) and set OutVal to empty (or error message) and work with that on a client.
go to post Eduard Lebedyuk · May 13, 2017 HttpResponse property contains response. Here's a sample: Set req = ##class(%Net.HttpRequest).%New() // build the request Do req.Post("url") Set str = req.HttpResponse.Data.Read() Write str