go to post Eduard Lebedyuk · Aug 23, 2019 Well, I always specify BH calls with indirection, so I guess my answer would be yes.
go to post Eduard Lebedyuk · Aug 23, 2019 I'd add another Operation called MockSOAPOperation which accepts SOAP requests and calls your method.After that change Business Host setting(s) to point to this mock operation.
go to post Eduard Lebedyuk · Aug 23, 2019 In jQuery you don't need Allow* headers.On server try this for TESTING ONLY: Do %response.SetHeader("Access-Control-Allow-Origin",..GetOrigins()) Do %response.SetHeader("Access-Control-Allow-Credentials","true") Do %response.SetHeader("Access-Control-Allow-Methods","GET, PUT, POST, DELETE, OPTIONS") Do %response.SetHeader("Access-Control-Max-Age","10000") Do %response.SetHeader("Access-Control-Allow-Headers","Content-Type, Authorization, Accept-Language, X-Requested-With") And GetOrigins /// Get Origin from %request object ClassMethod GetOrigins() As %String { set url = %request.GetCgiEnv("HTTP_REFERER") return $p(url,"/",1,3) // get http(s)://origin.com:port }
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.