1840-12-31 00:00:00 is point Zero of internal time setting.
It applies as default to empty data type Ens.DataType.UTC
- Log in to post comments
1840-12-31 00:00:00 is point Zero of internal time setting.
It applies as default to empty data type Ens.DataType.UTC
embedded SQL is probably an overkill for this formating.
Just convert it to the internal format, add what you need and assemble the pieces in COS
if you know exactly what characters you want to remove you may use $TRANSLATE (in SQL) !
docs: https://cedocs.intersystems.com/latest/csp/docbook/Doc.View.cls?KEY=RSQL_d_translate
THX ![]()
for the fixed part you still can use classic mapping.
for the variable section you may set CONTENT = "MIXED" for the containing property
and get the raw XML structure in hands .
You can then analyze this "inner" XML using class %XML.TestReader
The example and the class are simply wrong
A %Library.DynamicObject that is composed here just has neither a method %Clone nor a method %Compose
You may report the bug to WRC
DCOUNT is a function of MV Basic. Not of ObjectScript !
should do the trick
Ah, getting closer:
The problem seems to reduce to an alternative way (a wrapper around) to %Open and %Delete.
it isn't the save yet. especially if some UNIQUE conflict prevents the save and requires a Rollback
delete isn't affected at all
As all you need is in %Persitent you could have your own personal.persitent extending %persitent
wrapping %Open and %Delete in your own extended code.
3 points to consider:
Sorry, I doubt if this is the right approach
take a look at %Library.Persistent. Methods
No further need of an %On.... to know success or failure
Allmost! 3rd Update
since if the left side is a Unix Timestamp, then you get this result:
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
to complete this.
Docker has its storage here.
Fully agrees with Output.
though, is it worth a prodglog ?
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.
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
![]()
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
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
)
@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 WSL2
And 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.
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)
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
I'd like to say a bigThank 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.
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 )
The %JSON. Adaptor is missing in Caché but %JSON.Formatter was backported half a year ago. it is in OpenExchange available
COS what else ?
You need to start with require("cache") to have the basic access module.
you find it a cache.node for various rather old versino0n of Node.
it is in %instaldir%\bin\ .png)
more details in %instaldir%\ \dev\node.js\samples\installed_software.js
.png)
and more ......
To use a DSN it has to be a SYSTEM-DSN and have the same bit as Cache / IRIS. Depends on your EXCEl instalation
Therefore 64bit.
Activate as you might know from Cache is not available in IRIS
¡ Hola Salva ! ( @Jose Tomas Salvador)
You motivated me to give it a try.
And with a little bit of tweaking the scripts my contribution for the contest
WebSocket Client JS with IRIS Native API as Docker Micro Server
is also running with no issues on Docker Desktop for Windows !
A very positive experience that I didn't expect at first sight.
¡ Gracias !
if you install Excel you have automatically also a DSN for ODBC access to EXCEL
check your DSN data sources in your Windows installation.
Use ODBC-Gateway in Cache / IRIS to access it.