go to post Enrico Parisi · Jan 16, 2023 In what part/context and how (constant? function/expression? report data?) of a ZEN Report do you want to insert it? Maybe a little snipped of the report may help us in helping you... Enrico
go to post Enrico Parisi · Jan 14, 2023 Often SqlComputed is used for properties that are also calculated like: Property TestCalc As %String [ Calculated, SqlComputeCode = { Set {*} = ..#TestParam }, SqlComputed ]; but in that case ..#ParamName does not work, this works: Property TestCalc As %String [ Calculated, SqlComputeCode = { Set {*} = ##class(test.CalcParm).#TestParam }, SqlComputed ]; Enrico
go to post Enrico Parisi · Jan 12, 2023 SQL Compute Code runs outside the class context, in that circumstance you can use: ##class(YourPkg.YourClassName).#YourParamName Enrico
go to post Enrico Parisi · Jan 12, 2023 You can change the port from 57772 to 80 in System Managment Portal: System Administrtion -> Configuration -> Additional Settings -> Startup -> WebServerPort Or cache.cpf configurtion file: WebServerPort=57772 to WebServerPort=80 Better, proper and suggested solution: install a properly configured web server using port 80, don't use the little web server installed by Ensemble. Enrico
go to post Enrico Parisi · Jan 11, 2023 It's very difficult....nearly impossible to help with the little info provided. The error does not looks like an IRIS/Caché error, is it an IRIS/Caché table or an external table? How are you invoking the query? System Management Portal? Embedded SQL? xDBC? Enrico
go to post Enrico Parisi · Jan 11, 2023 Exactly for that situation I use: If ##class(Ens.Job).ShouldBeQuiescent() || ##class(Ens.Job).ShouldTerminate() { ; do your closing housekeeping or...whatever.. Quit } In your case maybe only ShouldTerminate() would be sufficient. Enrico
go to post Enrico Parisi · Jan 11, 2023 If you need to change date format within a transformation I would create a custom utility function and then use it in the transformation. To build custom utility function see: https://docs.intersystems.com/irisforhealth20222/csp/docbook/DocBook.UI.... Enrico
go to post Enrico Parisi · Jan 11, 2023 If you use custom port there is no session, that's expected/by design. A session (%session) is a %CSP.Session object that is available only when the SOAP service uses a standard request via a properly configured web server (apache, IIS, other), to configure it check the "EnableStandardRequests" setting in the Business Service, configure the Web Application and the web server (or use default namespace Web Application), then invoke the service via the web server port. In my experience I prefer to use standard request via web server, in general there is no need or valid reason (I can think of) to use custom port, unless you need something very specific, for example you don't have a web server (so...no SMP, something very unusual...). Enrico
go to post Enrico Parisi · Dec 22, 2022 I haven't seen a database corruption for many years, I literally forgot the last time I saw it, it may be 15+ years or more. And in the past (last millennium) I've seen and dealt db corruption. Out of curiosity, what are the symptoms or your corruption? How did it happened?
go to post Enrico Parisi · Dec 22, 2022 Sorry but I don't understand the problem/issue, starting from 2023 a web server is a prerequisite for IRIS, I's say that is almost mandatory unless you have some very particular use case. What's the difficulty of installing Apache or IIS in windows? Providing that IRIS installation properly configure the WEB Server (IIS or Apache), I don't see the difficulty. Or I'm missing something?
go to post Enrico Parisi · Dec 22, 2022 Use the Schedule setting for the Business Operation: https://docs.intersystems.com/iris20222/csp/docbook/DocBook.UI.Page.cls?...
go to post Enrico Parisi · Dec 21, 2022 I don't think alerts are stored in any file, they are stored in the Interoperability Event Log accessible from System Management Portal or via SQL using Ens_Util.Log table alerts have Type=6/Alert
go to post Enrico Parisi · Dec 21, 2022 Use Microsoft Windows to install IIS.Once installed you can install InterSystems IRIS, which will ask the user if IIS should be configured. Unfortunately, as of latest IRIS and any previous IRIS/Caché, after default/standard configuration by install kit the SMP won't work properly without additional manual configuration of IIS. I suggest ISC to fix this before removing PWS.
go to post Enrico Parisi · Dec 21, 2022 In your sample the response from EPRSave() is never used/tested. Do client.EPRSave(request, .response) Are you actually using that API in a production system?
go to post Enrico Parisi · Dec 21, 2022 In Studio, Tools menu, Export, select routines, classes etc., select file...
go to post Enrico Parisi · Dec 20, 2022 Hi Yuri, thank you for your sample, I noticed you don't handle/consider the response from EPRSave(). Are you actually using that API in a production system?
go to post Enrico Parisi · Dec 14, 2022 Try enabling the log in the Java Gateway. In Management Portal: System Administration > Configuration > Connectivity > External Language Servers > Edit External Language Server Edit the "%Java Server" (you may need to stop it, if started) and in Advanced Settings specify a Log File. Then reproduce the problem and check the log file. The log file (in some case) can grow significantly, you may want to disable it when done. Enrico
go to post Enrico Parisi · Dec 14, 2022 Frankly I cannot see any advantage in using the sample you posted, it makes things more complicated with no advantage and no, it's not faster than just use a plain simple property. There are cases when those "tricks" (calculated properties, Set/Get methods) can be useful, but that's not the case of the code in your sample. Regarding VALUELIST, it makes it easy and simple to define a (typically small) set of valid values for a property, then, if necessary, you can optionally provide a "user friendly" representation of those value. If you don't find it useful or don't need it, well....don't use it. Enrico
go to post Enrico Parisi · Sep 8, 2022 The solution in simple....if you know it: set addressArray=netGate.new("remote.test.Address[2]") do addressArray.%set(0, home) do addressArray.%set(1, home2) set person = netGate.new("remote.test.Person") do person.setAddressArray(addressArray) set addressArray2=person.getAddressArray() for i=0:1:1 { set addr = addressArray2.%get(i) w !, addr.city } In addition to %set() and %get() method for arrays there are also %setall(), %getall() methods. Hopefully these methods will be documented sometime in the future. Enrico