Hi Community!
New video is already on InterSystems Developers YouTube Channel:
Hi Community!
New video is already on InterSystems Developers YouTube Channel:
Hello community,
I am trying to parse the below HttpResponse in Cache. Cannot get the Iterator to work. Is there a single loop which can parse both or single messages and grab the error?
{
error:[
{ txt1:'error msg1'},
{ txt2:'error msg2'},
]
}
{
error: {
txt1:[
'error msg1',
'error msg2'
]
}
Thanks,
Jimmy Christian
The steps are as follows:
1. create global
For I=1:1:200 Set ^ABC(I)=""
For I=1:1:200 Set ^XYZ(I)=""
For I=1:1:100 Kill ^ABC(I)
2. create ZJRNFILT
ZJRNFILT(jid,dir,glo,type,restmode,addr,time) /*Filter*/
Set restmode=1 /*Return 1 for restore*/
If glo["^ABC",type="K" Set restmode=0 /*except if a kill on ^ABC*/
Quit
;
3. restore
s RestOref=##class(Journal.Restore).%New()
s RestOref.FirstFile="20190717.007"
s RestOref.LastFile="20190717.007"
s RestOref.JournalLog="journal.log"
s RestOref.Filter="^ZJRNFILT"
s Status=RestOref.Run()
but the result do not hav
Hi there
Would you please advise how to count how many keys are duplicated in global, for example, Athens was duplicate 3.
Set ^Data("Cambridge") = "1"
Set ^Data("New York") = "2"
Set ^Data("Boston") = "3"
Set ^Data("London") = "4"
Set ^Data("Athens") = "5"
Set ^Data("Athens") = "6"
Set ^Data("Athens") = "7"
Thanks
I need to copy a bunch of globals from some crufty old databases to spanking clean brand new ones. GBLOCKCOPY has this cool feature that lets you create a batch of global names to copy and save the list in a batch. You can then execute the batch and go take a nap.
I like naps.
I need to do this for a number of old-new database pairs, but it's the same global names every time. Is there a way to export the batch configuration created the first time and import it to another environment/namespace? These databases will be spread across multiple hosts.
Thanks!
How can I convert date format ddmmmyyyy to yyyymmdd in cache?
example: 14JAN1991 to 19910114
In the interest of fostering an open and welcoming environment, we as contributors and manager pledge to making participation in InterSystems Developer Community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
Examples of behavior that contributes to creating a positive environment include:
Hi Community!
You're very welcome to watch a new video on InterSystems Developers YouTube, recorded by @Benjamin De Boe, InterSystems Product Manager:
Natural Language Processing with InterSystems IRIS
Hi all,
I have a class that I want to serialize to JSon. So I'm using the object %ZEN.Auxiliary.jsonProvider)
set myClass = ##class(myapp.myclass).%New() set myClass.property1 ="value 1" set myClass.property2 = "value 2" set myClass.property3 = "value 3" do ##class(%ZEN.Auxiliary.jsonProvider).%WriteJSONStreamFromObject(.tStream,myClass ,,,1,"ed") write tStream.Read()
By definition of myclass, all properties are serialized, that's fine. But I want not serialize the property3. I think is using a XML attribute in the property, or something about. But I didn't find anything abou
Hi all
Is there a data model for the Ensemble EnsLib_HL7 tables in the database? A client wants to run some SQL and would like some documentation about table relationships.
Thanks in advance
Ian
I'm having trouble accessing the snapshots EnsLib.SQL.Snapshot in %Library.ListOfObjects that are returned from method ExecuteProcedure in EnsLib.SQL.OutboundAdapter. The Microsoft SQL stored procedure I am executing returns multiple resultsets.
The issue I am having is that my code works fine when executed in the business operation (commented out in the code below) but when it is executed in the business process it errors. Any ideas as to why this happens? The error I get is:
> ERROR #5002: Cache error: <METHOD DOES NOT EXIST>zGetAt+5 ^%Library.ListOfObjects.1 *%Open,%Library.Registered
I followed the instructions in the documentation https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cl… (Install iris.node on nodejs for windows). Procedures made:
=> Copy iris.node to the location specified in the NODE_PATH environment variable: C:\Program Files\nodejs
=> I used: var irisobj = require('iris') on my js file
But is not work. Error: The specified procedure could not be found.
Hi Everyone!
You're very welcome to watch the new video on InterSystems Developers YouTube, recorded by @Sourabh Sethi in a new format called "Coding Talks":
Locking in InterSystems ObjectScript
Released today: InterSystems Learning Services's June 2019 newsletter!
Explore new content from Online Learning, Documentation, and Classroom Learning, including:
Want to stay up to date? Subscribe today!
Hello Community,
Hope someone can assist me to POST a JSON to the below URL. It works perfectly with POSTMAN. But when trying with cache/Ensemble i receive Method not found error
Below is the configuration.
.png)
set ..Adapter.ContentType="application/json"
Set tURL=..Adapter.URL
Set pRequest={"name":"abc1jim23","salary":"123","age":"23"}
set tSC=..Adapter.PostURL(tURL,.tHTTPResponse,,pRequest)
Response is complaining about the Method not found Http error.
Assistance will be appreciated.
Thanks,
Jimmy Christian.
Can I connect to Cache using SSMS (SQL Server Management Studio) and view schemas and build queries as I do for SQL Server?
If yes, step-by-step instructions for setting up the connection would be greatly appreciated.
I googled the topic but didn't find any results that were on target.
Thanks,
Christian Bahnsen
I am fairly new to Cache and ObjectScript. I have a new task I have created with a corresponding method that I am trying to debug in Studio (2013).
My ClassMethod looks like this
ClassMethod DoMyWork(Output pWorkCount as %Integer, pInput1 As %Integer = 30)
{
/* Does some work here and increments pWorkCount */
}When I try to debug this using studio, I browse to my method but I am not certain what to put in here for the input parameter 'pWorkCount'.
I tried to execute the class in the terminal window but I am not sure how to enter debug mode using the terminal window.
Thanks.
Hi, I am trying to transform a message to meet a third party specification, and would like to know if you can advice me on how to separate a single OBX segment into several segments based on a '.'
I would like to separate the segment where the . [marked in red] is into another OBX segment. So the next segment would be:
OBX|2|TX|R^REPORT^L|1|Patient had lumbar spine MRI ~ Patient also had barium swallow ~ Patient has good alignment 99%perfect ~ Patient has aspiration visible
Is there a way to do that?
Would appreciate your advice on this
Regards,
Eric
Hi,
let me apprise you with my problem:
I want to install Ensemble by Unattended Custom Instalation which use my Installation Manifest. It should start from cmd. So I've got everything in .cmd file to start whole installation by only double click. The problem is that I want to set some variables here in .cmd file and use them in Installation Manifest for installation Ensemble. It is about variable with path to some packages which should be imported during instalation.
So are there some solutions, or can you give me link to documentation.
Thanks for all answers.
Zdeněk
Hi all,
we are wondering if anybody has a reporting tool that is capable using IRIS Objects?
I know there are things like Crystal Reports and others out there who can read the SQL Data throug ODBC but we need the capability of using object methods while running the report.
Since now we where using a JAVA based report generator (ReportWeaver) but since the object binding for JAVA doesn't exist anymore in IRIS data platform, did any of you have an alternative report generator?
Looking forward to any answers
cheers
Stephan
CSP pages extend %CSP.Page. What about html/css/js/etc that are hosted on the same web application? Is there any way to override how they're processed like with how you can override a CSP page and CSP REST logic?
Thank you!
David
Hi,
I am looking for an Objectscript example to calculate PI (3,14) with at least 100 Decimals.
There are many examples on the internet (https://rosettacode.org/wiki/Pi), but I want to use it for testing purposes.
Regards,
Peter van Voorthuysen
The Widgets Direct sample application highlights many aspects of how to use InterSystems technologies to build a modern web application. Features include:
All,
I'm using Cache 2014.1 in an openVMS environment.
If I have multiple RMS files to clean up, for example.
!DIR MEMBER_EXTRACT.*;*
MEMBER_EXTRACT.CSV;2 MEMBER_EXTRACT.CSV;1
MEMBER_EXTRACT.PROC;1 MEMBER_EXTRACT.TXT;3
MEMBER_EXTRACT.TXT;2 MEMBER_EXTRACT.TXT;1
S FILE="MEMBER_EXTRACT.*;*"
Do ##class(%Library.File).ComplexDelete(FILE)
!DIR MEMBER_EXTRACT.*;*
MEMBER_EXTRACT.CSV;1 MEMBER_EXTRACT.TXT;2
MEMBER_EXTRACT.TXT;1
Total of 3 files.
What would be the best way to delete all the files using the ComplexDelete class call?
ComplexDel
Hello ,
I am trying to make a REST call using the example given in documentation for Creating REST Services and Clients with Ensemble.
Class Test.REST.WeatherOperation Extends EnsLib.REST.Operation
But i receive below mentioned error. If anyone can help me out here.
ERROR <Ens>ErrGeneral: ERROR <Ens>ErrHTTPStatus: Received non-OK status 404 from remote HTTP server: 'HTTP/1.1 404 Not Found':<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
Thanks,
Jimmy Christian.
Hi Community!
Here is a digest of the InterSystems Developers videos on the InterSystems Developers YouTube Channel in June 2019. Please check it out!
Top 10 Videos by Views | |||
№ | Video | Views | Watch Time (min) |
1 | Active Directory Integration with LDAP | 1 099 | 3 813 |
2 | Building Modern Web Applications | 485 | 2 857 |
3 | SMART on FHIR: The Basics | 453 | 4 415 |
4 | Developing with FHIR - REST APIs | 152 | 1 149 |
5 | InterSystems IRIS - Power of the Platform | 94 | 608 |
6 | Adopting InterSystems IRIS | 91 | 897 |
7 | Create Your First InterSystems ObjectScript Code with IRIS Community, Github, Docker and VSCode | 89 | 299 |
8 | Sizing and Capacity Planning | 87 | 516 |
9 | InterSystems IRIS in a Container | 79 | 951 |
10 | Analysing InterSystems IRIS System Performance with Yape. Part 1: Installing Yape | 77 | 198 |
I am looking to get the exec statement when we call the SP with ..Adapter.ExecuteProcedure.
Set tSQLQuery="exec pSPName ? ? ?"
Set Status = ..Adapter.ExecuteProcedure(.tResultList,.tOutParms,tSQLQuery,"iii*, 1,2,3)
Get the exec string: exec pSPName '1', '2', '3'
Hi Community,
Just wanted to let you know that our July issue of Developments and Developments Healthcare Edition went out this week. You can check out these and other issues on this landing page.
Would love any suggestions for future articles.
Jacquie Clermont
Hi Community,
I'm looking for a new contract with immediate availability.
I have 20 years experience with InterSystems technologies in areas such as Healthcare integration and single page web development.
I can work almost anywhere in the UK as well as remote work from my office in Exeter.
If you know of any opportunities or could pass on my LinkedIn details to anyone that might be looking then it would be very much appreciated.
https://www.linkedin.com/in/sean-connelly-94a6901/
Kind Regards,
Sean.