Evgeny Shvarov · Apr 4, 2017 go to post

Hi, Alexandr!

If you mean "System" as starting with "%" you can use the following:

SET NAME="" F  SET NAME=$ORDER(^$GLOBAL(NAME)) QUIT:NAME=""  DO:($E(Name)'="%") 

Evgeny Shvarov · Apr 2, 2017 go to post

Thanks, Kyle! 

Speaking of assumptions, should I filter the mapped classes as well?

Evgeny Shvarov · Apr 1, 2017 go to post

Finally, have the following for globals export/import in gzip:

// export gbl
set gbl="foo*D.GBL,boo*D.GBL"
set s=##class(%Stream.FileBinaryGzip).%New() do s.LinkToFile("1.xml.gz") do $System.OBJ.ExportToStream(gbl,s) do s.%Save() kill s
// gbl import
set s=##class(%Stream.FileBinaryGzip).%New() do s.LinkToFile("1.xml.gz") do $System.OBJ.LoadStream(s) kill s

Evgeny Shvarov · Apr 1, 2017 go to post

 

kill ^dbg

BTW, kill ^dbg is not mandatory here, cause import from XML format everytime kills the global first.

Evgeny Shvarov · Apr 1, 2017 go to post

Thanks, Sean, Ed, Alexey!

That works perfectly! Ed, please add a dot to s in ExportToStream?

I'm using it in one line, and think would add in some "Dev.Utils" class to make it shorter.

Evgeny Shvarov · Mar 31, 2017 go to post

If you have only classes and globals you can use

do $System.OBJ.Export("Package*.CLS,*.DFI","release.xml")

to export the classes and DFIs to file,

Do $System.OBJ.Export("Class*D.GBL","globals.xml")

to export globals to file in the /mgr folder of your namespace.

And use Class Import page of the Control Panel (http://yourhost:57772/csp/sys/exp/%25CSP.UI.Portal.ClassList.zen) to import classes or globals:

Or call in terminal:

$system.OBJ.Load(path to a file.xml) 

As Benjamin mentioned before.

Evgeny Shvarov · Mar 30, 2017 go to post

Rob!

Thanks for posting this!

Do you want to add some InterSystems related topics to your GitHub repository to make it more visible?

I shared some ideas for the topics in this post.

Evgeny Shvarov · Mar 30, 2017 go to post

Or maybe you can introduce a cube dimension with a ranged expression for the property of balance and range all the patients to these groups.

See examples in Samples PatientsCube for patients ranged similarly by their age.

Evgeny Shvarov · Mar 29, 2017 go to post

BTW, I think competition is always a win-win for both competitors. So I would support if we have strong alternative google-group community and stackoverflow as well. 

Google-group is still more convenient in email interface and works faster, I hope we'll fix that in "some future release".

Evgeny Shvarov · Mar 29, 2017 go to post

I think you meant to write that you changed the group and tag from Caché to Developer Community

Yes, you are right!

Evgeny Shvarov · Mar 29, 2017 go to post

Let me be crystal clear and honest - this is horrible

In Russia, we say "Критикуя, предлагай!".  What is your better syntax sugar example? ;)

Though I agreed that closures in COS would add some better practices in coding for Caché.

Evgeny Shvarov · Mar 28, 2017 go to post

No. We should try and shut down the google groups, or at least make them read-only.

We are not managing this particular google group.

Evgeny Shvarov · Mar 28, 2017 go to post

Lol )

I would suggest also another way "to be in touch" - visit InterSystems Global Summits, e.g. the next one which will take place on September 2017. We have a really good crowd of tough engineers there every year.

Evgeny Shvarov · Mar 28, 2017 go to post

One baked in language feature that would be nice is a real return statement (still wishing).

There is 'return'  statement in COS. Or is it not real?

Evgeny Shvarov · Mar 28, 2017 go to post

HI, Sean! It is really great except with 'dot syntax'. Is it mandatory?

I wouldn't promote 'dot syntax' though it looks elegant here.

Evgeny Shvarov · Mar 28, 2017 go to post

Updated the article according to new notification types and changes in the Developer Community notification system.