go to post Eduard Lebedyuk · Jul 6, 2020 It might sufficient to put your code just into a CODE Block of a BP generated with the wizard. If you need to execute raw ObjectScript from BPL add assign activity and set status variable to the value of your classmethod. No need to add a code block. Still, BP without BPL are quite easy to implement, here's the guide.
go to post Eduard Lebedyuk · Jul 6, 2020 BP class object is your context. Just add a property to hold your data.
go to post Eduard Lebedyuk · Jul 2, 2020 Here's a Docker Hub image (not official, not certified) with multiple architectures. Here's info on publishing multi-arch images. Some more info. manifest command was successfully merged into docker codebase so it seems possible now.
go to post Eduard Lebedyuk · Jul 2, 2020 What's your file I/O default? zn "%SYS" do ^NLS Choose 4) Display loaded settings Choose 3) Display system defaults for I/O tables Here's what I got: -------------- System defaults for I/O tables -------------- Table Name ----------------- --------------- Process RAW Cache Terminal UTF8 Other terminal UTF8 File UTF8 Magtape UTF8 TCP/IP RAW System call RAW Printer CP1251
go to post Eduard Lebedyuk · Jul 2, 2020 Shut down InterSystems IRIS on Machine 1. Copy IRIS.DAT from Machine 1 to Machine 2 Mount IRIS.DAT to InterSystems IRIS on Machine 2.
go to post Eduard Lebedyuk · Jul 2, 2020 Great news about ARM support. As tagged image can be provided with several architectures (example with 4) is there a reason why we separate the tags into community and community-arm?
go to post Eduard Lebedyuk · Jun 29, 2020 Get property parameter by global access: /// Get property param /// w ##class().GetPropertyParam("Form.Test.Simple", "Name", "MAXLEN") ClassMethod GetPropertyParam(class As %Dictionary.CacheClassname = "", property As %String = "", param As %String = "") As %String [ CodeMode = expression ] { $$$comMemberArrayGet(class, $$$cCLASSproperty, property, $$$cPROPparameter, param) }
go to post Eduard Lebedyuk · Jun 29, 2020 You can send the request directly from a service to operation. Your BP must implement the following methods to work: OnRequest OnResponse As both methods are missing from your BP it does not work.
go to post Eduard Lebedyuk · Jun 28, 2020 Not sure about ObjectScript terminal but PythonGateway includes Python shell with multiline support:
go to post Eduard Lebedyuk · Jun 28, 2020 If it's a File Stream you can set TranslateTable property to your charset before reading. Otherwise you can use $zcvt function to convert strings. Here's an example of iterating encodings for $zcvt to determine a correct encoding. If you are interested in encoding internals use zzdump to check hexdumps. If your encoding is region specific don't forget to set your locale.
go to post Eduard Lebedyuk · Jun 28, 2020 Persistent classes: SELECT Name FROM %Dictionary.ClassDefinition_SubclassOf('%Persistent') List properties and relationships (if you need subset - filter by parent - it's a class): SELECT parent, Name, Cardinality, Collection, Id, _Identity, Relationship, Type FROM %Dictionary.CompiledProperty Foreign keys: SELECT parent, Name, Properties, ReferencedClass, ReferencedKey FROM %Dictionary.ForeignKeyDefinition For everything %Dictionary.Compiled* - includes defined and inherited values, Definitions include only items defined in a current class.
go to post Eduard Lebedyuk · Jun 27, 2020 Work with %SYS.Task objects. Here's an example of creating a task but you can open an existing task too and modify it.
go to post Eduard Lebedyuk · Jun 26, 2020 You need to remove these lines from Login method. Copy paste Login method into your broker from %CSP.REST. Remove the line. Compile.
go to post Eduard Lebedyuk · Jun 26, 2020 Redefine Login method in you broker and remove: #; We want Basic authentication Do %response.SetHeader("WWW-Authenticate","Basic")
go to post Eduard Lebedyuk · Jun 26, 2020 Curenlty active setting value (so System Default Setting in your case) should be returned. I was unable to reproduce the issue on Cache for Windows (x86-64) 2016.1.4 (Build 104_6U) Wed May 22 2019 12:23:59 EDT. Have you updated your production? Check that your production definition does not contain old settings.
go to post Eduard Lebedyuk · Jun 25, 2020 You can replace s Args = aKey + 1 s Args(Args) = Item with: s Args($i(Args)) = Item