go to post Eduard Lebedyuk · Mar 5, 2018 For password authenticated web applications it is possible by following these steps:All brokers effectively have Parameter UseSession = 1;REST web application and client web application allow only authenticated (i.e. password) access.REST web application and client web application have reasonable Session timeout (i.e. 900, 3600).REST web application and client web application have the same GroupById value.REST web application and client web application have the same cookie path.If all these conditions are met, user would only consume one license slot per session and perform only one login.Check out my upcoming webinar, we definitely would be discussing authentication.
go to post Eduard Lebedyuk · Mar 2, 2018 Not directly. You receive the whole response and can process it line by line, terminating wherever you wish.I'd recommend using WebSockets if possible.
go to post Eduard Lebedyuk · Mar 2, 2018 Default namespace has a priority over script namespace. Remove user's default namespace.Added as an answer.
go to post Eduard Lebedyuk · Mar 2, 2018 Default namespace has a priority over script namespace. Remove user's default namespace.
go to post Eduard Lebedyuk · Mar 1, 2018 You need to press "View other code" button (or Ctrl+Shift+V) and post zMypropertyGetSwizzled routine.
go to post Eduard Lebedyuk · Mar 1, 2018 Please post this line of code (Open myClass -> See other code -> zMypropertyGetSwizzled routine, third line) :zMypropertyGetSwizzled+3^myClass.2
go to post Eduard Lebedyuk · Mar 1, 2018 Hello, everyone!It's my first big webinar in English so I'm starting with the topic I'm familiar with - REST APIs.The main goal of this webinar is to discuss REST APIs and how can we design them so they can evolve and grow without causing too much problems for everyone involved. Versioning, software layers separation, Broker separation - that kind of thing,I would also like discuss some common challenges and how can we bypass them.Then the tooling for the whole development life-cycle (dev-debug-test-document) would be presented.And finally I'll show some REST API examples. Well, mainly UI clients for these APIs.If you have a question about REST that sounds more or less relevant to the topics above - please post it here (or mail directly to me), I'll try to cover it too if possible.
go to post Eduard Lebedyuk · Feb 27, 2018 Modify second query to return 1 row: SELECT TOP 1 .... Check if inserting 1 row works.
go to post Eduard Lebedyuk · Feb 27, 2018 First of all, you're calling class methods, so you don't need a file object. Instead of: s file=##class(%File).%New() d file.CopyFile(File,ArchivePath) d file.Delete(File) It's enough to write: do ##class(%File).CopyFile(File,ArchivePath) do ##class(%File).Delete(File) Other things to consider: You have file and File variables. That makes understanding what's going on more difficult than it should be.Using full command names (set instead of s, do instead of d, etc.) But, %File class has a method specifically for moving, so it's better to call it: set Success = ##class(%File).Rename(File, ArchivePath, .RetCode) write:(Success=$$$NO) "Rename failed with code: " _ RetCode
go to post Eduard Lebedyuk · Feb 26, 2018 AWS has free tier.Also check lowendstock.com there are many deals below $10/year.
go to post Eduard Lebedyuk · Feb 23, 2018 That's not a system macro.Try searching (Edit -> Search in Files) for: '#define Fza' in'*.inc'That should find you a macro definition.Or you can check int code (Ctrl + Shift + V) to see what it compiled into.
go to post Eduard Lebedyuk · Feb 22, 2018 That's probably unrelated problem?Check application error log (SMP > System Operation > System Logs> Application Error Log)?
go to post Eduard Lebedyuk · Feb 22, 2018 See upgrade checklist, action 9. ZN "namespace" DO $system.OBJ.CompileAll("u") Should fix your problem.
go to post Eduard Lebedyuk · Feb 21, 2018 Also can be used in class queries: /// do ##class(class).subclassQueryFunc(baseclass).%Display() Query subclassQuery(base) As %SQLQuery { SELECT c.Name FROM %Dictionary.ClassDefinitionQuery_SubclassOf(:base) }