Heloisa Paiva · Sep 20, 2022 go to post

You will wanna follow this steps for what i think it's the easiest and securest way for that:

  • Export everything in a project to an XML
  • Open the file in a notepad or anything similar
  • Open the "Find and Replace" menu - on Windows you use Ctrl+H for that
  • On "Find" you type the current name and on "Replace" the new one, for each class
  • Import again this new document and delete the remaining classes with the old names
Heloisa Paiva · Sep 20, 2022 go to post

There is an easy way to do it on Notepad++

  • Open the file with the classes on Notepad++
  • Open the Find and Replace menu (with Ctrl+H or selecting it on the tools bar)
  • Type this on the Find text box: (?s)(?=<Storage)(.+?)(?=</Storage)
  • On the "Search mode" box, you will want to select "Regular expression"
  • Then you can click on Find Next to see if it's selecting everything you want, or, if you're confindent, go straight to the "Replace All" button!

PS.: you might have to use the replace tool to replace the </Storage> part that's left, but it's pretty much the same steps.

PPS.: yes you can leave the Replace text box empty!

Here's the explanation for the expression on a similar situation: https://community.notepad-plus-plus.org/topic/21308/how-to-find-and-sel…

Heloisa Paiva · Jan 24, 2023 go to post

Hi! I had already joined the community when I entered the global masters. Will my previous contributions be considered? 
Thanks!

Heloisa Paiva · Feb 17, 2023 go to post

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.

Heloisa Paiva · Mar 2, 2023 go to post

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 

Heloisa Paiva · Mar 2, 2023 go to post

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.

Heloisa Paiva · Apr 19, 2023 go to post

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! 

Heloisa Paiva · Apr 19, 2023 go to post

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
Heloisa Paiva · Aug 2, 2023 go to post
ClassMethod IsValid(sAs%String) As%Boolean
{
 f{s a=s,s=$change($zstrip(s,"*E",,"()"),"()",1) ret:a=ss=""}
}
Heloisa Paiva · Aug 3, 2023 go to post

I just saw your nested $TR approach in an earlier comment. Very creative, I liked it! I guess together we made it to 61ch?

Heloisa Paiva · Aug 4, 2023 go to post

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

Heloisa Paiva · Aug 4, 2023 go to post

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?

Heloisa Paiva · Aug 7, 2023 go to post

Oh I see... I'm still studying the case, but here is an idea:

Instead of having the client access directly the /login, you can put a layer between them. The client access your layer, that forwards the request to the /login, receives the response but only sends it after the 2FA. Does it work for you?

Also, idk if you have checked it out already, but this link might help: 
https://docs.intersystems.com/iris20232/csp/docbook/DocBook.UI.Page.cls…

Heloisa Paiva · Aug 10, 2023 go to post

Great to hear that! I hope it works out. Feel free to contact me if you have any problems so I can try to help you.

Heloisa Paiva · Aug 21, 2023 go to post

I like to start by planning. The following questions usually lead me to a nice place:

- Where do I wanna go with this knowledge? (E.g. 1: I want to learn Django to build a management portal for dealing with data sizes. E.g. 2: all I want is to get to know it better so I can decide whether it is the best Framework for my needs)

- Considering the last question, where can I search for what I need? (E.g. 1: If I'm a visual learner I can search on YouTube for a quickstart tutorial, or for a step-by-step on a similar development. If I learn by practicing, I can follow the official documentation tutorial or find a similar approach on GitHub. E.g. 2: I can read a review, scan the documentation, watch videos, or listen to podcasts, depending on which is better for me to fit into my routine and absorb the concepts)

- Last but not least, how can I fit the study into my routine? Do I prefer to spend a few hours on the weekend, or a few minutes every day? If I have a long time to dedicate, I might be interested in reading more and watching large approach tutorials before I get my hands dirty. Else, if I only have a few minutes, It doesn't make sense for me to watch a whole video without putting it into practice, because the next day I won't remember important details about the implementation. Instead, I ought to choose a step-by-step quickstart tutorial, so I can advance a few steps every day. Once I finish it, I can divide my final objective into tiny tasks, which I can solve individually.

Heloisa Paiva · Aug 28, 2023 go to post

Thank you very much! I hope my idea can help contribute somehow to healthier energy consumption soon!

Heloisa Paiva · Sep 5, 2023 go to post

Thank you very much, it's great to hear that! If you would like to see any other topics written here please tell me about it!