in CSP what is the difference between OnPreHTTPafter and OnPreHTTP.
And how code execution is different if written in above mentioned TAGS and <script language="cache" runat="server"></script>
InterSystems Caché is a multi-model DBMS and application server. See more details here.
in CSP what is the difference between OnPreHTTPafter and OnPreHTTP.
And how code execution is different if written in above mentioned TAGS and <script language="cache" runat="server"></script>
Let's say I have a persistent class Sales.
I need to create a report that shows the amount of sales for each branch.
By simply using the class Sales for the source of the cube, I can show what I want with one little exception - the branches that did not have any sales are not shown.
Is there a way around that that does not involve creating a whole new table just for this cube or using a Data connector (they have horrible documentation and I am unable to figure out how to use them properly)?
Hi all,
I'm wondering if is possible to get the values of itself to run a query.
I want to create some query to find a value into a %Persistent class but each one use diferent values.
Class Kurro.MyClass Extends %Persistent
{
/// Key of process
Property KeyProcess As %String(MAXLEN = "");
/// Specialist
Property CodeSpecialist As %String;
/// Provider
Property CodeProvider As %String;
/// Center
Property CodeCenter As %String;
/// Date
Property Date As %TimeStamp;
/// IdList
Property IdList As %String;
/// IdProcess
Property IdProcess As %String;
/// Duration
Property Duration As %String;
Query GetInfo(pObject AS Kurro.MyClass) As %SQLQuery(CONTAINID = 1, ROWSPEC = "IdList:%String,IdProcess:%String,Duration:%String")
{
SELECT IdList, IdProcess, Duration
FROM Kurro.MyClass
WHERE KeyProcess = :pObject.KeyProcess
AND CodeSpecialist = :pObject.CodeSpecialist
AND CodeProvider = :pObject.CodeProvider
AND CodeCenter = :pObject.CodeCenter
AND Date = :pObject.Date
}
}I am getting the below error while navigating a next page from the list in Management Portal
Must have Java Enabled to use hyperevent call
Unable to locate CacheCSPBroker applet!
I have already enabled Java in Java Control Panel
Any help is much appreciated
Thanks & Regards,
Sadagopan TS
The boss (reasonable intelligent ;-) wants to connect to the cache database through Excel, but unless I explain what he's looking for (field names DB names etc) then I can see him continually coming back for "what's the link here and how do I get the delivery company name etc etc"
is there a SAFE way I can give him access to our database using an intelligent visual user interface.
I had thought about the SQL Query Builder within the management portal, but the thought of giving him access to all of the other functionality of the management portal.
I want to consume external websocket api, URL looks like this:
wss://site.com/ws/v2/?&token=<token>Checked with external tool (Simple WebSocket Client) that websocket works and I can consume the data.
In Cache the relevant functionality is offered by %IO.Socket class.
set sock = ##class(%IO.Socket).%New()
set sock.SSLConfig = "MyEmptySSLConfig"
set sock.TranslationTable="UTF8"
do sock.Open("site.com/ws/v2/?&token=<token>","443", 10,.sc)However I get this error:
ERROR #7109: Timed out after 10 seconds trying to open stream '|TCP|443|42881' [zOpen+41^%IO.Socket.1:IOT] Are there any BDD testing automation implementations within Mumps/Cache Objects already in existence?
We are looking at using Cucumber for our Java regression test automation and would like to use similar feature file testing with the Cache code.
Looking to use something existing before building it.
Regards,
-Karl
Hello everyone!
Some time ago, I changed the configuration in SQL Runtime Statistic to "Turn on Stats code generation to gather stats at the Open and Close of a query". With this change, the CACHE base (cache/mgr/cache/) has grown a lot to reach 198GB.
Yesterday, I returned the configuration of SQL Runtime Statistic to the default which is "Turn off Stats code generation" and the cache base is no longer growing.
My question is?
How to delete this data that was created in the CACHE base (cache/mgr/cache/) and what data I can delete without affecting the system.
Thanks,
Fábio Louly.
Hello,
I have a quick question regarding TSTART, however not certain if there is an answer.
If I am inside the transaction and I loose connection - I always assumed that transaction would TROLLBACK, however it does not.
Is there anything special I need to set up with my TSTART, in order for this transaction to safely rollback?
*********
As example: Let's say I am inside the TSTART and setting up / altering some data and my VPN connection got disconnected. I kind of expect all the data to be rolled back.
Thank you,
Alex
Hello everyone,
I don't want to believe that Intersystems didn't add a method/process/rule to sort alphabetically a list of names (in array, $ LB or whatever)
I haven't found any documentation about this. I've even tried comparing two strings but have not found a solution.
My cry for help is...
Does exists any command to compare two strings and check if one of them is lower or upper according to aphabet?
Please, give me a light in this dark
Best regards.
Kurro Lopez
httpRequest POST file Upload multipart
1. is there a code example step-by-step, how to build each part ?
I tried the demo from intersystems doc's,
I checked it in .Net response, that didnot recognize the File-data part
2. I noticed, there is :
SET BinaryMIMEPart.ContentType="application/octet-stream"
but missing :
SET BinaryMIMEPart.ContentDisposition (as analogue, let say for VBA EXCEL )
or I do it via the:
Do BinaryMIMEPart.SetHeader("Content-Disposition",...) ?
that is not analouge for VBA
need any code example link, to execute correctly all the multipart (cache call it MIMEtype)
settings
I am new to Cache, we are trying to move a 4 TB database over the internet, but this will be take too long to copy the single backup file. In Oracle and MS-SQL Server there is an option of doing log shipping. Is there such an option in Cache?
I want to copy the initial backup file one weekend, then keep sending the Journals (logs) the new location.
Thank you,
Eudoro
Hi,
I have a requirement to convert few screens having character based interface built in Cache to a web based interface in Java while still keeping Cache as the backend which means database will remain the same. Wanted to know if we have any tool in the market which can help doing that keeping in consideration that these screens in cache are using mumps code.
If we don't have any tool, would appreciate if someone shares their experience in the manual conversion as well.
Announcing gj :: locate. A simple extension for VS Code that will help you get to the source of your errors.
In VS Code, using either the Serenji extension or the basic InterSystems objectscript extension, this small add-on will open the appropriate class or routine and position you at the exact line where an error occurred.
No more tedious counting of lines to find <UNDEFINED>zCredit+206^Ledger.Invoice.1. Instead, with gj :: locate you can get there with just a couple of clicks.
This 20 second video tells it all:
Download now and enjoy getting to the source of your errors.
I can run Google Maps within a Zen app via the <ds:mapView> with no issue.
Is there a way to embed google maps in a ZEN PDF report?
An example of code would be most useful.
Thank you
Please how can I schedule a call with InterSystems admin? We have a need to back up our cache DB server in azure using recovery services vault/snapshot. We Have come up with several designs but we need expert advice from InterSystems’ s team or anybody here in the community. I have been asked to contact an InterSystems admin for support but I don't know how to schedule a meetings since they don't have teams presence with our company.
Hello,
I'm using $ZF(-1) in a class method which will be invoked from a csp page.
What determines the environment of the spawned process? If I use $ZF(-1,"echo hello world > output.txt"), the resulting file is owned by cacheusr:cacheusr. However, when I use $ZF(-1,"printenv > output.txt"), the environment is from my personal unix account, no matter which Cache username I'm logged in under when running the web application.
Thanks
Hi Community,
I am trying to access another process's content of objects like %request and %session. I am using the class/method "%SYS.ProcessQuery:VariableByPid". Does anyone knows how to get the value of the properties like %request.Data("ID",1) from one process that is running on the DB server?
Example of what I am trying to do:
set rs=##class(%ResultSet).%New("%SYS.ProcessQuery:VariableByPid")
set tsc=rs.Execute(ProcessID,"%request")
while rs.%Next() {
w "Name:"_$g(rs.Data("Name")),!
w "Value:"_$g(rs.Data("Value")),!
}
do rs.
Today we have only 'Snippets' to classes:.png)
how i can custom this Snippets to show my labels or variables of atual routine?
gj :: connect is a demonstration extension that shows how to extend the Intersystems Server Manager to perform custom actions.
It makes use of the context menu contribution points to add both in-line and right click menu options.
It also demonstrates how to create a new top level folder in your workspace corresponding to the server and namespace selected in Server Manager.
You may think it isn’t too difficult to get from label+offset^routine to the actual source line responsible for the error. For an expert it isn't that hard... most of the time. But there are enough oddities and special rules that even an expert can get it wrong, whilst spending a lot of time trying to get there.
gj :: locate is the latest tool from George James Software – it debugs any error, class or routine by converting the location of an error in compiled .int code to the corresponding location in your source, and then taking you right there.
Image this scenario…
I checked out a Git-Branch and want to Import all Objectscript-Objects to my localhost.
While using Import without Compilation I receive a lot of errors.
request to http://127.0.0.1:57772/api/atelier/v3/TSTCBW/doc/MusLT01LCOD.int?ignore… failed, reason: connect ECONNREFUSED 127.0.0.1:57772
While using Import and Compile I receive much more of this errors.
Is there a setting, that I have to key in?
Or how can I synchronize my namespace to test my changes?
hi,
I have redhat 8.3, after installation Cache and everything looks good , when i stop the DB by /usr/cachesys/cstop i get :
Apr 18 16:10:22 opticanan Cache(CACHE)[115418]: Cannot remove database lock /cav/mln/cache.lck: Delete failed
Apr 18 16:10:22 opticanan Cache(CACHE)[115418]: Cannot remove database lock /cav/w/mlnw/cache.lck: Delete failed
Apr 18 16:10:22 opticanan Cache(CACHE)[115418]: Cannot remove database lock /cav/w/mgrw/cache.lck: Delete failed
Apr 18 16:10:27 opticanan Cache(CACHE)[115418]: Unable to open database lock /usr/cachesys/mgr/fdbms/cache.
Hi all,
I need some help in studio.
Is there a way to create a variable to determine if it is in the test or live environment?
Thanks
Adrian
If you work with Portal on multiple instances of Caché, Ensemble or HealthShare you might find it useful to set the System Mode of the various instances, so as to give yourself a visual reminder of the role of the one you're currently working on.
For instance:

Greetings all,
Need to connect your VSCode to an InterSystems Server?
Heard of this option?
.png)
Hello everyone,
First, thanks in advance for your help :-)
I noticed that a query called directly in a method of a class of a business operation does not return the same result as if I apply the same query in the same Caché database from Squirrel !!!
I don't understand why ???
Here is the query :
SELECT Header.MessageBodyId, MsgBody.Name AS typMessage
FROM Ens.MessageHeader Header
INNER JOIN EnsLib_HL7.Message MsgBody on Header.MessageBodyId = MsgBody.ID AND MsgBody.TimeCreated >= '2021-04-12 00:00:00' AND MsgBody.
I have a CSP page that is supposed to show some user info (Full name and some other properties retrieved from AD)
I am unable to get them outside of %SYS namespace using Security.Users class. Is there another mechanism to do that, or I am using Security.Users class incorrectly?
Hello,
fine tuning access permissions is a difficult issue in Caché, at least for me as it seems. More generally, I would be interested in how to find out which permission a user is missing when a permission violation is logged. In this specific case a user, created in (from my point of view) an identical way as on other instances, is not allowed to execute an operation within a CSP service on the messagebank (which however works on the other machines). Unfortunately, the message in the errorlog does not tell where exactly the access violation occurs, or what permission is missing.
Hello Everyone
I use VB.NET to dev. some program for query data
Code in VB like this
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
AxVisM1.MServer = "CN_IPTCP:myserver[1972]"
AxVisM1.NameSpace = "LABDATA"
AxVisM1.Code = "s err="""",err=$$select^LVBEPVIS(""" & ln & """)"
AxVisM1.Execute(AxVisM1.Code)
tmptxt = AxVisM1.PLIST.ToString
messagebox.show(tmptxt)
but it show only 
and then i try to run same command in Cterm. it show
Could you suggest What wrong ? and Why VISM.