Dmitry Maslennikov · Oct 10, 2023 go to post

Yeah, but unfortunately, in my case, (see the screenshot above) I have no checkboxes at all, so, no control

By the way, Python Embedded supports to be executed without entering any passwords, you can use environment variables for that. 

It's tricky but not impossible, but obviously not in ObjectScript. Requires additional tools, which should be plenty, now with Python Embedded, it should not be an issue, even with image-based PDFs, which will require OCR.

Dmitry Maslennikov · Sep 27, 2023 go to post

But anyway, I don't see that's it's not impossible at all. The only thing that may stop with it, it's the lack of support of IRIS in different languages. But it's solvable, for instance, I could do it.

Dmitry Maslennikov · Sep 26, 2023 go to post

I think would be great to expand the first link, which contains 4 interactive in-browser tutorials

Dmitry Maslennikov · Sep 22, 2023 go to post

There are still some bugs left in Embedded Python, I reported one more yesterday for a very fresh 2023.3 too

Another issue is that it requires much more time, to implement than I expected, so, I need some more time to finish at least one indexing algorithm.

Dmitry Maslennikov · Sep 22, 2023 go to post

Or use extra symbol for &js, like @, see example

ClassMethod OnPage() As %Status
{
    &js@<
    if ( a > 1) {
        console.log('test')
    }
    >@
	Quit $$$OK
}
Dmitry Maslennikov · Sep 21, 2023 go to post

In my project iris-vector, there are a few things, which make it impossible to make it ObjectScriptLess, at least for now. 

  • I've already mentioned the issues of running Python based SQL functions, in my article, so, I had to add ObjectScript realization too.
  • And any new DataType in IRIS, which implements custom serialization based on methods like DisplayToStorage, at the moment accepts only ObjectScript, due to tied implementation to SQL Compilation engine.
Dmitry Maslennikov · Sep 21, 2023 go to post

I think it is worth mentioning, that the alternative is possible

The latest technologies based on Vectors, may help to replace it, with even more capabilities.

Dmitry Maslennikov · Sep 19, 2023 go to post

A bunch of services with their InboundAdapters, such as FTP, Email, SQL, Kafka, and so on, connects to external server using this InboundAdapter directly, collect data and use it in Service. 

And only for TCP, HTTP, SOAP, REST by some reason decided that InboundAdapter now should start our own server, so, external services should connect to us. It's useful for sure, but the why we can't use it the other way too, is it somehow completely different? The logic in the workflow is still the same, it's Input data, which have to start the workflow. 

Dmitry Maslennikov · Sep 18, 2023 go to post

Refactoring is the best and only solution here, get rid of those files. Yeah, it's painful, for sure, and probably sounds like a waste of time, but it's definitely necessary and will help in the future

Dmitry Maslennikov · Sep 11, 2023 go to post

And the same class through VSCode, outputs always the same

Compilation started on 09/11/2023 19:15:59 with qualifiers 'c-uk'
Compilation finished successfully in 0.059s.

Compilation started on 09/11/2023 19:16:00 with qualifiers 'c-uk'
Compilation finished successfully in 0.056s.

Compilation started on 09/11/2023 19:16:22 with qualifiers 'c-uk'
Compilation finished successfully in 0.056s.

Compilation started on 09/11/2023 19:16:27 with qualifiers 'c-uk'
Compilation finished successfully in 0.050s.

Compilation started on 09/11/2023 19:16:30 with qualifiers 'c-uk'
Compilation finished successfully in 0.052s.

Compilation started on 09/11/2023 19:16:33 with qualifiers 'c-uk'
Compilation finished successfully in 0.056s.

Compilation started on 09/11/2023 19:16:35 with qualifiers 'c-uk'
Compilation finished successfully in 0.053s.
Dmitry Maslennikov · Sep 11, 2023 go to post

In terminal, I managed to get expected log, on each third compile, but it's still insane

Compilation started on 09/11/2023 19:13:27 with qualifiers 'ck-u'
Compiling class User.demo
Compiling table SQLUser.demo
Compiling routine User.demo.1
Compilation finished successfully in 0.081s.

USER>do $system.OBJ.Compile("User.demo","ck-u")

Compilation started on 09/11/2023 19:13:28 with qualifiers 'ck-u'
Compilation finished successfully in 0.071s.

USER>do $system.OBJ.Compile("User.demo","ck-u")

Compilation started on 09/11/2023 19:13:29 with qualifiers 'ck-u'
Compilation finished successfully in 0.064s.

USER>do $system.OBJ.Compile("User.demo","ck-u")

Compilation started on 09/11/2023 19:13:30 with qualifiers 'ck-u'
Compiling class User.demo
Compiling table SQLUser.demo
Compiling routine User.demo.1
Compilation finished successfully in 0.087s.
Dmitry Maslennikov · Sep 11, 2023 go to post

Any news, about this issue, or that only happen to me?

I'm working in docker, in many different IRISs, but always have this issue

Or finally, no one works with ObjectScript anymore?

Make sure, that your class responses with correct HTTP header ContentType, so, browser will understand that it's an image, and if the content type is supported it will be shown, as well as ContentDisposition

for instance

Content-Type: image/jpeg
Content-Disposition: inline; filename="filename.jpg"

PNG, and other files, should have their own content types too

IRIS SQL does not have CHECK constraints, so, this syntax not available at all. Just try using a simple string, without enumeration.

Unfortunately, this is not the case, all transactions have to be closed anyway. 

In example below, I changed only one value and then used rollback, so, it changed it back and committed 

Missing TCOMMIT, would only mean, that transaction is still open, and it's a bad sign, which will be logged in messages.log, for a long opened transactions.

Obviously, I can implement those connectors, just wanted to get some feedback, or other suggestions or what should be implemented first