go to post Eduard Lebedyuk · Jul 23, 2021 Datatype classes are used to define object properties, they allow to: Validate values both generic (for example any defined %Integer property by default checks that it's value is an integer) and based on datatype parameters (for example you can have an %Integer(MINVAL=0, MAXVAL=9) property which in addition to checking that it's value is an integer would check that integer value is between 0 and 9) Provide different representations based on context, specifically: Logical (what's stored in globals) Display (what's shown in object) XSD (for XML export/import) ODBC (returned in SQL) Provide generators for utility methods. Article on some examples. Docs.
go to post Eduard Lebedyuk · Jul 22, 2021 Here's an example: Class User.Assert Extends Ens.BusinessProcess [ ClassType = persistent, Language = objectscript ] { Method OnRequest(pRequest As Ens.Request, Output pResponse As Ens.Response) As %Status { Set pResponse = ##class(Ens.Response).%New() $$$LOGINFO("$$$ASSERT(1)") $$$ASSERT(1) // skipped $$$LOGINFO("$$$LOGASSERT(1)") $$$LOGASSERT(1) $$$LOGINFO("$$$ASSERT(0)") $$$ASSERT(0) $$$LOGINFO("$$$LOGASSERT(0)") $$$LOGASSERT(0) Quit $$$OK } }
go to post Eduard Lebedyuk · Jul 22, 2021 This looks more like a WRC issue, but I'd wager a guess that the first and second query use different indices. To be more specific the second query does not use some index due to the need to traverse all RPE.Veterinario rows due to the vet.numConselho > 0 condition. To solve this issue try to rebuild all indices for these 3 tables.
go to post Eduard Lebedyuk · Jul 22, 2021 It's a special type of event which is only written to the database if the assert is false. It accepts one argument which must evaluate into 0 or 1. Check the docs for more info.
go to post Eduard Lebedyuk · Jul 17, 2021 Add: set request.FollowRedirect = $$$YES before sending a GET request.
go to post Eduard Lebedyuk · Jul 17, 2021 There are two ways to do that: 1. Mappings. Map classes and globals into the namespace you're querying from. This would work if there's no global/class collisions of course. 2. Custom queries. Here's an article on the topic. And here's an example. 3. Just set $namespace before running your query. Works only if you need to query one other namespace at a time. Example.
go to post Eduard Lebedyuk · Jul 15, 2021 Sure, just mount C:\InterSystems\IRISHealth\mgr\samples\ folder as a docker volume. After that add a new Database from inside the container pointing to the mounted folder.
go to post Eduard Lebedyuk · Jul 14, 2021 Article idea: InterSystems IRIS CUDA image There's a way to use GPUs/CUDA from inside the container. Describe how to build an InterSystems IRIS image with CUDA support.
go to post Eduard Lebedyuk · Jul 14, 2021 Do you want to store one table on several servers? In that case use Sharding.
go to post Eduard Lebedyuk · Jul 13, 2021 All arguments are passed automatically: And the routine: Results in:
go to post Eduard Lebedyuk · Jul 13, 2021 Well, in that case: ClassMethod ToNato(t) [ CodeMode = call ] { ^S } And write everything in the S routine.
go to post Eduard Lebedyuk · Jul 12, 2021 It's a nice $zwunpack unicode trick, Nigel: It's basically the same bytes but grouped into a larger unicode symbols.
go to post Eduard Lebedyuk · Jul 12, 2021 Article idea: Building IRIS images with Docker Build Mounts From the docs on Docker Build Mounts: RUN --mount allows you to create mounts that process running as part of the build can access. This can be used to bind files from other part of the build without copying, accessing build secrets or ssh-agent sockets, or creating cache locations to speed up your build. This is a recent Docker feature allowing users to build compact images (since we no longer need to COPY everything inside). Try it out and write an article about it?
go to post Eduard Lebedyuk · Jul 12, 2021 Check this example for required JARs. Specifically this line.
go to post Eduard Lebedyuk · Jul 12, 2021 Sure, use INSERT with SELECT query. Where SELECT query is against your SQL gateway (via linked tables probably).
go to post Eduard Lebedyuk · Jul 11, 2021 Have you tried to declare C# property like this: public Dictionary<string, string> VarsXctsTU { get; set; }
go to post Eduard Lebedyuk · Jul 10, 2021 Please consider adding samples illustrating your issue: ObjectScript class C# class C# code you're using do deserialize your JSON JSON