Wow Jolyon, thank you so much! I didn't know about the IsNew property and it is really interesting. I'm going to try this as soon as I can
- Log in to post comments
Wow Jolyon, thank you so much! I didn't know about the IsNew property and it is really interesting. I'm going to try this as soon as I can
I agree with Ali and do the same. Quit is to escape out of a code block, while return is at the end of the code to return a value. Moreover, I use a lot the Try-Catch statement and Quit is not valid inside the Try block to return values but only inside other statements to escape out of them.
Hi Jolyon, thanks for replying me. The questionnaire is added by API call but the problem is that this call happens in a lot of different integrations and classes and in many different ways (due to a previously bad code management there is not a single primitive class being invoked but several), so they basically asked me to somehow resolve the problem at its root and set the default value through an UDF. I don't know why the OnBeforeSave isn't triggered by the API call and this surprised me honestly, maybe is an issue related to the particular TrakCare version or to the Region/Edition code but I'm not allowed to fix/modify it unfortunately.
However, so you're saying that with an OnBeforeSave is possible to set/modify the %request value? Doing for example something like:
set Q31 = %request.Get("Q31")
If ((Q31 = "") || (Q31 = 0)) {
Set%request("Q31",1)=1
}and the object will be saved with the overwritten value?
Hi Timo, thank you for your response and clarifications! As I wrote to Jolyon now is it clearer how %d and %old variables work in OnSQLTrigger UDFs.
Hi Jolyon, thanks for the clarifications. I'm quite experienced with Feature Framework but I've never worked with OnSQLTrigger UDFs and felt confused about them, mostly due to some information I received and probably misread. Now it is more clear and sounds logic to me that variables %d and %old can't be overwritten, as well as %response and %session, I suppose.
What I'm trying to do is to force the default value of a boolean property of a questionnaire to be 1 on insert. I was trying with OnSQLTrigger because I can't modify the Region model of the questionnaire to set a Custom default value, nor use an OnAfterSave UDF because I can't know if the questionnaire has never been inserted, and not even an OnBeforeSave because I noticed that, for whatever reason, TrakCare API calls don't trigger them.
Hi David, unfortunately it is impossible to modify the initial expression of that value. Because of the TrakCare framework, the particular class whose property belongs is automatically generated and, I don't know if it is possible for core team, but I'm not allowed to modify it.
Hi Dmitry,
thank you, I'll have a look at them
Thank you Evgeny!
Hi Vachan, thanks for your reply. Unfortunately we don't always have SSH access to our clients' machines, so this can't be applied. With this question I intended if there is anything in VSCode lke the Export Project feature in Studio.
Currently, the only solution I've found is building a custom API to do this and a UI to interact with it, but it must be installed on the machine.
Hi, about the backend language, what do you mean by saying:
Develop a full-stack solution using InterSystems IRIS, InterSystems IRIS for Health, or IRIS Cloud Service as a backend. By full stack, we mean a frontend web or mobile application that inserts, updates, or deletes data in InterSystems IRIS via REST API, Native API, ODBC/JDBC, or Embedded Python.
For example, is it allowed to implement the application backend completely through irisnative python package or REST API or PEX, without any line of ObjectScript or Embedded Python? Moreover, should the application be able to perform every CRUD operation or is it fine to perform just a few, like only insert and update?
Hi Nicki,
I hope I will be able to publish soon the second part of this articles serie in which I describe how to setup the whole instance with web applications, namespaces, interoperability and databases through a manifest file.
Stay tuned.
Congratulations to all the participants!
Thanks Semion!
Hello, my iris_io_utility has two related YouTube videos as you can see on Open Exchange. Moreover, what do you mean for online demo? A release of my VS Code extension is available on the GitHub page and can be downloaded and installed, as well as other VS Code extensions in this contest.
Thanks Antonio, this is a great point! Maybe in the next version it will be possible
Hi @Anastasia Dyubaylo! I’ve published a new application on Open Exchange (iris-io-utility), which is currently awaiting approval. I’m wondering if there’s a way to automatically submit it as a candidate once it’s approved or if I must wait for the submission until the app is approved. Thank you in advance!
Wow! What a great news, thanks to InterSystems and congratulations to all the participants for their great ideas
Thank you Irène!
Great idea Robert! 😁
My idea is a docker image with all the materials to let newcomers learn properly how to code in objectscript and work with InterSystems IRIS
Create a Docker image with material for | InterSystems Ideas
(P.S. because of a connection issue I posted the same idea three times, the first two without a description. I couldn't see any of my posted idea so I tried multiple times to post it. Is there any way to remove the drafts?)
Hi Thomas,
I've just added it from the GitHub repository, I don't know why but it was missing, probably I forgot to include it when I wrote the article. Thanks for reporting it to me😊
Congratulations to all the participants!
Hi Semion, I wrote a second article for both the projects
Thanks Semion
Wow! This is awesome
This is not what the description says but ok it is fine :) thanks
Hi, I believe 3 points are missing for the IRIStool and Data Manager project, since I made 2 YouTube videos (the project is divided into two separate parts: integration and UI, each with its own video).
As stated in the Technology Bonuses for InterSystems .Net, Java, Python, and JavaScript post, I was expecting 3 points for each video:
Video on YouTube - 3 points
Make new YouTube videos that demonstrate your product in action and collect 3 bonus points per each.
Another question: what happens if I write a second article for a project today? Will I get an extra point?
You're welcome Olga! Stay tuned for the next part
Thank you Robert! Of course IRIS image is not only one but there are many, great point! 😊
Great news! I was wondering if embedded python is considered an external languages or not, because I'm developing a project for the contest and need to choose whether implementing a part of it through regular or embedded python. Let me know, thank you in advance 😊