go to post Evgeny Shvarov · Aug 19, 2019 Hi Salma!If you import this file from this Open Exchange project it can do the export classes in folders:Once imported call this to setup a folder: USER>do ##class(dev.code).workdir("my/workdir/src") Call this to export all classes, macro, deepsee resources in a given workdir. USER> do ##class(dev.code).export() You also can import the whole package too. HTH
go to post Evgeny Shvarov · Aug 18, 2019 Global name is in the var already. Here is the code I needed it for: ClassMethod InvertList(from, to) As %Status { set iter=$o(@from@("")) while iter'="" { set value=@from@(iter) set @to@(value)=iter set iter=$O(@from@(iter)) } }
go to post Evgeny Shvarov · Aug 18, 2019 Says #1038: Private variable not allowed : 'gniter=$na(from)' : Offset:21 [zInvertList+1^Example.Globals.1] for ClassMethod InvertList(from, to) As %Status { #define ForAll(%in,%gn) s gn%in=$na(%gn) s %in="" f { s %in=$o(@gn%in@(%in)) q:%in="" #define EndFor } $$$ForAll(iter,from) set value=@from@(iter) set @to@(value)=iter $$$EndFor }
go to post Evgeny Shvarov · Aug 18, 2019 Maks, thanks for that project!Do you want to add a sort of "For Each" for a global?Suppose a have a global ^A(index)=valueAnd I need to go through all the indexes to do something with the value. Currently, I do the following in Objectscript to perform this: s iter=$Order(^A("")) while iter'="" { set value=^A(iter) /// do something with value set iter=$O(^A(iter)) } Would be great to change this to something like that: zforeach(iter,^A) { set value=^A(iter) /// do something with value }
go to post Evgeny Shvarov · Aug 15, 2019 Hi Kevin!Thanks for the feedback!This is a good point. Submitted an issue. If this describes the problem right?
go to post Evgeny Shvarov · Aug 14, 2019 Updated the ObjectScript code blocks in your post a bit. And don't see any DeepSee cubes here - is this DeepSee related?
go to post Evgeny Shvarov · Aug 7, 2019 Would be great - it’s even more presence and developers can collaborate
go to post Evgeny Shvarov · Aug 7, 2019 Thanks, @Steve Wilson!Yes, we plan to turn off the attachments feature. As you mention there are a lot of better ways to expose presentation and code.And as you see @Sourabh Sethi posted the recent package for his recent video on Open Exchange.
go to post Evgeny Shvarov · Aug 7, 2019 Hi Juha! Thanks for the question! What are the issues do you face with API Management with container?
go to post Evgeny Shvarov · Aug 6, 2019 Hi @Victor Ferreira!It's not an answer to your question but just a notice that we also have a Spanish community too. So you are able to click on ES switcher(right top corner of the question) of your question and you'll be able to introduce the linked question in Spanish too.
go to post Evgeny Shvarov · Aug 3, 2019 Sean, I cannot promise collaboration) But happy to test and submit issues if any )
go to post Evgeny Shvarov · Aug 3, 2019 Have this Docker extension but didn't know the feature. VSCode Tasks are interesting too. Cool stuff thanks.
go to post Evgeny Shvarov · Aug 3, 2019 Hi Sean!Is it possible to serialize global to JSON and export into a file with Cogs?and vice-versa - import JSON to a global?
go to post Evgeny Shvarov · Jul 31, 2019 Wow. I think even our Chinese colleagues will not help to read this)
go to post Evgeny Shvarov · Jul 31, 2019 My one) ClassMethod FizzBuzz() { f i=1:1:100 { s k=i f a=3,5,15 s:'(i#a) k=$CASE(a,3:"Fizz",5:"Buzz",:"FizzBuzz") w k,! } }
go to post Evgeny Shvarov · Jul 30, 2019 Joao!If you speak Spanish you can try to make an announcement on Spanish Developers Community as well.