go to post Evgeny Shvarov · Sep 2, 2019 Cool. And what is better with while $listnext from the performance point of view - local variable or refer to a parameter every time?
go to post Evgeny Shvarov · Sep 2, 2019 Thank you, @Eduard Lebedyuk and @Alexander Koblov! I agree, $lb variant is much better here.
go to post Evgeny Shvarov · Sep 2, 2019 Very rich library and awesome package structure and ObjectScript styling. Perfect work, thank you Richard!
go to post Evgeny Shvarov · Aug 31, 2019 Hi Ed!Does RestForms leverage %JSON.Adapter functionality to expose classes data to REST via JSON?
go to post Evgeny Shvarov · Aug 29, 2019 Mine is faster ;) ClassMethod RussianToEnglish(russian = "привет") As %String { set rus="абвгдезийклмнопрстуфхыэАБВГДЕЗИЙКЛМНОПРСТУФХЫЭьЬъЪ" set eng="abvgdeziyklmnoprstufhyeABVGDEZIYKLMNOPRSTUFHYE" set rus("ж")="zh" set rus("ц")="ts" set rus("ч")="ch" set rus("ш")="sh" set rus("щ")="shch" set rus("ю")="yu" set rus("я")="ya" set rus("Ж")="Zh" set rus("Ц")="Ts" set rus("Ч")="Ch" set rus("Ш")="Sh" set rus("Щ")="Shch" set rus("Ю")="Yu" set rus("Я")="Ya" set english=$tr(russian,rus,eng) set wow=$O(rus("")) while wow'="" { set english=$Replace(english,wow,rus(wow)) set wow=$O(rus(wow)) } return english } USER>w ##class(Example.ObjectScript).RussianToEnglish("Я вас любил: любовь еще, быть может, В душе моей угасла не совсем;"))Ya vas lyubil: lyubov eshche, byt mozhet, V dushe moey ugasla ne sovsem;USER>
go to post Evgeny Shvarov · Aug 29, 2019 Hi Vivek!If you want to check for all the required fields instead of checking it on %Save, you better scan the class before %Save on the properties with required flag and check whether you have the value for it.IMHO, this is the only way to show all the required fields at once.
go to post Evgeny Shvarov · Aug 29, 2019 And!It worth to mention, that credit in development goes to:@Timur Safin @Timothy Leavitt @Dmitry Maslennikov Thank you very much, guys! I hope the list of contributors will be much longer soon!
go to post Evgeny Shvarov · Aug 29, 2019 1 - Is there any plans to automatize the module.xml generation by using something like a Wizard?Submit an issue? More over, craft a module which supports that! And PR - it's a Community Package manager.3 - Is it possible to run pre/post-install scripts as well? Kind of what installer classes do.I think, this already in place. @Dmitry Maslennikov who contributed a lot will comment.4 - Is also possible to use the module.xmlto provide a contextual root?We maybe can use the code! Thanks! @Dmitry Maslennikov ?
go to post Evgeny Shvarov · Aug 29, 2019 Hi Vandrei!Als check the video on how to start coding InterSystems Object Script with GitHub and VSCode on IRIS Community Edition. Takes 5 min.
go to post Evgeny Shvarov · Aug 29, 2019 Julian, you are welcome!There is a lot of other good stuff on InterSystems Open Exchange made by this community developers.
go to post Evgeny Shvarov · Aug 29, 2019 Thanks @Julian.Matthews !Also just to add - this situation could be reproduced in a real-world too: this is a Web Terminal made by @Nikita Savchenko , which is quite installable into any IRIS, Caché, Ensemble, etc.
go to post Evgeny Shvarov · Aug 28, 2019 Hi Dmitry!So the new release on VSCode on Open Exchange.It says - there is a debugger now.How to introduce a breakpoint?
go to post Evgeny Shvarov · Aug 27, 2019 Hi Salma!isc dev is a community project. So you either can submit an issue or/and contribute the desired functionality by yourself and PR it to the repo.
go to post Evgeny Shvarov · Aug 27, 2019 Perfect!So, what is the setting of this parameter to export classes into:/src/clsfolder?
go to post Evgeny Shvarov · Aug 27, 2019 Sorry Vivek. My code provides you the Id of objExternalUser you save (possible create) above. It's 1).It's not the latest inserted record. I thought you need:I need RowId of inserted record.Out of curiosity: why do you need the latest record?
go to post Evgeny Shvarov · Aug 27, 2019 Hi Vivek!Instead of &sql ... you can do: write objExternalUser.%Id()
go to post Evgeny Shvarov · Aug 27, 2019 I agree. I don't know the reasons which caused to limit the MAXLEN to 50 characters... It steals months (if not more) of developers time to find out what was the bug and why this doesn't work because of MAXLEN=50;