go to post Eduard Lebedyuk · 22 hr ago Set response type to HTML: ClassMethod Test() { set %response.ContentType = "application/html" do ##class(%CSP.Utils).DisplayAllObjects() quit $$$OK } In Postman click Preview button:
go to post Eduard Lebedyuk · Oct 9 SDS for "enabled" and "pool size" were made available starting with 2024.1.
go to post Eduard Lebedyuk · Oct 9 URL must have a scheme (either TCP or SSL). I don't think your (redacted) URL has a scheme. If that does not help, try to init the object directly to see what's going on: Set client=##class(%Net.MQTT.Client).%New(Url, ClientID, QOS, KeepAlive, LWTTopic, LWTMessage) When creating a new client instance at minimum the url to connect and a client id is required to be specified.The client id must be a utf-8 string which is used to uniquely identify the client.This takes the form "tcp://localhost:1883" where the scheme is tcp and the host and port are seperated by a colon. Ifyou are using ssl you should specify the url in the form "ssl://localhost:8883" where scheme is ssl.The second parameter is a string which the broker can use to identify the client. The client will generate an id if not specified.The third parameter defines the required quality of service, 'Fire and Forget' (0) or 'Wait for Delivery' (1). The fourth parameter is the keepalive interval, defaults to 60. The client will send keepalive messages to the broker according to the specified interval. The final pair of parameters specifies the last will and testament topic and associated message.The LWT (last will and testament) feature tells the broker to deliver the Last Will message to the Last Will topic, should the client unexpectedly disconnect. Note, %New() can error so it's important to check that the return value with $IsObject() and examine the %objlasterror status value should the %New() not return a valid object.
go to post Eduard Lebedyuk · Oct 9 Doubt it - $system.OBJ.MakeClassDeployed deletes the source code so there's nothing to recompile. Contact the WRC maybe they can suggest something, but without the source code there's not much anyone can do. Maybe you still have this class in your source control?
go to post Eduard Lebedyuk · Oct 8 Add password auth as Allowed Authentication Method on Web App configuration page.
go to post Eduard Lebedyuk · Oct 8 Health Connect Cloud clients use System Default Settings. SDS serve two purposes: Providing environment-specific settings (i.e. Port). Providing settings common to several BHs using wildcards (i.e. Connect Timeout). They can be easily integrated into CICD processes. Starting from 2024.1 SDS can also control enabled/disabled state of individual BHs.
go to post Eduard Lebedyuk · Oct 6 If you need to look at request/session/response - add this to any part of your REST handler: set %response.ContentType = "html" do ##class(%CSP.Utils).DisplayAllObjects() return $$$OK Here are some other tools available: part 1, part 2.
go to post Eduard Lebedyuk · Oct 1 Check this discussion. % variables are the simplest singletons there is.
go to post Eduard Lebedyuk · Sep 26 %Close is called automatically. Consider the following example: Class Utils.GC Extends %RegisteredObject { Property Type As %String; /// do ##class(Utils.GC).Test() ClassMethod Test() { set obj = ..%New("explicit") kill obj do ..Implicit() } ClassMethod Implicit() { set obj = ..%New("implicit") // obj will be removed from memory after we exit current method/frame. } Method %OnClose() As %Status [ Private, ServerOnly = 1 ] { Write "%Close is running: ", ..Type,! Quit $$$OK } Method %OnNew(type) As %Status [ Private, ServerOnly = 1 ] { Set ..Type = type Quit $$$OK } } Here's the output from the Test method: HCC>do ##class(Utils.GC).Test() %Close is running: explicit %Close is running: implicit
go to post Eduard Lebedyuk · Sep 23 In router Force Sync Send should be 1. The default RCA behavior is ':?R=RF,:?E=S,:~=S,:?A=C,:*=S,:I?=W,:T?=C'This means for NACKs received with error code AR or CR retry, while codes AE or CE suspend the current outbound message and move on to the next. I suppose you want ':?R=RF,:?E=F,:~=S,:?A=C,:*=S,:I?=W,:T?=C'
go to post Eduard Lebedyuk · Sep 17 To avoid getting unrelated http errors on xDBC testing, test in terminal: set sc = ##class(%SYSTEM.SQLGateway).TestConnection(name, 0, 0, .err) set sc = ##class(%SQL.Manager.API).TestDecodeDSN(name, usr, password, 0, .err)
go to post Eduard Lebedyuk · Sep 17 Are you on Linux? Use JDBC. ODBC Snowflake driver is incompatible with IRIS because it uses a backtrace() syscal which causes signal 11 in IRIS process if the process is running in a background. Snowflake ODBC driver uses backtrace to determine Driver Manager on Linux, so currently it does not work on Linux at all with IRIS.
go to post Eduard Lebedyuk · Jul 8 Great! IRIS 2019.4.0, Business Host class compilation triggers all Config Items of that class to be automatically restarted. Which compile flag is that?
go to post Eduard Lebedyuk · Jun 30 Properties are case sensitive. What would be the use case for that?
go to post Eduard Lebedyuk · Jun 3 Timings heavily depend on your setup. You can always start by collecting the data for an hour.
go to post Eduard Lebedyuk · May 28 Check this example. It iterates all JSON elements, and also outputs the corresponding paths to access them.