go to post Sergei Shutov · Jun 26, 2018 Hi Galena, It's not quite clear what you are tying to do, but if you want to interact with IEX API via IRIS integration engine it's just a standard REST API so you can use techniques described in this book http://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?... (chapters 4 and 5)
go to post Sergei Shutov · Aug 8, 2017 Hi Nael,I'd suggest to "print" from IE to PDF first, using CutePDF as a default printer, and then use Adobe Reader or similar tool to print to printer. That should require less scripting of IE and more manageable solution overall.RegardsSergei
go to post Sergei Shutov · Jul 28, 2017 Hi Sebastian,How do you currently determine SMP URL? Usually web server configuration is external to Cache, so there are not many options except asking user to enter SMP URL manually. That's what InterSystems is doing when connecting from external tools like Studio as well. Any attempt to be smart about it will sooner or later cause you problems with exotic setups like load balancers, external web servers on separate machines, etc etc CheersSergei
go to post Sergei Shutov · May 24, 2017 You should definitely store your storage schema in VCS. When you first compile and install your solution into an environment, it doesn't really matter -- as you said, storage will be generated automatically during compilation. However, this will cause major issues when you'll have to upgrade your environment to a newer version of your class and keep the data.If you had a class definition in Version 1 of your system with properties Address, Zipcode your storage schema will look likenode=$LB($ClassName,Address,Zipcode)If in version 2 you add another property, BusinessPhone, and you kept your schema, new storage definition will look likenode=$LB($ClassName,Address,Zipcode,BusinessPhone)And all old data will still be valid, just its BusinessPhone property will be emptyHowever if you didn't save your schema, new storage will be alphabetically sorted as this:node=$LB($ClassName,Address,BusinessPhone,ZipCode)And all old data will have its ZipCode as BusinessPhone now!I encountered this problem a couple of times, when class definition was exported before it was compiled (and storage schema was not updated), and it was not easy to fix: you need to iterate across the whole global and rewrite it, trying to guess if it's an old data or a new one.Hope this helpsSergei
go to post Sergei Shutov · May 11, 2017 Hi Angelo,Yes the easiest way is to use ODBC driver and it will behave same way as MySQL. See documentation below.http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...=Sergei
go to post Sergei Shutov · May 10, 2017 Try to add Recurse="true" to your import statement: <Import File="${SourceFile}" Recurse="true"/>
go to post Sergei Shutov · Nov 27, 2016 Look at $zboolean function:http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...USER>w $zboolean(10,3,7)11
go to post Sergei Shutov · Sep 5, 2016 All subscripts will be calculated before merge command will start global merge, so looks like you hit this command several (at least 2) times within a second. Since you don't have $JOB as a subscript or data node it also could be that it's done from different processes.On the other hand, it's considered a good code practice to assign $h to a variable somewhere at the top of the method, and use that variable instead of $h throughout the code.Consider this code for example:if (DAYNUM-$H>0) && (WKS>2) do ....if (DAYNUM-$H<=0) && (WKS>2) do ....You want to check if date is in future and do something different if it is. You would expect that only one branch of code would ever run; however in extremely rare circumstances when this code runs around midnight $h could change between first and second if statements and run both code branches, screwing up your database unpredictably.Another good practice is to pass "current date" as method argument instead of assigning $h inside a method. This way it's much easier to test methods.
go to post Sergei Shutov · May 20, 2016 You can use ccontrol delete command to remove instance from list of available instances. See documentation on cache uninstall at http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...
go to post Sergei Shutov · May 2, 2016 This is a documentation on how to add/edit server connection:http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=... Use 127.0.0.1 as server addressAnd then try to launch Studio and Terminal using "Remote System Access" menu from Cache tray cube. If it works, you can set that "remote server" as default.