go to post Robert Cemper · Jun 16, 2020 Ah, getting closer:The problem seems to reduce to an alternative way (a wrapper around) to %Open and %Delete.
go to post Robert Cemper · Jun 16, 2020 it isn't the save yet. especially if some UNIQUE conflict prevents the save and requires a Rollbackdelete isn't affected at all
go to post Robert Cemper · Jun 16, 2020 As all you need is in %Persitent you could have your own personal.persitent extending %persitentwrapping %Open and %Delete in your own extended code.3 points to consider: how to force your personal.persitent to all existent and future classes ? how to force classes generated by DDL ? how to maintain your extension over release changes ? Sorry, I doubt if this is the right approach
go to post Robert Cemper · Jun 16, 2020 take a look at %Library.Persistent. Methods %Open, %OpenId have a 3rd call parameter status that returns a %Status value indicating success or failure. %Delete, %DeleteId do it as direct result by a %Status value indicating success or failure. No further need of an %On.... to know success or failure
go to post Robert Cemper · Jun 13, 2020 Allmost! 3rd Update since if the left side is a Unix Timestamp, then you get this result: write $zdt($zdth(1591891200000\1000,-2),3) ==> 2020-06-11 18:00:00 docs: https://docs.intersystems.com/iris20201/csp/docbook/Doc.View.cls?KEY=RCOS_fzdatetime timezone conversion from UTC may compensate the 6 hours difference ! in Middle Europ we have we have 2 hrs+ to UTC so write $zdt($zdt($zdth(1591891200000\1000,-2),-3),3)2020-06-11 16:00:00
go to post Robert Cemper · Jun 13, 2020 to complete this.Docker has its storage here. C:\Users\<youruser>\AppData\Local\Docker\wsl\data\ext4.vhdxC:\Users\<youruser>\AppData\Local\Docker\wsl\distro\ext4.vhdx
go to post Robert Cemper · Jun 12, 2020 method OpenSFTP(ByRef sftp As %Net.SSH.SFTP) as %Status Open up an SFTP session for SFTP activity. ByRef this means that the variable you pass has to be initialized first. #dim sftp As %Net.SSH.SFTP just binds the object type to variable sftp but doesn't initialize it.So it is <UNDEFINED> Use your original line instead or in addition to initalize it Set sftp = ##class(%Net.SSH.Session).%New()
go to post Robert Cemper · Jun 10, 2020 I had to transfer more than a few files. so I shared a docker volume: docker run ...... --name=iris1 -d -v volume1:/external ........ docker run ....... --name=iris2 -d -v volume1:/external ........ so both containers have permanent access and can pass files as we use to pass Globals using IRISTEMP or CACHETEMP The volume gets generated at first access automatically
go to post Robert Cemper · Jun 10, 2020 Another issue I had is the requirement of Hyper-V. The latest VMware Player 15.5.6 has no problem, with Hyper-V enabled anymore.So they can be installed in parallel (if your disk space allows )
go to post Robert Cemper · Jun 10, 2020 @Luca Ravazzolo , @Jose-Tomas Salvador I succeeded to force an upgrade of my Win 10 to 2004 and to activate WSL2 (installation blocked until VMware was de-installed !)and Docker Desktop For WSL2. Quite interesting to have a Windows-Installer for a Linux program. Take care to use version >2.3.0 2 for WSL2And it was running as expected with no troubles. No issues with Images, Containers, Volumes, Networks. It's an interesting experience, especially as I'm not forced to use PowerShell.Communication with Win File System goes Docker ==> WSL2 ==> Windows.Next positive surprise: my local C:\.. was mounted byWSL2 to /mnt/c/.... (I just tried read access)Bad surprises:- the guide to install / activate was just of limited help, partially confusing / contradictionary Google helped with useful and just commercial advice.- Reboots: after #5 I stopped counting Still a challenge: I couldn't find out where WSL2 file system was homed on my C:\ drive.
go to post Robert Cemper · Jun 9, 2020 see: https://cedocs.intersystems.com/latest/csp/docbook/Doc.View.cls?KEY=RSQL_into &sql(SELECT Name, DOB, Gender INTO :Name,:DOB,:Gender FROM osuwmc_RQGPatient.DataTable WHERE MRN=:MRN)
go to post Robert Cemper · Jun 8, 2020 I think not that this is possible.The reason was to make it as flexible as any other Dynamic query.I'm convinced this was necessary to support Sharding. But you have the option to write your own custom class query
go to post Robert Cemper · Jun 8, 2020 I'd like to say a big Thank You ! to all participants that gave me their vote. And I forgive the unknow experts that voted for me in the beginning and changed their mind shortly before closing as by the rules.
go to post Robert Cemper · Jun 7, 2020 You did a very interesting presentation of the essential concept of Globals that was developed once by Neal Pappalardo in 1966/67. Long before objects were even thought of.So back to the roots !( Neil Pappalardo is the founder and CEO of MEDITECH )
go to post Robert Cemper · Jun 7, 2020 The %JSON. Adaptor is missing in Caché but %JSON.Formatter was backported half a year ago. it is in OpenExchange available