go to post David Satorres · 3 hr ago Hello Eduard, I guess you mean * could prevent it? I've tried also using only some properties, and it's not auto-parallelizing it neither :'( I tried the same via ODBC and result keep being the same: no autoparallel :'(
go to post David Satorres · Oct 22 Hi, yes it does! Current values are "ntlm,negotiate". I can't change it to any other value, though.. this is managed by the organisation
go to post David Satorres · Oct 20 Hi Kirsten, Thanks for this. But still doesn't work, I get same error: Error message: ERROR #864: An authenticated user name is required.Web Application: /terminal$I: |TCP|51773|134694$P: |TCP|51773|134694 Weirdly, with Firefox I'm able to get the auth dialog. I suspect it is related to browser (Edge doesn't work) as I've removed all cookies and cleaned the cache :(
go to post David Satorres · Oct 7 wow! Using a private session works :-O All the testing I did, and never tried out with that. So, is it then related to cookies?
go to post David Satorres · Oct 7 No, I don't get anything. Simply error 401 and then in the audit I can see how it has automatically taken UnknowUser on it own :)
go to post David Satorres · Sep 3 Hi Scott, Maybe you could can simply use mapping to split the globals from each namespace in different databases and have them in different disks. In my experience, this speeds up the system as reading from different disks at the same time avoids the problem on the max IO reached by the reader daemon. And you can even have different blocksizes that match better with the global structure. Splitting routines and globals might sound nice, but you'll end up with a very small one (routines) and a massive one (the data).
go to post David Satorres · Sep 2 Try enabling the service %CallIn:To prevent IRIS_ACCESSDENIED errors while running Embedded Python, enable %Service_Callin. In the Management Portal, go to System Administration > Security > Services, select %Service_CallIn, and check the Service Enabled box. https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...
go to post David Satorres · Sep 2 Hi! I can't see the benefits of calling a SP (!!!) instead of "normal" cache code: Set file = ##class(%File).%New("c:\temp\test.csv") Set sc = file.Open("R") While 'file.AtEnd { Set line=file.ReadLine() } In any case, it's good to know other ways to get to the same place :)
go to post David Satorres · Sep 2 Hi Guillaume, Oui, but updating the whole system only because of this is not an option. I guess maybe an ad-hoc is the answer... :'( Let's see if someone else can come with another solution.
go to post David Satorres · Aug 27 Hello Eddy, You might try this: ##class(HS.Hub.HSWS.WebServicesClientAPI).WebMethod("AddFacility").Invoke(##this,"http://www.intersystems.com/hs/hub/hsws/HS.Hub.HSWS.WebServices.AddFacility",pRequest,.pResponse) There is an AddFacility method in HS.Hub.HSWS.WebServicesClientAPI.
go to post David Satorres · Aug 19 Hi Alexander, before running the second command, and in order to get the right numbers, shouldn't you clear the buffers so system takes it again from the disk? d ClearBuffers^|"%SYS"|GLOBUFF()
go to post David Satorres · Aug 6 I'd be interested in that too. There must be an utility that simply emulates what the patient viewer is doing, so calling it using the MPIID should give back all the information from a patient, including demographics and encounters data. I simply can't find it, but I'm pretty sure it's there. Anyone knows?
go to post David Satorres · Jul 18 I use this on Windows to automatically restart any instance. Probably simply changing "\" by "/" will do the trick, and change stopstart for stop: //restart instance d ##class(Ens.Director).StopProduction(1,1) set cmd=$P($ZU(12),"\",1,$L($ZU(12),"\")-2)_"\bin\iris stopstart "_$P($ZU(86),"*",2) d $zf(-2,cmd)
go to post David Satorres · Jul 9 Hello, I know it's quite old and maybe it's solved, but I had a similar issue with the message ERROR #815: User not authorized for service %Service_WebGateway In my case, the problem was in the resources setup (/csp/sys/sec/%25CSP.UI.Portal.Resources.zen). By giving public permission to the gateway , the system started to work: Hope this helps!
go to post David Satorres · Jul 3 Just for fun, or to see if AI matches the experts, I've asked the question to Mixtral. This is what it is explaining: Yes, I can certainly explain the difference between %ResultSet.SQL and %SQL.Statement in Intersystems Cache ObjectScript. %ResultSet.SQL is a class that provides a result set interface for executing SQL queries. It allows you to iterate over the rows returned by a SQL query and access the columns as properties of each row. Here's an example of how to use %ResultSet.SQL: SET rs = ##class(%ResultSet.SQL).%Open("SELECT * FROM mytable") DO WHILE (rs.%Next()) { SET column1 = rs.column1 SET column2 = rs.column2 // Do something with the columns } rs.%Close() On the other hand, %SQL.Statement is a class that provides a statement interface for executing SQL queries. It allows you to prepare a SQL statement and then execute it multiple times with different parameter values. Here's an example of how to use %SQL.Statement: SET stmt = ##class(%SQL.Statement).%New() DO stmt.%Prepare("SELECT * FROM mytable WHERE column1 = :val1 AND column2 = :val2") DO stmt.%Execute(val1, val2) DO WHILE (stmt.%Fetch()) { SET column1 = stmt.column1 SET column2 = stmt.column2 // Do something with the columns } stmt.%Close() In summary, the main difference between %ResultSet.SQL and %SQL.Statement is that %ResultSet.SQL is used for iterating over the rows returned by a SQL query, while %SQL.Statement is used for preparing and executing a SQL statement multiple times with different parameter values.
go to post David Satorres · Jun 29 Yes, I would totally recommend running it after any version upgrade. Won't do any harm, and surely solve issues related to changes on depending intersystems classes.
go to post David Satorres · Jun 26 Who needs the flexibility and scalability of a database when you can just hardcode everything into the source code? I'm sure that'll make maintenance and updates a breeze. Coming from someone with the PI expert badge, I take it as the near-official reason. Thanks for your help :-)
go to post David Satorres · Jun 25 Hi Stephen, Yes, that's what I finally did. But I was hoping there was some other way around "cleaner". It's kind or surprising to me that the parameters are not stored on a global, but it's just a class created with the values hard-coded in it. Thanks for your help, in any case :)
go to post David Satorres · Mar 13 This is great Kurro! But this is the kind of things I would definetely take advantage of embeded python to speed up the development. To send a message using python, few lines of code are needed: import pymsteamsmyTeamsMessage = pymsteams.connectorcard(url) # Initialize the connector card with webhook URLmyTeamsMessage.text("This message will end up in team") # Message contentmyTeamsMessage.send() # Send the message