go to post Eduard Lebedyuk · Aug 22, 2019 You can alter queries via Studio/Atelier/VS Code IDEs.In portal you can run DROP QUERY and create the query again.
go to post Eduard Lebedyuk · Aug 21, 2019 You can add property to the task class which references this table.Would it help?
go to post Eduard Lebedyuk · Aug 19, 2019 Please describe your use case?Do you need one time adjustment? If so move globals.If children can freely change parents, consider one-many relationship instead.
go to post Eduard Lebedyuk · Aug 19, 2019 Some good ideas.If you're unable to receive data at ll, start with a simple query and check if it works: SELECT * FROM DUAL;
go to post Eduard Lebedyuk · Aug 19, 2019 I never use hardcoded global names in code, all global references are defied as macros (preferable) or parameters (allows overloads).Readme or documentation can provide some additional information on used globals but more as a reference.
go to post Eduard Lebedyuk · Aug 18, 2019 Solved.Streams are not passed only for overloaded methods.This does not work: public class API { public void sendMessage(byte[] msg) throws Exception {} public void sendMessage(byte[] msg, String Id) throws Exception {} } However this does: public class API { public void sendMessage(byte[] msg) throws Exception {} public void sendMessageId(byte[] msg, String Id) throws Exception {} }
go to post Eduard Lebedyuk · Aug 18, 2019 Try it like this: /// d ##class(isc.test.Utils).Test2() ClassMethod Test2() { set from = "^A" set to = "^B" kill @from, @to set @from@(1) = "A" set @from@(2) = "B" set @from@(3) = "C" do ..InvertList(from, to) zwrite @from,@to } ClassMethod InvertList(from, to) As %Status { #define ForAll(%in,%gn) s gn%in=$na(%gn) s %in="" f { s %in=$o(@gn%in@(%in)) q:%in="" #define EndFor } $$$ForAll(key, @from) set @to@(@from@(key))=key $$$EndFor } For me it returns ^A(1)="A" ^A(2)="B" ^A(3)="C" ^B("A")=1 ^B("B")=2 ^B("C")=3
go to post Eduard Lebedyuk · Aug 18, 2019 "For Each" for a global?This is For each for a global, not local variable.
go to post Eduard Lebedyuk · Aug 18, 2019 Use BindParameters / SetParameter to set parameters instead of concatinating.
go to post Eduard Lebedyuk · Aug 18, 2019 Enjoy. #define ForAll(%in,%gn) s gn%in=$na(%gn) s %in="" f { s %in=$o(@gn%in@(%in)) q:%in="" #define EndFor } set glvn = "^MyGlobal" $$$ForAll(value, @glvn) write value,! $$$EndFor
go to post Eduard Lebedyuk · Aug 18, 2019 Metrics can store history, i.e.: Property MetricProperty As Ens.DataType.Metric (AUTOHISTORY=50) [MultiDimensional]; Docs.
go to post Eduard Lebedyuk · Aug 16, 2019 Check @Alexey Maslov answer - it is a correct solution for your use case.Still, to set environment variables for current you can use this utility.
go to post Eduard Lebedyuk · Aug 15, 2019 You have created the metric, now you need to add it to dashboard or Production monitor.
go to post Eduard Lebedyuk · Aug 12, 2019 Extend %Fileman class: Class MyFilemanDate Extends %FilemanDate { Parameter STRICTDATA = 1; } And call it: ##class(MyFilemanDate).LogicalToDate()
go to post Eduard Lebedyuk · Aug 12, 2019 Two ways I know how to add your page:1. To DeepSee User Portal (from Analyze This): Set tItem=##class(%DeepSee.UserLibrary.Link).%New() Set tItem.fullName="Analyze This" Set tPage="AnalyzeThis.UI.CSVImport.zen" Set tItem.href=$system.CSP.GetPortalApp($namespace,tPage) _ tPage Set tItem.title="Analyze This" Set tSC=tItem.%Save() 2. To Favorites: set sc = ##class(%SYS.Portal.Users).%AddFavorite("Name", "URL")
go to post Eduard Lebedyuk · Aug 12, 2019 Datatype parameters can be set as properties parameters.In your case you have a property somewhere: Property myDate %FilemanDate; You need to modify it like this: Property myDate %FilemanDate(STRICTDATA=1); And recompile the class.