Hi community,
This is another article about how to perform actions that you can do in the web portal but via code.
Today.... Add a default setting value by code
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Hi community,
This is another article about how to perform actions that you can do in the web portal but via code.
Today.... Add a default setting value by code
My objective is to find routine's Date/Time Saved someplace inside Cache. The routine's Date/Time Modified as returned by various queries like %Library.RoutineIndex and as seen on the File Open screen is actually Date/Time Compiled last, not Date/Time Saved last. Does anyone know if Date/Time Saved is created when the Save icon is pressed or the routine is imported? Such a timestamp should be immune to subsequent compilations with no changes.
I am also curious about the internal Cache mechanism that marks the routine's tab with + which means saved but not compiled yet.
I am unable to download Cache Studio from the Intersystems web page. The download link times out.
https://www.intersystems.com/developing-with-intersystems-iris/
Scroll down and click on 'Studio'. Spins then times out.
@Andreas Dieckow can you provide any insight?
Joe
In a typical database, changing the type of a column from some kind of date/time to a string would require a degree of migration effort for existing values. In Caché, my suspicion is that this is not the case, and I could simply change a property definition from %Timestamp to %String (MAXLEN = "30") and recompile, without needing to worry about damaging the existing data stored for this property. Is this correct? Or would I find the existing data in this property being lost or corrupted?
Thanks in anticipation
Dear,
From time to time I get the following error after executing a select statement:
[SQLCODE: <-400>:<Fatal error occurred>]
[Cache Error: <<UNDEFINED>Main+65^%SYS.DBSRV *%qsc(1187,8)>]
[Location: <ServerLoop>] InterSystems.Data.CacheClient.CacheException [SQLCODE: <-400>:<Fatal error occurred>]
[Cache Error: <<UNDEFINED>Main+65^%SYS.DBSRV *%qsc(1187,8)>]
After repeating the query, the query succeeds.
How do I start debugging this type of issue?
Thanks,
Bart
Hi,
How to write code in table trigger to send SMS upon any modification on particular column?
Thanks
Hi all,
We have a session values in a cache method and need to get those values in a client method (JavaScript).
Eg :
ClassMethod Method1()
{
Set %session.Data("Param1")="Data 1"
}
ClientMethod onloadHandler [Language = javascript]
{
var ret = zenPage.getSessionValues();
}
ClassMethod getSessionValues() As %String [zenMethod]
{
Set Data = $G(%session.Data("Param1"))
Quit Data
}
This is the code we implemented. But the problem is getSessionValues() method isn't called.
We need to know how to call a class method from client method.
Thanks,
Syed M
Hello, first of all thanks for your time reading this question ◀️
We would need to achieve the following task:
We have a Ens.Response message with this structure:
<?xml version="1.0" ?>
<!-- type: Mensajes.Response.Justicia.PLATINO.EnviarIniciadoresGeneralResponse id: 10986665 -->
<EnviarIniciadoresGeneralResponse>
<EnviarIniciadoresGeneralOut>
<
Read more at Open Exchange.
Right now version 2.0 is like an aircraft at the start of the runway (remember those days before COVID-19?), waiting for the control tower to give final clearance. Will you be an early adopter, downloading the VSIX from GitHub, installing it into your VS Code, and posting back here to confirm that we haven't left anything critical behind at the gate? Then I'll push the throttles forward, publish to Marketplace, and we'll all be on our way.
Server Manager 2.0 is my entry for the current contest. If you like it maybe you'll vote for me it. ![]()
Hi,
What is the difference of class normal and date/time property and how to use in the script and what is the use of MINVAL and MAXVAL parameters?
Thanks
Hi!
Does anyone have a cleaner approach than this for looping through grouped NTE segments in order to set the segment ID in an ORM? I am aiming to avoid the NTE segments that may follow the PID segment and find the NTE's that follow the OBR segment. By using the below If statement in the While loop, I'm finding NTE's that have comments in the fourth field (PID NTE's tend not to have these in the messaging I'm seeing, I'm awaiting confirmation on this), as well as finding my newly inserted NTE segment using $FIND to locate the colon (I've concatenated some values).
I'm writing a ZEN PDF report that uses StyleCalls to modify/HiLight table cells.
Is it possible to use a ZenMethod to create the Xdata below? I need to modify the colors based on flags.
Hello everyone,
I'm creating a REST API with InterSystems Ensemble.
I already have a POST route that parses JSON content into an object defined in a class.
To parse the JSON content, I'm using the JSONStreamToObject method in the Ens.Util.JSON class
Here is how I use it:
Set tSC = ..JSONStreamToObject(%request.Content, .tObject, "MyClass", 1)
While the route works and does what it should, in theory.
I noticed that when passing empty string or null values inside the JSON content, the values do not appear at all in the object's
I have a report that requires a different header block for the first page and another for subsequent pages.
Is there a way to direct a header page to another header page based on what the current page number is?