go to post Eduard Lebedyuk · Jun 14, 2018 Everything seems fine.I'd recommend checking with HTTP Debugging proxy what request actually gets sent. Article on that.tl;dr plan:Install Charles proxy (or Fiddler).Start it.Redirect your BO traffic to the proxy port.Check what is actually sent.Alternatively if you can run the BO locally you can modify the outbound adapter to send the request with Test=1 value and check what's sent.
go to post Eduard Lebedyuk · Jun 12, 2018 My advice is not to write your own code, but to use this guide. You don't need to parse CSV manually.
go to post Eduard Lebedyuk · Jun 12, 2018 My bad, I've done the UnCompile but forgot to remove already generated methods.
go to post Eduard Lebedyuk · Jun 12, 2018 Unrelated but it's better to return a status from a generator method: ClassMethod GenerateMethods() As %Status [ CodeMode = objectgenerator ] { For i=1:1:%class.Methods.Count() { #dim method As %Dictionary.MethodDefinition = %class.Methods.GetAt(i) Continue:((method.Description["@AutoGenerated") || (method.CodeMode="objectgenerator")) Do %class.Methods.Insert(##class(util.TestGenerator).Generate(method.Name_"DoSomethingElse",%class.Name)) } Quit %class.%Save() }
go to post Eduard Lebedyuk · Jun 12, 2018 What flags are you compiling with? For me it works on a first compilation: USER>do $system.OBJ.UnCompile("util.*") Uncompiling class util.Test Uncompiling class util.TestGenerator USER>do ##class(util.Test).TestOneDoSomethingElse() DO ##CLASS(util.Test).TestOneDoSomethingElse() ^ <CLASS DOES NOT EXIST> *util.Test USER>do ##class(util.TestGenerator).Generate() DO ##CLASS(util.TestGenerator).Generate() ^ <CLASS DOES NOT EXIST> *util.TestGenerator USER>do $system.OBJ.Compile("util.*") Compilation started on 06/12/2018 20:13:00 with qualifiers '' Compiling 2 classes, using 2 worker jobs Compiling class util.TestGenerator Compiling routine util.TestGenerator.1 Compiling class util.Test Compiling routine util.Test.1 Compilation finished successfully in 0.012s. USER>do ##class(util.Test).TestOneDoSomethingElse() util.Test||TestOneDoSomethingElse As you see from the log both classes don't exist, but after one compilation I can call TestOneDoSomethingElse method and it works. What's your output for: do $system.OBJ.UnCompile("util.*") do ##class(util.Test).TestOneDoSomethingElse() do ##class(util.TestGenerator).Generate() do $system.OBJ.Compile("util.*") do ##class(util.Test).TestOneDoSomethingElse()
go to post Eduard Lebedyuk · Jun 12, 2018 I tried method generators, but It only gets compiled when I compile for the second time.Please show a sample. Compiling a class with method generators should work on a first compilation.
go to post Eduard Lebedyuk · Jun 11, 2018 What's the purpose of a normal index over a text field? I assume user searches by a substring. There are two and a half ways to perform a fulltext search:Define a property of %Text type and use language class. New language classes an be added fairly easily. Documentation. Removed in InterSystems IRIS and therefore not recommended.Use iFind indices. They are highly customisable.Use iFind indices creatively. You can build your own indices based on iFind indices and you can write your own tokenizers, etc. Also it's possible to define your own custom index. Community article on that.
go to post Eduard Lebedyuk · Jun 9, 2018 Yes. I set use locale defaults to true and rebuilt the cube. After that Analyzer started showing localized date values.
go to post Eduard Lebedyuk · Jun 9, 2018 What do you mean? How does it look in config file?In the best case like this: { "storage-driver": "devicemapper", "storage-opts": [ "dm.directlvm_device=/dev/xdf", "dm.thinp_percent=95", "dm.thinp_metapercent=1", "dm.thinp_autoextend_threshold=80", "dm.thinp_autoextend_percent=20", "dm.directlvm_device_force=false" ] } Docker documentation explains setting direct-lvm in detail.
go to post Eduard Lebedyuk · Jun 9, 2018 There are system implementations too: >write $$toRoman^%bi.SWr.FolderTest(124) CXXIV >write $$toRoman^%bi.SWr.FolderTest(1245) MCCXLV
go to post Eduard Lebedyuk · Jun 9, 2018 If you're sure that all your keys are consecutive integers, then use $order to get the last element, which would also be a count of them: write $order(a(""),-1)
go to post Eduard Lebedyuk · Jun 7, 2018 I'd start with setting the credentials in connection configuration. Should be enough.
go to post Eduard Lebedyuk · Jun 7, 2018 If you want to connect to external database, couldn't you just provide domain name and password and authenticate with that?
go to post Eduard Lebedyuk · Jun 7, 2018 KILLdes is a record for kill of descendents journaled as part of a higher-level kill inside of transaction.So it's a Kill command.
go to post Eduard Lebedyuk · Jun 7, 2018 %DeepSee.Utils:%FormatDate offers this optionsFormat a date value (in $H format) according to the format in pFormat. The format string can contain:"y" - Year number (4 digits)."q" - Quarter number."m" - Month number, with no leading zero."mm" - Month number, with leading zero."mmm" - Short name of month (using server locale)."mmmm" - Long name of month (using server locale)."d" - Day number, with no leading zero."dd" - Day number, with leading zero."ddd" - Short name of day (using server locale)."dddd" - Long name of day (using server locale)."\x" - display character "x"" " - space"/" - "/""-" - "-""." - "."Added mm as Time Format and rebuilt cube. Got 01 instead of JAN.Removed mm. Turns out, all you need to do is to use locale defaults in Locale Settings