Evgeny Shvarov · Apr 18, 2017 go to post

Lint can be time-consuming for sure. But it can be called not with every compile but e.g. before every commit.

Evgeny Shvarov · Apr 14, 2017 go to post

An external tool could parse the code during the night and tell some complex statistics but simple things must tell compiler

@Dmitry Maslennikov mentioned that guys have simple linter addon to the Studio which does the job within compilation.

Evgeny Shvarov · Apr 12, 2017 go to post

Hi, Sean!

Thanks for the great review! Yes, share please, your unit-test framework!

Evgeny Shvarov · Apr 12, 2017 go to post

Dear, Sansa! 

Thank you for your great activity!

Would you please consider posting meaningful names for the questions? I mean this one and another your question.

That would be helpful not only for you but for all other Developer Community members too.

For this one, I think "Caché class compilation error" would be much better than "Caché Error"

For another,  "Error while opening the Caché class instance" instead of "Erroe".

I would appreciate that!

And would you please mark the John's answer as accepted?

Thank you in advance!

Evgeny Shvarov, InterSystems Community Manager.

Evgeny Shvarov · Apr 10, 2017 go to post

Yes, you are right, that was the issue!

I introduced another hierarchy without the week level and now it works fine!

Thank you, Alessandro!

Evgeny Shvarov · Apr 10, 2017 go to post

Hi, Alessandro!

I did that. CurrentMember works fine:

 

But if I add Lastchild it shows nothing. 

I believe it is the matter of the version. My $zv shows  2016.2 (Build 627U).

I'll update Caché to the latest release and will try it again. Thanks!

Evgeny Shvarov · Apr 9, 2017 go to post

Hi, Alessandro!

Let me simplify the question reducing the results as possible:

For this month MDX query:

SELECT NON EMPTY [Measures].[Amount Sold] ON 0,NON EMPTY [DateOfSale].[Actual].[MonthSold].&[201101] ON 1 FROM [HOLEFOODS]

I have:

 

 

But I want to see not 11,568.43, but the revenue got in the last day sale of January, like what I have for a day query:

SELECT NON EMPTY [Measures].[Amount Sold] ON 0,NON EMPTY [DateOfSale].[Actual].[DaySold].&[62122] ON 1 FROM [HOLEFOODS]

 

So I need the last available values for days but in a scope of months. Is it clearer now?

If you ask me why do I need that, it's much more evident with the example of stocks trading.

Consider you have a database of transactions of stocks trading for every day and you want to show in DeepSee the history of the price for some share the months' scale.

You would definitely want to use for the value of the price of the month the price of the last trading day of the month. Makes sense?

How to manage this in DeepSee? So I tried to put it in the scope of HoleFoods.

Evgeny Shvarov · Apr 7, 2017 go to post

Hi, Fab!

Speaking about the low number: do you have any idea of how high/low is the number?

I can name 100+ addons in my scope. It is low number, but I'm quite sure it's not all the available modules.

Evgeny Shvarov · Apr 6, 2017 go to post

Hi, John!

It's a kind of manual pool of Top stories which we fill from time to time with articles valuable for us.

Drupal engine rotates it via some algorithm.

Evgeny Shvarov · Apr 6, 2017 go to post

Hi, Alessandro!

I tried that, it shows no value in my Analyzer. Version 2016.2

 

 

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.