go to post Dmitry Maslennikov · Feb 1, 2023 iris.cpf file in the root of IRIS installation, contains these lines DefaultPort=1972 WebServerPort=52773
go to post Dmitry Maslennikov · Jan 30, 2023 If you use version 2022.2 it may not work, try with 2022.3 or 2022.1
go to post Dmitry Maslennikov · Jan 26, 2023 The difference in the user owner of the IRIS process, System Management portal is a web process and runing under system user of IRIS irisusr, and your terminal process is under your user.
go to post Dmitry Maslennikov · Jan 19, 2023 well, in this case you may use method __setitem__ directly do ws."__setitem__"("A1", "blah")
go to post Dmitry Maslennikov · Jan 16, 2023 Should be quite simple, in some cases even without any configuration. Any ClassMethod has a shortcut to Debug it Some more settings for different cases, you can find here
go to post Dmitry Maslennikov · Jan 11, 2023 VSCode has such feature, from Menu Go -> Go to file, (cmd+P/ctrl+P)
go to post Dmitry Maslennikov · Jan 5, 2023 Yeah, that's really, so. Redis has that feature, so you can set a time to live for the value, and it will disappear after that. In IRIS The only way to have something that will be deleted automatically is, Process-Private Globals, but their time to live is tied to the process, and you would still need to clean up if your process is long living.
go to post Dmitry Maslennikov · Jan 4, 2023 Any reasons for doing this? This is not how it is supposed to be. REST should answer with Status 401, and optionally with methods available. And web application when gets 401, it knows that it has to authorize the user, and shows its own page or initiates SSO, depending on the task. Anyway, if really do this way, It looks like %CSP.REST extends %CSP.Login, and it has Method Login Called for a REST page in the event of a login being required Did not test it, but I would expect it will do what requested
go to post Dmitry Maslennikov · Dec 20, 2022 Atelier API is just for IDE, it's not supposed to call any custom call. There is a way, that you could call SQL Proc, via SQL Query. But it is not what I would recommend
go to post Dmitry Maslennikov · Dec 9, 2022 Api Atelier was added with 2016.2, and it's the oldest version where it's available, you can't migrate it to an older version. You may ask InterSystems or someone else for help in the upgrading process.
go to post Dmitry Maslennikov · Dec 8, 2022 Not, it's for Windows only. Instead of Studio, you can use VSCode, it's available for any platform.
go to post Dmitry Maslennikov · Dec 7, 2022 The trick is in using <TAB>, after the label in the first line, and before each line, I even can copy-paste the entire code from an editor to a terminal, I use iTerm in macOS, no idea how it works with other terminals.
go to post Dmitry Maslennikov · Nov 8, 2022 "scheme": "https", Are you sure, that you need https, not plain http? Seems like, it's the issue
go to post Dmitry Maslennikov · Nov 7, 2022 Save it as file ObjectScript.RightTriangle.cls, and do the command Do $system.OBJ.Load("ObjectScript.RightTriangle.cls", "ck") Where, c - compile k - keep generated code, INT routines
go to post Dmitry Maslennikov · Nov 4, 2022 Found this way with IDENTITY and ALLOWIDENTITYINSERT=1 CREATE TABLE users ( id identity NOT NULL, name VARCHAR(30) NOT NULL, PRIMARY KEY (id) ) WITH %CLASSPARAMETER ALLOWIDENTITYINSERT = 1; INSERT INTO users (id, name) VALUES (2, 'fred'); SELECT LAST_IDENTITY(); INSERT INTO users (name) VALUES ('ed'); SELECT LAST_IDENTITY(); Not sure if actually a good way to solve the issue
go to post Dmitry Maslennikov · Nov 1, 2022 I see it in difficulty explaining of how to start using IRIS with NodeJS (actually with any supported language). It's not even simpler for NodeJS Developers who already familiar with IRIS and the complexity of getting drivers. When on answer of how to start develop in NodeJS with IRIS, we could answer just install driver with npm and you are ready to go, then probably will be much more NodeJS based projects.
go to post Dmitry Maslennikov · Oct 26, 2022 It has not been updated for a few years, so, yeah, I'm sure it's synchronous. But I think most of the operations available through that API, should be synchronous. SQL could be asynchronous, but it does not support it. I think I could make an asynchronous adapter, I have a driver which supports SQL, not async, yet, but I have not have such task yet.
go to post Dmitry Maslennikov · Oct 12, 2022 Have a look at this project https://github.com/jeandormehl/laracache
go to post Dmitry Maslennikov · Sep 1, 2022 Background tasks are an internal feature mostly for System Management Portal, and in most cases also not supposed to be called by you. JOB, is a complete different story. with this command, you have control over many aspects of how to run this process in the background. You can check $Test, (be careful, and do right after JOB) which says if your process even started in the background $ZChild returns that job ID, you can check it in SMP if it's running $Data(^$JOB(child)) will say if your child process is still alive. You may have up to 25 (can be less) background jobs per process. So, store the child process ID after each call of JOB command You may redirect output from that process to some file, by passing principal-output parameter With ^$JOB and $ZChild, you at least can wait until the process is finished its work. With an endless loop and reasonable HANG