Greetings,
Can someone please show me via coding example(s) how to write an input prompt that will read in a function key, F7 for example, validate that the key pressed is F7 and then process it all via cache.
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Greetings,
Can someone please show me via coding example(s) how to write an input prompt that will read in a function key, F7 for example, validate that the key pressed is F7 and then process it all via cache.
Hi,
I have a program that displays the current running processes to the screen. I need to have a program execute that display program and capture the results to a file. The display program does pause at the bottom of each page waiting for an 'enter' to go to the next page.
Note( the display program will not successfully compile on the current system but it does work)
Also - very, very new to Mumps.
Thanks,
Bob
Hi all,
I have a question about the Private Global Blocks when viewing a process's details. This number is growing while my process runs - is this due to variables, process-private-globals, or both?
Thanks
Laura
.png)
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.
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
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 about.
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
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 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.
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.
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
I am looking to get the exec statement when we call the SP with
Get the exec string: exec pSPName '1', '2', '3'
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.
What would a sample DbContext look like and how would you register the DbContext in the Startup.cs ConfigureServices method?
Hey Intersystems-Developer,
I have already used that and know its possible, but can't find it anymore :(
I need dynamic access on proxy objects. For example:
set key = "lastName"
set name = obj.name
set lastName = obj.key <- Not possible
set lastName = obj.GetAt(key) <- Not possible
How can I get access to that object with my dynamic variable "key" ?
Best regards.
I have a process that receives a EnsLib.DICOM.Document, and then attempts to extract a PDF from the dataset to save to a folder.
When I use the GetValueAt method to get the pdf from the document (from the EncapsulatedDocument section), the status returned is 1, but I'm only getting the first 32648 characters(?) from the PDF.
I thought it was a string max length problem, but long strings are enabled and the final PDF is tiny (94kb) so it's not hitting the long string.
Is there some form of limit to using the GetValueAt method that I'm missing?
When we go to specific name space to search messages in message viewer, at the moment we are adding the search criteria to add criterion type as SearchTable Field, and clicking the dropdown in Class field, there is an error says below in the image:
Could anyone please let me know what exactly the error is from? Thanks so much.
Hi, i have a problem, i need to put some Caché Code into a .JS file. Is this possible?
Getting an error while installing on macOS. Somebody, please help.
Hi guys!
As you know there are two (at least) ways to get the stored value of the property of InterSystems IRIS class if you know the ID of an instance (or a record).
1. Get it by as a property of an instance with "Object access":
ClassMethod GetPropertyForID(stId As %Integer) As %String
{
set obj=..%OpenId(stId)
return obj.StringData
}
2. Get it as a value of a column of the record with "SQL access":
For each defined property, query or an index, several corresponding methods would be automatically generated on a class compilation. These methods can be very useful. In this article, I would describe some of them.
Hi All,
I'm just taking a look at IRIS and what it has to offer, and if this is something the organisation I work for should be looking to take advantage of.
I think I've come across an early sticking point, and I wondered if anyone knew of any options.
The front end (.Net, mostly C#) codebase makes extensive use of the object binding through generated proxy classes, and I see that this option is omitted from the IRIS documentation (Cache: https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GBMP IRIS: https://irisdocs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.
Hi, Developers
When I click save button into cache server pages then following error pops up.
JavaScript exception was caught during execution of Hyper Event: Syntax Error: Expected.