Is there any way to execute many SQL commands at once as an (anonymous)block?
for example in PostgreSQL there is
DO $$
BEGIN
--here is Inserts/Updates/Deletes
END $$Or in Oracle
BEGIN
END; Thanks for the answers!
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Is there any way to execute many SQL commands at once as an (anonymous)block?
for example in PostgreSQL there is
DO $$
BEGIN
--here is Inserts/Updates/Deletes
END $$Or in Oracle
BEGIN
END; Thanks for the answers!
Now available on Open Exchange is a library of third party charts available to use within DeepSee/InterSystems IRIS BI dashboards. To start, simply download and install, select the new portlet as the widget type, then select the chart type that you desire. If you don't find the type of chart you are looking for, you can easily extend the portlet to implement your desired chart type. These new chart types can be used within existing dashboards or you can create new dashboards using them.
How do I compile a file through the command line?
I am generating a very basic csp page in a bash shell, it is generating fine and displays what I want to see as long as I go into studio and compile it . This defeats my purpose of having the page and I am having no luck figuring out what I am doing wrong. I think the issue has to do with the file not being included when I compile from command line.
Ver is 2017 running RHEL 7
From command line I see
TST 3f2>DO $SYSTEM.OBJ.Compile("csp.vvmaccessnewrds","h")
just wondered if there was a way to pass functions for execution to another function so that events can occur before and after?
like :
d ..MethodA(
..Method1("var"),
..Method2(0),
...
)edit:
I managed to get it working with execute but is there a cleaner (easier way)?
Hi,
i am using Healthshare 2017.2 version with Trakcare 2018. how to generate & print barcode from cache object scripting in this version?
I am trying to set a varaible/property within JavaScript and use the value in my method. The alert method below returns "0". Do I have the syntax wrong?
/// Storage for current table row
Property currentTableRow As %ZEN.Datatype.string [ InitialExpression = 0 ];
set ..currentTableRow = "1"
&js<
alert(zenPage.currentTableRow);
>
Hi:
We added a column to a table as follows
Property SentTime As Ens.DataType.UTC;
And the code to populate this
if pStatus = "SENT" //set SentTime which is used in the Tableau Report
{
Set doc.SentTime = $$$timeUTC
}
For Historical records of type "Rejected" the Sent time is appearing though as 1840-12-31 00:00:00, we don't know why. Current docs work fine with this column just historical seems to display the default instead of blank/null.
Hi,
call my web service (%SOAP from caché 2012 v) from XmlHttpRequest client generate cors policy error,
Any one help me how i can allow origin in headers requeste.
Thank you.
Hello,
I am having a problem with SQL Select, the command in portal is OK, show all items, but when I use a CacheDataAdapter in VB .NET show the message 'Incorrect list format 0>=0'. What could be this message? Because is the same SQL command.
Best Regards.
I have a set of strings that contains special characters. Im trying to write a sql query to remove all the special characters in the string. Im using Intersystems cache sql.
Example
%Lis&ten - Listen
Where can I download the Cache ODBC drivers for Windows?
I went here https://wrc.intersystems.com/wrc/Login.csp but it said
User is not enabled for WRC login. If this is unexpected, please contact InterSystems Support.
What does that mean? What do I need to do?
Running Cache 2017.2.2.
I'm trying to make a REST API call in JSON format. When using the example in the class reference documentation the getJSON method in the %Net.Http class throws the error <METHOD DOES NOT EXIST> on a %Clone() method in the %LIbrary.DynamicObject class. I even changed the parameter to a JSON string to no avail. The code will then fail on the %Compose method (examples below). My workaround is to use the %Net.HttpRequest functionality. Is there another workaround to this?
Example As Is:
Hi All,
I am aware of some Auditing software that was made available quite some years ago that I cannot find.
I would like to install it and give it a try. Does anyone know where I can access this software please?
Thanks in advance.
Steve
Hello everyone,
In the purpose of my work, I have to implement a code that will communicate with a restful server coded in JAVA.
To fulfill my task, they gave me the link to the restful server + a certificate to use + the class that's going to be sent back + the names of 2 functions:
Acces: https://XXX:8443/
First fonction: https://XXX:8443/patient/IdOfPatient
Second fonction: https://XXX:8443/patient/search/nameOfFunction?ndoss=Number
Object that returned:
{
"id" = ...
"lastname"=...
...
}
Hello,
We would like to learn how would you approach this task.
We would need to check every day a set of folders which are outside our server (in fact we could see them as if they were "inside" the server), then we need to check for modified or created files in the last day, and move all the ones which match the criteria to just one folder in our server.
We have thought about doing the following:
1) Create a task to run it each day:
Hi guys,
I'm trying to consume a REST Service that use Digest authentication, I'm trying to implement the authentication but I'm don't know where is my mistake.
Someone have already used this type of authentication.
Below the code I wrote to try to generate the response hash:
Hi Community,
Is it possible to track Application Errors from a specific namespace?
With the new API, I know we have the endpoint /alerts.
But the endpoint /alerts, as described in the documentation:
I want to create push notifications for Application errors in specifics Namespaces, and I don't know how to extract that information from there.
System > System Logs > View Application Error Log
Thanks,
Henrique
Application licensing enables InterSystems application partners to take advantage of Caché’s licensing capabilities for their own licensing purposes.
Caché manages customer application licenses just as it does Caché/Ensemble and InterSystems application licenses, maintaining usage counts and acquiring and returning user licenses as needed.
Application licenses consumed by a process or a CSP session are automatically released along with the Caché license consumed by the process or session when a process exits, halts or is deleted from the process table, or when a CSP session times out or is deleted.
More in docs.
Do you use this feature? If so, how?
I'm especially interested in license validation and general workflows?
Hello,
We would need to iterate all over the OBXs list and get their OBX3 CE1 to determine if it is the lab result we need to send to the output system.
We wonder how could we achieve this in a foreach component inside a Bussiness Process.
We think we would need to use a foreach because of it is needed to generate a message, for each one of the OBX which have the OBX3 CE1 that the output systems uses for the lab results.
So then we would need to use a foreach and then inside a transform and a call
We have already been able to output all tbe OBX3 CE1 to the log as follows:
I want to insert multiple records in the table using below queries, but it gives an error.
Hi All,
Please, does anybody have Source Control Classes for Team Foundation that you could share?
Thanks.
Hi All,
Actually, I'm developing few restful API's. I want to create a authentication tokens and display it on my login restful API. If I'm using CSP sessionId, how can I validate the session Id's in another or continues restful API's. else, is there any other approach to handle this task.
My Primary goal is, I have to integrate 2 different front end applications. One is Zen framework another one is web pages from Python.
If any lead, it would be appreciated.
Thanks,
Arun Kumar Durairaj.
Hi, I am facing issue during LDAP lookup like whenever I used product group parameter in AD explorer to search data from application I am getting empty result. If I set product group parameter as null then based on distinguished name result is generated in application. So if anyone knows about how LDAP works and how parameters are set in AD explorer then please let me know.
Thanks in advance.
Hello,
I'm trying to upload file to SFTP server.
I have access to SFTP server .
My code is bellow
Try {
Set sftp = ##class(%Net.SSH.Session).%New()
Set sc = sftp.AuthenticateWithUsername(username,password)
if 'sftp.Connect(host){
Set status = $$$ERROR($$$GeneralError,"Cannot connect to sftp ")
Quit
}
Set sc = sftp.OpenSFTP(.t)
If 'sftp.Disconnect() Write "Failed to logout",!
}Catch ex {
Set status=$$$ERROR($$$GeneralError,$ZE)
Quit
}
The output : $lb(5001,"Cannot connect to sftp "
What i'm doing wrong ?
Hello,
In the DTL, is there a way to set a value for the HL7 data element in the code section?
For example,
set target.SetValueAt("PID:3(k1).1)") = mrn (mrn is the value returned from the SQL query)
When I ran the test utility, I got this error message.
ERROR ErrException: zTransform+27^testclass.TEST.1 *SetValueAt,EnsLib.HL7.Message -- logged as '-' number - @' set target.SetValueAt("PID:3(k1).1)") = mrn'
I tried both target.SetValueAt("PID:3(k1).1)") and target.GetValueAt("PID:3(k1).1)"). That didn’t make a difference. The code still error out.
Thank you in advance for
The latest WebComponent-based, SB Admin 2-themed QEWD Monitor application now includes a cool D3-based viewer for visualising your IRIS or Cache Globals - see example below
This qewd-monitor-adminui application is automatically installed when you install QEWD on a Windows machine
See here for details on installing QEWD on Windows:
https://github.com/robtweed/qewd-microservices-examples/blob/master/WINDOWS-IRIS-2.md#initial-steps
Hello,
I'm working on integrating a Cache database into an existing .NET project of mine. I'm trying to execute certain queries utilizing the Cache ODBC driver. The first error I ran into was "[S1000] [Cache ODBC][State : S1000][Native Code 417] Access Denied". The part that's throwing me for a loop though is that the application ran ~200 successful queries before I started getting that. After some of those Access Denied errors, they turned into "[Cache ODBC][State : S1T00][Native Code 450] Request timed out due to user timeout". This was all with the regular (2.5?) driver.
If you're interested in building a browser-based CRUD application for maintaining data on IRIS, check out the detailed, step-by-step tutorial at:
https://github.com/robtweed/qewd-microservices-examples/blob/master/WIN…
To get a preview of the application you'll build in the tutorial, along with background on its technology stack, watch this video:
https://www.youtube.com/watch?v=d-NICYqv_2s
In summary, the key features and technologies that you'll be using and building out in this tutorial include:
Hi
on this code
set reader=##class(%XML.Reader).%New()
set statuscode=reader.OpenFile(file)
if $$$ISERR(statuscode) {do $System.Status.DisplayError(statuscode) quit $$$NULLOREF}
I got this error "unable to open file 'https://www.musicxml.org/dtds/partwise.dtd'"
or using the xml schema wisard i got the error https is active but no configuration found.
where do I have configure it?
I want to receive an EDI file through Applicability Statement 2(AS2) transport and send back the acknowledgement to AS2 using Cache ObjectScript.
Previously I used to transfers the EDI files using FTP.
Can anyone please help on this.
Thanks in advance.