Here is the related video from Global Summit 2016
- Log in to post comments
Here is the related video from Global Summit 2016
Lint can be time-consuming for sure. But it can be called not with every compile but e.g. before every commit.
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.
Thanks, Sean!
Have you seen the CachéQuality linter?
Hi, Sean!
Thanks for the great review! Yes, share please, your unit-test framework!
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.
That looks like a very good enhancement request for CSP.
Thanks, Sean!
The question was how to make it programmatically (via Caché ObjectScript).
Yes, you are right, that was the issue!
I introduced another hierarchy without the week level and now it works fine!
Thank you, Alessandro!
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!
The bug is fixed. Analytics site is available for everyone now.
This is fixed, thank you John!
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.
This is fixed with the recent Analytics update.

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.
The blank scores in a widget - it's a bug, no doubts. Thanks!
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.
Hi, Alessandro!
I tried that, it shows no value in my Analyzer. Version 2016.2
Hi, Deitmar! You are invited!
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)'="%")
Yes, it's a bug, John, thanks!
Filed and would be fixed soon!
Hi, Jack!
You are invited!
Hi, Amir! You are invited!
Hi, Scott! You are invited!
Hi, Chris! You are invited!
Thanks, Kyle!
Speaking of assumptions, should I filter the mapped classes as well?
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
You are right, no dot is needed here.
kill ^dbg
BTW, kill ^dbg is not mandatory here, cause import from XML format everytime kills the global first.