Peter Steiwer · Sep 19, 2019 go to post

Hi Lawrence,

This value does default to 2. If you see this value continuously defaulting to 0, please let us know and we can look into it.

Peter

Peter Steiwer · Nov 20, 2019 go to post

I get an error when I try to post a race car emoji, so just image this comment is just a race car emoji

Peter Steiwer · Nov 28, 2019 go to post

What characters are you seeing in parameters that you don't want to be there? How are the corresponding parameters defined?

Peter Steiwer · Dec 11, 2019 go to post

By the way, after running the populate method, the test method outputs the following:

SAMPLES>do ##class(DCSolutions.TwoWayJSONAdaptor.TeacherStudent).Test()
{"Name":"Peter","Teachers":[{"ID":1,"Teacher":{"Name":"Teacher1Name"}},{"ID":2,"Teacher":{"Name":"Teacher2Name"}}]}
{"Name":"Nael","Teachers":[{"ID":3,"Teacher":{"Name":"Teacher1Name"}},{"ID":4,"Teacher":{"Name":"Teacher3Name"}}]}
{"Name":"Teacher1Name","Students":[{"ID":1,"Student":{"Name":"Peter"}},{"ID":3,"Student":{"Name":"Nael"}}]}
{"Name":"Teacher2Name","Students":[{"ID":2,"Student":{"Name":"Peter"}}]}
{"Name":"Teacher3Name","Students":[{"ID":4,"Student":{"Name":"Nael"}}]}
Peter Steiwer · Dec 16, 2019 go to post

Ha, I was planning on making a post tomorrow asking what this was called and how to find more information about it:

Thanks for the information!

Peter Steiwer · Dec 30, 2019 go to post

Hi @Evgeny Shvarov 
 

In Step "2. Install Package Manager client", it says to run the following code:

Do $System.OBJ.Load("/yourpath/zpm.xml")  

It also needs to be compiled and should probably be:

Do $System.OBJ.Load("/yourpath/zpm.xml","ck")
Peter Steiwer · Dec 30, 2019 go to post

@Kejia Lin 
This appears to be a reward on Global Masters. You can also find a quick link at the light blue bar on the top of this page. Once you join Global Masters you can get points for interacting with the community and ultimately use these points to claim rewards, such as the one mentioned here.

Peter Steiwer · Dec 31, 2019 go to post

Have you checked the error codes? Is the file being created?

Set file=##class(%Stream.FileBinary).%New()
Set sc=file.LinkToFile(path)
w $system.Status.GetErrorText(sc)
set sc=file.Write(decode)
w $system.Status.GetErrorText(sc)
Peter Steiwer · Dec 31, 2019 go to post

Are you testing this through terminal or your web API? If you are testing through your web API you will need to log the status codes instead of writing them

Peter Steiwer · Dec 31, 2019 go to post

Also, I am not sure what the rest of the code looks like, but it will also need to be saved:

set sc=file.%Save()
Peter Steiwer · Jan 1, 2020 go to post

You can just check $$$ISERR(sc) directly here, you do not need to run it through $system.Status.GetErrorText(sc)  first.

$$$ISERR(status) will compile into ('status). In the case where sc=1, status will become = "". This means that 'status will evaluate to true when sc=1, which means it will think there is an error when there is not.

USER>set sc=1
 
USER>set status=$system.Status.GetErrorText(sc)
 
USER>zw sc
sc=1
 
USER>zw status
status=""
 
USER>w ('status)
1
USER>w ('sc)
0
Peter Steiwer · Jan 2, 2020 go to post

How can I browse files on the server? My ObjectScript explorer is empty when I open VSCode. I configured my settings properly and it says I am connected

Peter Steiwer · Jan 6, 2020 go to post

It is worth noting that with Atelier, APIs were created to automatically store the classes on the file system. I believe these APIs are used by VSCode's ObjectScript integration also

Peter Steiwer · Jan 12, 2020 go to post

Hi @Evgeny Shvarov

AnalyzeThis.Utils.cls has a method called RefreshCube.

At one point, this was briefly in then UI. We took out the UI reference since we weren't (and still aren't) sure how this should fit into AnalyzeThis. Historically the goal was to be able to quickly get a personalized preview of DeepSee. It was not intended to be an automatic cube generator. The goal was to let people see the benefit of DeepSee, but then allow them to create their own cube and no longer rely on the generated cube from AnalyzeThis. However, I do know of multiple cases where people are using it as you explain in this case and would like to refresh the data once a new CSV has been produced with updated data.

Please let me know your thoughts on the Pros vs Cons of using the AnalyzeThis generated cube VS using your own cube once you have a model you like and would like to continue using.

Peter Steiwer · Jan 21, 2020 go to post

Yes, I agree that the article you reference is also helpful. I wrote this article as a guide for someone who is receiving the error message without knowing why this is caused. The other article is perhaps better for someone who knows what is wrong but does not know how to fix it.

Peter Steiwer · Jan 21, 2020 go to post

Also, it looks like your calculated measure name is the same as your built in measure name. This means you should change to be something like the following:
WITH MEMBER [Measures].[CondicionesContCompleta]   ->
WITH MEMBER [Measures].[CondicionesContCompletaCalc]  

Peter Steiwer · Jan 23, 2020 go to post

Hi Eduard,

Please note that the output is hardcoded, so your output for "Time for ElseIf #2" is actually for your If statement

Peter Steiwer · Jan 23, 2020 go to post

Hi @Vitaliy Serdtsev,

Try with larger numbers. With the smaller numbers, there will be slight variations which can flip the order.

With 1e9:

Time for If: 28.111261 seconds
Time for ElseIf #1: 38.782421 seconds
Time for ElseIf #2: 49.21395 seconds
Time for Else: 48.58113 seconds

Peter Steiwer · Jan 23, 2020 go to post

Also for your test, the same with my note for Eduard -  the output is hardcoded, so the first output line is for i=1, the second is for i=2, the third for i=3, the last for i=4

Peter Steiwer · Jan 23, 2020 go to post

Are you still able to type?

Is it just Ctrl+C -> Ctrl+V that doesn't work?

Can you right click and use Copy and Paste?

When you use Copy, can you Paste to something that isn't Studio?