Hi! Which one? I can try and post it again here
- Log in to post comments
Hi! Which one? I can try and post it again here
Also, if it helps, every picture was a printscreen of this code https://github.com/heloisatambara/InterSystems-study/blob/main/Demo.Boo…
You will wanna follow this steps for what i think it's the easiest and securest way for that:
There is an easy way to do it on Notepad++
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…
Hi! I had already joined the community when I entered the global masters. Will my previous contributions be considered?
Thanks!
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.
@Michael Davidovich
Check out my recent post about this: https://community.intersystems.com/post/returning-values-python
If it doesn't answer you properly, feel free to contact me
Thanks for the support!
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
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.
Thank you for the application! I hope the posts helps
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!
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 stringThank you, @Muhammad Waseem!
Thank you, @Vadim Aniskin! The support means a lot!
Great to hear that, @Marcelo Witt ! Thank you for the support, I'm happy to be of any help!
Thank you for the support, @Evgeny Shvarov ! And thanks @Guillaume Rongier too for such a great app!
I believe this is what you're looking for: https://openexchange.intersystems.com/package/zpm-registry
Hey, that's awesome to hear! Thank you!
Thank you! This helps me keep writing!
ClassMethod IsValid(sAs%String) As%Boolean
{
f{s a=s,s=$change($zstrip(s,"*E",,"()"),"()",1) ret:a=ss=""}
}I just saw your nested $TR approach in an earlier comment. Very creative, I liked it! I guess together we made it to 61ch?
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
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?
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…
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.
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.
Thanks a lot, @Vadim Aniskin !
Thank you very much! I hope my idea can help contribute somehow to healthier energy consumption soon!
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!