I have existing projects in my Atelier environment. Where can I go to see which namespace they were created in?
Hi all,
I've been looking for a way to extract the sorting from the ^CacheTemp.zenData global that contain the tablePane snapshot data in order to use it on a report following the current UI sorting criteria.
I could see that if the column is sorted by one column, new entries with this structure are created:
^CacheTemp.zenData(<sessionId>,<snapShotId>,<tablePaneId>,"index",<columnId>,<value>,<dataId>)=""
These are created the first time that the sort criteria is applied (asc) and has the same amount of entries as the data being displayed.
Hi, Community!
Here is the digest of the most interesting and valuable articles published on Developer Community in March 2016.
If we missed something interesting, please feel free to add it in comments.
So, here we go!
News and Events
Caché and Ensemble 2016.1 Release
New Book, Caché and MUMPS – Part II
Most commented
– 15 comments
– 12 comments
Using Class Queries - %SQL.Statement versus %Library.ResultSet – 12 comments
This will be a stretch to be useful, but it was sorta fun. If you just so happen to have a use case to make your HealthShare productions talk to a Slack channel, this is the Business Operation for you.
In Slack, it is a dead simple process to enable an incoming web hook:
- Name It
- Give it an Icon or Emoji
- Declare a Channel to Interact With
One you supplies those, it spits out a URL that you can go to town posting to your channel using that endpoint.
Hi!
Does anyone have an example of subj?
I know there is google service for it. Anyone uses it in production? What is the feedback?
In case of positive feedback would you please post the code example?
TIA!
Hi
I have been experimenting with the creation of a set of REST services for an app. The basic GET operation is set to create a %ZEN.proxyObject instance, and then set an instance of a Persistant class as a property, which gives me all of the values I want to return. However, it also gives me some values that I don't want to return over REST (because they are both private, and large registered objects which will bog down performance)
How do I remove these values from the ZENproxyObject?
Is there a way to return to where you were after using the Open Declaration F3? In studio you could use ctrl-shift-G to open the declaration and ctrl-alt-G to return.
Hello.
For debugging purposes I sometimes need to display stack information to the current device or save it (to a global for example).
There is this snippet offered in documentation:
ClassMethod StackToDisplay()
{
For loop = 0:1:$Stack(-1) {
Write !, "Context level:", loop, ?25, "Context type: ", $Stack(loop)
Write !, ?5, "Current place: ", $Stack(loop, "PLACE")
Write !, ?5, "Current source: ", $Stack(loop, "MCODE")
Write !
}
}The attached file contains two $system.Event examples that processes work asynchronously using persistent queues:
- Events_Simple.prj.xml
- Events_PubSub.prj.xml - updated this example has been published on https://github.com/intersystems-ib/cache-iat-pubsub
Events_Simple
This is a very basic example that creates some worker processes and then enqueue messages to them using $system.Event.
; create shared resource, create worker jobs.USER>do ##class(IAT.S04.Event.Test).Setup()
Classes:
- Manager - methods to create shared resources and workers as well as to enqueue messages to workers.
I am pleased to announce the field test of Caché and Ensemble 2016.2 - an exciting new release with improvements on many different fronts.
The entire product team at InterSystems looks forward to your participation in the field test and feedback over the coming months.
Some of the more profound changes in 2016.2 include:
- Atelier - the new multi-platform IDE for Caché, Ensemble and HealthShare.
Hi -
I was looking at the “Purge Data Management” page, and one of the “Record Types” is the “I/O Log” which sometimes doesn’t clear when you purge all of the message.
But I’m not sure what it’s actually reporting as “I/O Log” messages (and I can’t find anyplace to view what is being considered I/O Logged Messages - so I can understand what’s happening)
Can anyone shed some light on these messages?
Hello,
I am experimenting with the iKnow Domain Architect in the 2016.2 field test.
I would like to know if it is possible to load metadata from text files. This was possible in previous versions, using the Loading Wizard.
I have checked the documentation and I do not see any explanation for loading metadata held in text files. Thank you!
Hello!
We use iKnow's GetSimilar for decision making. Right now we have a domain with both good and bad documents and using GetSimilar we want to see if a document is more similar to the good ones or the bad ones. To do this we simply compare the weighted average of the score from the good ones and the bad ones that GetSimilar returns.
The problem is that GetSimilar doesn't always return the score to all other documents. Assuming we have 50 documents I would expect the following result:
DO ##class(%iKnow.Queries.SourceAPI).GetSimilar(.sim,domId,id,1,200,"",$$$SIMSRCSIMPLE, $LB("ent"))
If you are waiting for the Kindle Edition of Caché and MUMPS – Part II, I must apologize. I believed what others told me that once I have a book manuscript, the Kindle manuscript will be easy. Being a programmer I should have remembered: "never assume anything." The conversion to Kindle is proving a much bigger task than I thought. But don't lose heart, I am working full time on it. I have as my goal before May 1st. But, then again, you know what they say about goals. ;) - - Paul Mike Kadow
Hi Community: I have a legacy Caché based app that has Zlogin or %Zlogin routine. I understand that such routine will be invoked as soon as the user logs in. Can someone tell me where to find such routine? The namespace where the user connects to? Or in CACHESYS? Thanks, HT
In Atelier when resolving conflicts with the server the screen shows the Local copy and Server copy and the differences, but depending on where the difference is you cannot tell what what the document is, you need to scroll to the top to see what it is before deciding what to do. It should indicate the class or routine name beside "Conflicting Server documents"
I believe the I have followed the instructions to attach a document to the body of a post request but nothing is being sent out in the files{} port of the request. I can either get the stream in "data", not visible at all, or visible but no form data. Any help would be appreciated, below is what I have:
ClassMethod SendFax(phone As %
{
Set req = ##class(%Net.HttpRequest).%New
//test server
Set req.Server = "httpbin.org"
Set req.SSLConfiguration = "CardChoice"
Do req.InsertFormData("
At the end of this year support for OpenSSL 1.0.1 will end. InterSystems has started the process to move to OpenSSL 1.0.2 and use the 1/28/2016 release (1.0.2f) for verification and product inclusion. I will update this post once InterSystems decided which versions will receive support for OpenSSL 1.0.2.
Stream datatypes are not displayed when you execute SQL (in SMP for example).
Please consider these two concepts:
Concept 1 - Web Service or Web Application or Server Side
Concept 2 - Client Service or Client Application or Client Side
Maybe I am just a Web/Zen newbie, if I am and you all understand this, I apologize. (no nasty remarks please)
The questions are numbered, if you wish to respond to an individual question please precede it by the question number.
- Is there consistency in naming these concepts?
- Are CSP, Caché Server Pages used for the Web Server Side only? Or both sides?
We need to add some stored data to an ACK message being sent back to the originating system. I have been looking at how to adapt the standard "EnsLib.HL7.MsgRouter.RoutingEngine" to do this as I cannot see any obvious way. Any suggestion?
Version: 1.0.123
Cache for UNIX (Apple Mac OS X for x86-64) 2016.2 (Build 619U) Thu Mar 17 2016
After deleting a class on the server, Atelier still wants to believe it exists. I even deleted the project and the server. After re-creating them, it still believes the class exists. I log in with studio and it shows the class has been removed.
If I attempt to open the class in the server explorer, I get a null pointer exception, but I can open any other class.
Any thoughts would be appreciated.
Whichever way you want to look at it, their numbers are impressive... growing revenue year-on-year of 69% is amazing... and now they are opening DCs in Canada and India...
http://cloud-computing-today.com/2016/01/29/1074342/
--
Do you use any public cloud? Any private one?
An XML-enabled class has an XMLExport() method that knows how to serialize an instance to XML. To export all instances of a class to a file, I need to instantiate a writer and loop through the extent. Is there no class method like XMLExportToFile() that does this in one go?
I am trying to debug a class on Atelier and it is not stopping at the defined breakpoint.
Atelier IDE Version: 1.0.107 - Cloud Connection
I have already taken a look at the Community´s Atelier Debugging Video and followed the steps without success.
Can anybody help me on that?
Tks.
I am happy to announce the immediate availability of Caché and Ensemble 2016.1.
The highlights of 2016.1 are
- Significant improvements in JSON support
- Continued advances in SQL performance
- Database scalability improvements
- New REST services for DeepSee
These and other new features are summarized in this video introduction to 2016.1
For complete technical details of what’s changed in 2016.1, review the Caché release notes and the Ensemble release notes.
Straight-forward way to do it is well known and looks like this:
------------------------------------------------------------ sample #1 --------
echo "Try to freeze Cache instance $instance"
rm -f $mydir/db_temp
csession $instance -U%SYS << EOF >/dev/null
zn "%SYS"
set rc=##Class(Backup.General).ExternalFreeze()
set fn="$mydir/db_temp"
o fn:("WNS"):1 if \$t u fn w rc c fn
h
EOF
read rc < db_temp
if [ "$rc" = "1" ]
then
echo ".
Introduction - Analyzing Textual Big Data
Big Data for Enriching Analytical Capabilities - Big data is revolutionizing the world of business intelligence and analytics. Gartner predicts that big data will drive $232 billion in spending through 2016, Wikibon claims that by 2017 big data revenue will have grown to $47.8 billion, and McKinsey Global Institute indicates that big data has the potential to increase the value of the US health care industry by $300 billion and to increase the industry value of Europe's public sector administration by Ä250 billion.
I have a %Net.Request object and I want to get a full URL of the request sent (preferably after all redirects, but even full initial one would be good). For example, I have the following method:

