go to post Eduard Lebedyuk · Mar 18, 2016 I meant: write a new class with method generator. And inherit from it.
go to post Eduard Lebedyuk · Mar 18, 2016 Since XMLEnabled class can be not persistent and, therefore, not have an extent at all, there is no such method. If you need to write XMLExportToFile() for several classes you can write method generator which generates a method that would:Use current extent queryIterate through itOutput each object into a fileAnd inherit all classes, in which you have a need of XMLExportToFile() method from this class.
go to post Eduard Lebedyuk · Mar 18, 2016 It's for translating response status into Caché status. I have the following code: ClassMethod GetResponseStatus(Request As %Net.HttpRequest) As %Status { Set Status = Request.HttpResponse.StatusCode Quit:(Status = 200) $$$OK Set Body = Request.HttpResponse.Data.Read($$$MaxCacheInt) Quit $$$ERROR($$$GeneralError,"Status code: " _ Status _ " ReasonPhrase: " _ Request.HttpResponse.ReasonPhrase _ " StatusLine: " _ Request.HttpResponse.StatusLine _ " Body: " _ Body) } And I want to add URL reporting to it.
go to post Eduard Lebedyuk · Mar 17, 2016 There is more to URL then just that. For example:Http/HttpsRequest parametersRedirects
go to post Eduard Lebedyuk · Mar 17, 2016 Thanks. I thought it would be something like this, but hoped there was a system method somewhere.
go to post Eduard Lebedyuk · Mar 15, 2016 I think latency is more important than bandwith. Studio works fine on 100kb/s wireless connection, but when ping goes higher than 1s it becomes kind of slow.
go to post Eduard Lebedyuk · Mar 14, 2016 Where can I find "Settings and Preferences" in Subscriptions tab under My Account?
go to post Eduard Lebedyuk · Mar 14, 2016 You can open this (any) method in Studio and see the definition (with some rare exceptions, in iKnow package only %iKnow.TextTransformation.HeaderRepositorySetArray and %iKnow.TextTransformation.KeyRepositorySetArray classes are not availible). It's the best way to get an idea of how method works and the code usually even has comments.Scrapped from GetSimilar():Select the most probably relevant terms in the source (top N)Select all sources containing at least one of these N target elementsSort these candidates by the number of target elements they share with the reference documents (approximate score)Of these sources, calculate the actual similarity score for the top M sources with the best approximate scoreNow store the page window in the final result PPG
go to post Eduard Lebedyuk · Mar 14, 2016 And you need to do this why? I mean what is the end goal?To show user some menu when they open Terminal?Yes.You can specify "Startup Tag^Routine" for this purpose:Awesome. Didn't knew that it aplied only to terminal devices.
go to post Eduard Lebedyuk · Mar 14, 2016 Hi.I want to create LOGIN^%ZSTART routine that works only for terminal connections. Here's the code.
go to post Eduard Lebedyuk · Mar 12, 2016 Hi. About your second question, you can easily extend Caché ObjectScript, to do it. Wouldn't recommend it for use in production, but why not add some syntax sugar on you dev instance? Create %ZLANGC00 mac routine with the following code: ; %ZLANGC00 ; custom commands for ObjectScript ; http://docs.intersystems.com/cache20141/csp/docbook/DocBook.UI.Page.cls?KEY=GSTU_customize Quit /// Execute Query and display the results /// Call like this: /// zsql "SELECT TOP 10 Name FROM Sample.Person" ZSQL(Query) #Dim ResultSet As %SQL.StatementResult Set ResultSet = ##class(%SQL.Statement).%ExecDirect(, Query) Do ResultSet.%Display() Quit Save and compile it and then you can execute sql in a terminal like this: zsql "SELECT TOP 10 Name FROM Sample.Person" It would display something like this: SAMPLES>zsql "SELECT TOP 10 Name FROM Sample.Person" Name Adam,Wolfgang F. Adams,Phil H. Ahmed,Edward V. Ahmed,Michael O. Ahmed,Patrick O. Allen,Zelda P. Alton,Samantha F. Bach,Buzz E. Bach,Fred X. Bach,Patrick Y. 10 Rows(s) Affected That said I myself prefer executing SQL queries in SMP because you don't need to type them there (drag&drop from the left panel or copy&paste from the code) - it's very convenient.
go to post Eduard Lebedyuk · Mar 11, 2016 How's your experience with EMS?UPD. Seen last modified date, nevermind.
go to post Eduard Lebedyuk · Mar 11, 2016 Yes, but if direct global iteration is used, the speed would probably be higher then sql.
go to post Eduard Lebedyuk · Mar 11, 2016 The fastest query-like interface is %SQL.CustomResultSet. You need to write your owl logic, though. It can be called like this: Set resultset= ##class(Package.YourCustomQueryRS).%New() While resultset.%Next() { Write resultset.Id,! }
go to post Eduard Lebedyuk · Mar 8, 2016 I don't think dropdown menu items support key property. Maybe you can use id property for your purposes instead?
go to post Eduard Lebedyuk · Mar 7, 2016 Looks quite interesting. Are there any planned release date? Would there be an option to write your own checks?