go to post Eduard Lebedyuk · Jan 9, 2017 Yes, same as with studio, Caché supports Unit Tests. Documentation.
go to post Eduard Lebedyuk · Jan 9, 2017 write ##class(Config.CPF).Activate() Would read and activate current configuration file without system restart.
go to post Eduard Lebedyuk · Jan 9, 2017 You can search for the references in studio:Open StudioMenu -> Edit -> Search in filesFind: Dimension/Measure (for example [DateOfSale].[Actual].[DaySold])File type: *.dfiIt should find relevant entities.
go to post Eduard Lebedyuk · Jan 8, 2017 Hello. Thank you for this information. I started testing it and %iKnow.Queries.SourceAPI:GetSimilar() returned the following as a result local: result(1)=$lb(890,":SQL:2002:20020308X00320",.4737,.9606,57,27,686,.4737) The list is formed from these values: $lb(srcId, externalId, percentageMatched, percentageNew, nbOfTgtsInRefSrc, nbOfTgtsInCommon, nbOfTgtsInSimSrc, matchScore) What does that mean? srcId -sourceId of similar documentexternalId - external source id of similar documentpercentageMatched - number of targets common between source and similar documents divided by number of targets in source documentpercentageNew - number of targets in similar document that is not present in source document divided by total number of targets in similar documentnbOfTgtsInRefSrc - number of targets in source documentnbOfTgtsInCommon - number of targets common between source and similar documentsnbOfTgtsInSimSrc - number of targets in similar documentmatchScore - seems equal to percentageMatched Is that correct? Are there documentation on that?
go to post Eduard Lebedyuk · Jan 5, 2017 Cache Fileserver is an old project of mine which allows file upload/download. Files have IDs, but to download each client get's an unique link active only for his IP for a limited time. You can remove IDs altogether.
go to post Eduard Lebedyuk · Jan 5, 2017 If you have a web application, you can enforce codepage on a client side, there are several advantages to it:Conversions do not add the load to the serverJS client libraries are well equipped to deal with various OSes/browsers combinationsThe best approach would be to move to unicode.
go to post Eduard Lebedyuk · Jan 2, 2017 You can define your own device of terminal type (also see System - Configuration - Devices you can see other defined Cache terminals) :
go to post Eduard Lebedyuk · Dec 28, 2016 Possible solution: write $SYSTEM.Status.GetErrorText($SYSTEM.SQL.SetTCPKeepAlive(3600)) About TCPKeepAlive. UPD: well, that did not work. I set it to 3600 and later to 30, and it did not help any.
go to post Eduard Lebedyuk · Dec 28, 2016 The best way to add RESTForms (or any other repository) into your repository is submodules. Submodule is a pointer to specific commit from another repository. On disk it looks like folder. More info on submodules. To add RESTForms execute in git cli: git submodule add https://github.com/intersystems-ru/RESTForms.git
go to post Eduard Lebedyuk · Dec 27, 2016 I was caught on PYTHON too! Turns out that I had 3rd, but 2nd was required.
go to post Eduard Lebedyuk · Dec 26, 2016 Release page offers releases for both 2016.1 and 2016.2+. And in 2016.2+ $ methods are already removed.If however you want to use latest commit from repo, then you need to run SMR.
go to post Eduard Lebedyuk · Dec 23, 2016 Here's an idea on how to do it without triggers altogether. 1. Set IsLeader property only in case member is a leader. So its 1 or NULL. 2. Add unique index on (Team, IsLeader). Unique index can have any number of NULL records. 3. If you try to add more than one leader, you'll get an error: ERROR #5808: Key not unique: Utils.TeamMember:IsLeaderIndex:^Utils.TeamMemberI("IsLeaderIndex"," 1"," 1") [%SaveData+14^Utils.TeamMember.1:USER] Sample code: Class Utils.TeamMember Extends %Persistent { Property Team As %String; Property Member As %String; Property IsLeader(VALUELIST = ",1"); Index IsLeaderIndex On (Team, IsLeader) [ Unique ]; /// do ##class(Utils.TeamMember).Test() ClassMethod Test(AddTwoLeaders = {$$$YES}) { do ..%KillExtent() write $System.Status.GetErrorText(..Add(1, "Alice")) write $System.Status.GetErrorText(..Add(1, "Bob")) write $System.Status.GetErrorText(..Add(1, "Clover")) write $System.Status.GetErrorText(..Add(1, "Dave", 1)) if AddTwoLeaders { write $System.Status.GetErrorText(..Add(1, "Helen", 1)) } } ClassMethod Add(Team, Member, IsLeader = "") { set obj = ..%New() set obj.Team = Team set obj.Member = Member set obj.IsLeader = IsLeader quit obj.%Save() } }
go to post Eduard Lebedyuk · Dec 20, 2016 You should have FHIR package, which includes dtls to transform hl7 messages into json or xml. You can either use that or write your own solution based on that.
go to post Eduard Lebedyuk · Dec 20, 2016 Have you checked how much time does it take to load all records from database on a server?