I need to do an ordering, within another order, but it is not ordering.
InterSystems Caché is a multi-model DBMS and application server. See more details here.
InterSystems Caché is a multi-model DBMS and application server. See more details here.
I need to do an ordering, within another order, but it is not ordering.
I have an iKnow domain and a blacklist called Ads.
I want to get all sources that do not contain entities from Ads list.
Currently I'm doing it like this:
ClassMethod NoAds()
{
#dim domainid As %Integer = 1
set filterNot = ##class(%iKnow.Filters.GroupFilter).%New(domainid,, $$$YES)
#dim blackListId As %Integer = ##class(%iKnow.Utils.MaintenanceAPI).GetBlackListId(domainid, "Ads")
set sc = ##class(%iKnow.Utils.MaintenanceAPI).GetBlackListElements(.blackList,..#DomainId, blackListId)
set filterAds = ##class(%iKnow.Filters.ContainsEntityFilter).%New(domainid, .blackList)
set sc = filterNot.AddSubFilter(filterAds)
#dim page As %Integer = 1
#dim pagesize As %Integer = 0
set sc = ##class(%iKnow.Queries.SourceAPI).GetByDomain(.result, domainid, page, pagesize, filterNot)
zw result
}Let's say I have a user-generated document template with placeholders and I want to replace them with actual values.
Values could be:
So far I wrote a simple find/replace tool that works with RTF format (because it's not a binary format), here's how it works:
set template = "D:\Cache\RTF\template.rtf"
set var("%title") = "Hello"
set var("%table") = $lb("Utils.RTF", "TestFunc")
set result = "D:\Cache\RTF\out.rtf"
set sc = ##class(Utils.RTF).replace(template, .var, result)I have a serial object:
Class EmbedObj Extends %SerialObject
which is stored as a property of another object
Class ContainerObj Extends %Persistent
Property InnerObj As EmbedObj;
Property Foobar As %String;
Question:
From within the context of an instance of EmbedObj, how can I navigate to the containing instance of "ContainterObj" and find that value of its Foobar property?
Harder Question: Is there a way I can do this as part of SQLComputeCode? (my EmbedObj has a Calculated property which now needs to depend on the value of property Foobar of the containing object).
Hello,
If this question is in the wrong section, I apologise.
Has anyone ever used Cache Object Script to connect to any hardware such as a sensor?
What I mean is this :-
Lets assume that code has been written in Cache Object Script where it can detect breaks in electrical connections.
I've set up a Ens.Alert routing rule and would like to route alerts to different email groups based on business partner or alert group instead of relying on source config using Document.SourceConfigName. Is there a way to reference the business partner or alert group property in a routing rule?
You can compile all csp and cls by studio.
I know you can do it for the terminal, but it is slow, can you do it for the studio itself?
How to improve studio performance
We are updating from 2015.1.1 to 2017.2. I am testing the Hot JVM functionality to see if our current functionality is working in the new version of 2017.
I am having a problem trying to make it "fail".
Generally if I put in an invalid renderport then I usually get an error. Now if I put in an invalid renderport it generates the PDF anyway (FOP).
Was there a change where if it fails using the renderserver then it will create a new instance of Java to produce the PDF?
Hello All,
I hope it's not a silly question.
Here is my issue:
I have 3 simple classes:
Parent class, let's say:
Class ParentClass Extends %RegisteredObject
{
Property a As %String;
}
and two children classes
Class A.Child Extends ParentClass
{
Property b As %String;
}
Class B.Child Extends ParentClass
{
Property c As %String;
}
So no issues - all compiles and seem to work.
But, when I add %XML.Adaptor to my parent class, so:
Class ParentClass Extends (%RegisteredObject, %XML.
Is there compatibility with java language in the studio?
How to download or send images to excel
I need to embed an image in excel when exporting a report, but I can not.
Can anyone help?
Is there a way to add event listener for a zen control?
I have a custom text control and I want to add 'change' event listener for it.
Is it possible to do not using 'onchange' property?
++ Update: August 1, 2018
The use of the InterSystems Virtual IP (VIP) address built-in to Caché database mirroring has certain limitations. In particular, it can only be used when mirror members reside the same network subnet. When multiple data centers are used, network subnets are not often “stretched” beyond the physical data center due to added network complexity (more detailed discussion here). For similar reasons, Virtual IP is often not usable when the database is hosted in the cloud.
Network traffic management appliances such as load balancers (physical or virtual) can be used to achieve the same level of transparency, presenting a single address to the client applications or devices. The network traffic manager automatically redirects clients to the current mirror primary’s real IP address. The automation is intended to meet the needs of both HA failover and DR promotion following a disaster.
Hi community!
Is there any way to create new method keywords?
For example:
ClassMethod TestOne() [ MyKeyword = MyValue
Another doubt (maybe another topic)
How can I generate new methods at compilation time for the same class?
I tried method generators, but It only gets compiled when I compile for the second time.
I also read this comment but I could not find out how to generate the methods and get them compiled in the first compilation.
For example:
Class util.Test
{
ClassMethod TestOne()
{
Write 1
}
ClassMethod TestTwo()
{
Write 1
}
}
Time after time on CSP Session page of our Cache 2017.2.1 installation I see that all licenses are consumed by CSP sessions of /csp/sys, /csp/sys/op/and /csp/sys/mgr applications which I assume are sessions of Management Portal. The problem is that there are only few of us accessing the Portal and as we test by browsing Portal, we can't reproduce the problem.
Is there any way to see client IP of CSP session? Any other way to approach the problem?
The problem looks very similar to the Forefox-related one but we don't use Forefox.
Help, after a day of coding, I wanted to backup my files. I found out that alle of my 3 instances of caché refuse to start.
the error says: cstart-exe-fout (112 Service for Caché instance did not start).
Is there a way to solve this? (off course the management portal does not work either.)
I think there has been a power interruption as the battery from my laptop does not work, and the power went off before
shutdown.
Thanks in advance!
By Paul Mike Kadow
Edited by Deborah Graham and John J. Mitchell
Go to http://cosmumps.org for a download of just the examples of the book and the table of contents.
InterSystems, from a humble beginning, has grown into a worldwide company with its flagship product, Caché, leading the way.
First, this book chronicles and explores some of the many areas InterSystems has grown into and has influenced over the years.
Next, turning to the Caché and MUMPS developer, this book has multiple chapters on Globals, Classes, SQL/Query, etc.
Hi,
I was wondering if there is any way to count elements from an array. I guess not as an array could be multi-dimensional and that would be a problem to return the number of elements inside the array.
As an example:
Information about arrays: https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KE…
Thanks
Does anyone have any sample code for updating Caché users (and specifically Full Name and Comments) via SQL?
Bonus points for knowing specifically what security resource needs to be assigned to allow someone to run the SQL.
Thanks in Advance!
Ben
I have a cache client with a list of several servers.
One of the server is working with an IIS server that is not the Cache DB server.
The connection to the IIS server is only through https (SSL)
I tried to define the Web Server IP Address to https://some.server.name but it didn't let me to specify the https
So I tried to define Web Server Port to 443 but when I chose the SMP it's trying to open http://some.server.name:443/csp/sys/UtilHome.csp
and the same for documentation it tries to open http://some.server.name:443/csp/docbook/DocBook.UI.Page.cls
I'm working on a task where I need to apply journal file records to another database. I can't use Journal.Restore class methods as I need to perform some data transformation, therefore I'm reading journal file record by record using %SYS.Journal.Record API.
It seems that there are only few journal records that I need to process, namely:
Type TypeName
No problem, while I'm just curious: which COS command could provide KILLdes record? I've met it only once in the context like this:
KILLdes ^SYS("Task","TaskD",1006,"EmailOnError",1)Hi - has anyone successfully used the python binding on a mac. I carried out the install instructions per InterSystems documentation and it fails completely. 204 warnings and 9 errors. Obviously this was never tested by InterSystems. Is it even worth pursuing?
Thanks
I need to send a PATCH call from the server to a given url.
Until now I was using %Net.HttpRequest to issue calls for get/post/put but today I had to make a PATCH and I can't find a way to do it.
Hi, Community!
What is your favorite issue tracking system for projects with InterSystems Data Platform? What did you use and what are you using now?
In projects with InterSystems Data Platform, I worked with Redmine, JIRA, Trello. A lot of code versioning systems now have this feature too (Gitlab, Github).
Now my favorite for small and medium projects is Github, because it is simple, is very close to code (commit-issue linkage) and it has kanban).
E.g. see the DC public GitHub project (and add your issue request ;)
What is your choice?
Hi Guys,
have a file located in \\servername\Myfiles\pull.csv but for some reason my cache routine can't file, but can when using the local drive C:\servername\Myfiles\pull.csv.
FYI I can access \\servername\Myfiles\pull.csv via Win explorer with no problems.
anyway how I can fix this?
Thanks Guys
Hi, Community!
$CASE is a fine syntax sugar for "Ifs" with one-line/one-word expressions, like in docs:
SET daynum=$ZDATE($HOROLOG,10)
WRITE $CASE(daynum,
1:"Monday",2:"Tuesday",3:"Wednesday",
4:"Thursday",5:"Friday",
6:"Saturday",0:"Sunday",:"entry error")But if my expression for a current case is a multi-line business logic? Can I use "{}" somehow or better go with "IF" instead?
Hello community, simple question. I've been able to use a ternary operator equivalent by using $select for inline if statements using this pattern:
set x = 1
set result = $select(x = 1: "true", x = 0: "false")
These can be nested and can have a lot of options. But I'm curious if there is a native way of using ternary operators in ObjectScript?
Thank you
Is there a datatype class with validation for global references? I can't find one in a brief scan of the documentation / class reference.
I am working with a client to try and export a set of tasks defined in the Task Manager from one system to another. I am not seeing any API for this. I can query this information in SQL. So I tried to use the Data Export Wizard from the System Management portal in the SQL window. Export was fine. Importing failed with a "can't insert into read only field" error. Looking at the class definition does not help since the implementation details are not visible.
So how would one accomplish this? Export scheduled tasks from one system to another?