go to post Heloisa Paiva · Aug 4, 2023 It seems to me that you can achieve that by adding a business process that receives the login attempt, calls a business operation requesting for the 2FA, and waits for its response. Once it gets it correctly, the BP can return the token.Does that help or you need something more specific?
go to post Heloisa Paiva · Aug 4, 2023 If I understood you correctly, you are looking for the <sync> element If it's not that, you can have a loop with <until> and set an expression to evaluate true once the message is available
go to post Heloisa Paiva · Aug 3, 2023 I just saw your nested $TR approach in an earlier comment. Very creative, I liked it! I guess together we made it to 61ch?
go to post Heloisa Paiva · Aug 2, 2023 ClassMethod IsValid(s As %String) As %Boolean { f{s a=s,s=$change($zstrip(s,"*E",,"()"),"()",1) ret:a=s s=""} }
go to post Heloisa Paiva · Jun 7, 2023 I believe this is what you're looking for: https://openexchange.intersystems.com/package/zpm-registry
go to post Heloisa Paiva · May 24, 2023 Thank you for the support, @Evgeny Shvarov ! And thanks @Guillaume Rongier too for such a great app!
go to post Heloisa Paiva · May 24, 2023 Great to hear that, @Marcelo Witt ! Thank you for the support, I'm happy to be of any help!
go to post Heloisa Paiva · Apr 19, 2023 PS.: it also works if you concatenate strings: write "my string"_stringVariable_"continue string" In the first case you would be calling the "WRITE" method 3 times, once for each string divided by ",", and in the second you would be calling "WRITE" once with only one string that is a copy of the 3 strings combined together. You could also use concatenating to set a new variable: Set stringVariable = " | " Set stringsCombined = "my string"_stringVariable_"continue the string" And then you can work with this new variable.I.E. if you called WRITE stringsCombined, you would have as an output: my string | continue the string
go to post Heloisa Paiva · Apr 19, 2023 Hi Kurro!I like using this feature of COS: write "my string", stringVariable, "continue the string" it works fine for the WRITE calls, but if you need the string formatting in any other cases please specify them so we can find an easy way to do it!
go to post Heloisa Paiva · Mar 2, 2023 Me too! I feel that some configurations such as where to store globals and routines, and mapping with other namespaces are more "user friendly" in the Management Portal, but when creating samples those things aren't really something to worry about or to spend time on.
go to post Heloisa Paiva · Mar 2, 2023 Hi @Evgeny Shvarov!Thank you!I've changed the second title to Create Table! Thank you for the feedback! I made a little confusion because I was deciding if I would use the first title as create database or create namespace and I ended up leaving both of them and deleting the "Create Table" haha
go to post Heloisa Paiva · Feb 17, 2023 @Michael Davidovich Check out my recent post about this: https://community.intersystems.com/post/returning-values-pythonIf it doesn't answer you properly, feel free to contact me
go to post Heloisa Paiva · Feb 17, 2023 Hi @Michael Davidovich ! Thank you for the feedback. Now, let's take a look at those questions: 1- Does embedded Python support return values?For a short answer, yes it does. But as there are many ways to access python, there are many ways I can answer that. In fact I found it a very interesting topic to discuss and I'm working on a new article so I can cover more cases, but just to give it a taste, if you're using in IRIS a ClassMethod [ Language = python ] you can use "return ..." to finish the method and return a value, as you would after declaring a function in python.2- Also, is there a well documented source for the iris Python package? The documented source is Native SDK for Python Quick Reference. Now, if it is "well documented" you'll have to answer for yourself hahaha, but I'm working on getting more information and examples here. From what I've learned so far, the package has ways to connect from your python environment to IRIS, in such a way that you can access any methods you've created on IRIS, so I see it as a door to everything in IRIS.
go to post Heloisa Paiva · Jan 24, 2023 Hi! I had already joined the community when I entered the global masters. Will my previous contributions be considered? Thanks!