Encontrar

Anuncio
· 29 sep, 2024

IPM in VS Code now works for devs who target a Docker container to compile and run their local sources

If you are using the client-side development paradigm (i.e. editing code in local files that get imported and compiled onto the IRIS server your `objectscript.conn` settings point to) you can now use IPM in VS Code to manage the packages in your IRIS target by launching it from the Explorer view. Just make sure the extension you are using is at least version 1.0.4, then use this button:

Thanks to @Evgeny Shvarov for suggesting this enhancement, which is particularly useful when using Docker.

Comentarios (0)1
Inicie sesión o regístrese para continuar
Artículo
· 29 sep, 2024 Lectura de 3 min

Unleashing the Power of Vector Search with SQL-Embedding

sql-embedding cover

InterSystems IRIS 2024 recently introduced the vector types.
This addition empowers developers to work with vector search, enabling efficient similarity searches, clustering, and a range of other applications.
In this article, we will delve into the intricacies of vector types, explore their applications, and provide practical examples to guide your implementation.

2 comentarios
Comentarios (2)1
Inicie sesión o regístrese para continuar
Pregunta
· 29 sep, 2024

How to run a routine when a Namespace component setting is updated/changed?

I need to execute code whenever a production component setting is updated, such as when a service port is changed and the `ens.config` table is updated. This code will handle tasks like logging these updates to a custom table for external reporting purposes.

How can I invoke custom code on these updates?

Ideally, I need to monitor all namespaces that are interoperability-enabled. Whenever a production component setting is changed in any namespace, I need to run the code.

2 comentarios
Comentarios (2)1
Inicie sesión o regístrese para continuar
Artículo
· 29 sep, 2024 Lectura de 1 min

IRIS Test Data Generator

The test data generator is mainly used to generate test data, which can be used to generate test data for tables and fields to meet the needs of different fields according to different types, currently supports Text, Number, Enum, UUID, regular expression, Multiple date and time formats, and Time Seven different types
 

How to use:

1. Select a namespace, you can see all the tables under the namespace,

2. Select the table we want to generate test data from, click on the field, and select the type on the right

3. After all the configurations are completed, click on the total number generated, and click on the generated data

Comentarios (0)1
Inicie sesión o regístrese para continuar
Pregunta
· 29 sep, 2024

Response of JSON type

Hi Guys,

I'm using the below simple Get Webservice to return a JSON file, its working but the response is actually of Text type not JSON Type 

ClassMethod cmGetHomes(cnt1, cnt2) As %Status
{    response="{""Land"""_":"_""""_cnt1_""",""Home"""_":"_""""_cnt2_"""}"
 // set dataObj=##class(%DynamicObject).%FromJSON(response.data)
 //set response.data = dataObj
 //W response.%ToJSON()
 //set response.data = {}.%FromJSON(response.data)
 //set response.data = {}.%FromJSON(response.data)
 response
 Quit $$$OK
}

This is the response that I'm getting in Postman

But it says type is text not JSON 

 

Thanks

5 comentarios
Comentarios (5)1
Inicie sesión o regístrese para continuar