Problem:
I want to be able to import XML (say, using %XML.Reader) to Caché objects permissively (ignoring invalid/unexpected tags/attributes), but also to validate the same XML and list any/all invalid tags/attributes that it contains.
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Problem:
I want to be able to import XML (say, using %XML.Reader) to Caché objects permissively (ignoring invalid/unexpected tags/attributes), but also to validate the same XML and list any/all invalid tags/attributes that it contains.
In this article I'd like to discuss asynchronous REST and approaches to implementing it.
Why do we need asynchronous REST? Simply put - answering the request takes too much time. While most requests usually can be satisfied immediately, some can't. The reasons are varied:
The solution to these problems is asynchronous REST. Asynchronous REST works by separating request and real response. Here's an example, let's consider the following simple async REST broker:
Hi, community
i am defining a new role on my system , i want that this role has access only to my own data base , do you konw which roles can i add to this one ?
thank you
Hi, I'm a student, weak programming. I ask for your help, I write a program in C #, there are two tables, but I do not understand how to organize the connection between them many to many. Table in DataGridView1 from DataSet1 on Form1 key connection in DataGridView1 from DataSet1 to Form3
I do this on Form1
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex >= 0)
{
DataGridViewRow row = this.dataGridView1.Rows[e.RowIndex];
Form1.IDfor3form = row.Cells[1].Value.Hi community,
my database (HSAUDIT) is only on the read mode , how can i pass to the Read/Write mode?
thank's
Hi,
I was wondering if there is a way to get a copy of Cache for personal usage and development.
Regards
Kumar
Has anyone tried adding syntax highlighting to GitHub for Caché CLS files?
Looking at the list of supported languages and extensions...
https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
It looks like Mumps is supported, and there is also an existing language with a .cls extension, which would account for why I see some very odd highlighting going on with some of my code.
There is a page on contributing a new language here...
https://github.com/github/linguist/blob/master/CONTRIBUTING.md
Looks like its possible to use extensions more than once for different
Hi,
I'm trying to use the IN operator in SQL.
does not work, can anyone tell me why that could be?
for example:
SELECT * FROM TafnitCore_Logistics_TransferPackage_DB.PackageData WHERE ID IN ('1||1||9852553062' , '1||1||9852553061' ) ORDER BY Building
And I get the following error:
SQL
|
Regards,
Nael
What type of tree traversal was we are using in our Cache database?. Please explain anyone.
Thanks in Advance!
sample
w "Total No.Of Sticks:21"_!
s sticks=21
r "enter machine name: ",a
r "enter dev name: ",b
w "Display 1 to 21 sticks"_!
s i=""
f i=1:1:21{
w " "_i_" "
}
user(sticks)
w !_"User select 1 or 2 or 3 or 4 sticks:"_!
r "User enter sticks: ",us
if us>4 {
w "please select upto 4 Sticks"
r "User enter sticks: ",us
}
s cnt=sticks-us
s sticks=cnt
f i=1:1:sticks {
w " "_i_" "
}
s dev=1
s machine=0
d:sticks=0 lost(dev,machine)
d machine(.I set column onclick event, but it is not working
S col = ##class(%ZEN.Auxiliary.column).%New()
S col.header = "Header"
S col.colName = "Data3"
S col.onclick = "alert('ok');"
D table.%AddColumn(col)
alert Ok is not show
What is wrong?
I have seen three different type of data structure.
1.^a -> it is global
2. a^ - > It is tree
3. a| -> I don't know what it is.
if any one know as please share your knowledge.
I am trying to age based on a given date and current date here is my code:
Property DOB As %Date
Method GetAge() As %Integer
{
if (..DOB="")
{
set today=0
}
else
{
set today=$ZDate($HOROLOG,2)-$ZDate(..DOB)
}
write "Today's==="_$ZDate($HOROLOG),!
write today
return today
}In computer science, a programming language is said to have first-class functions if it treats functions as first-class citizens. This means the language supports passing functions as arguments to other functions, returning them as the values from other functions, and assigning them to variables or storing them in data structures. Some programming language theorists require support for anonymous functions (function literals) as well. In languages with first-class functions, the names of functions do not have any special status; they are treated like ordinary variables with a function type.
This post continues the article “Declarative development in Caché”.
[2, 3, 5, 7, 11, 13, 17].forEach(function(i) {
console.log(i);
});How to do something like this in Caché using COS?
Below are some exercises on this topic.
Hi Everyone,
I want to get current day name in cache. Does anyone know how to do that?
Is there a way to get one of:
As a return type from callout call?
And related question: is there a way to return several values (which may contain commas) from one callout call. Or rather what's the best approach when doing that?
Hi All,
Am getting the following error while try communicate with one ensemble from another ensemble using SOAP Adapter
ERROR #5002: Cache error: <TRANSLATE>zRead+195^%Net.HttpRequest.1
Any suggestions on this?
Thanks,
Dinesh
We have 1lakh records in table and while using sql select statement , it is taking more than 9mins to 12 mins to get the records. could you please how to optimize this performance issue if we have more records. how to optimize it.
Hi guys,
is there a way to get the Call-Parameter in an UrlMap to call a method that lies in another class?
Example:
I have a generic class 'RestApi' where I define all my routes for the different Rest-Services I offer - in order to get the same URL for every service.
<Route Url="/checkUID/:uid/:supplierid/" Method="GET" Call="checkUID"/>
This way the checkUID-Method has to be in the class 'RestApi' where my routes are defined.
Hi, Community!
Consider you move data from one server to another or make a deployment with persistent data. What do you do with index globals?
Is it always better to rebuild them or there are some cases when it worth to take them too?
Hi Guys,
Can you please guide me to get rid of this issue. Please find the image files with this post.
Please let me know, before we are developing an API what are all the setup/Configuration(Apache/web server) need to do in my machine.
If any lead would be appreciated.
I don't know, in XMLNamespace parameter which URL need to use.


.
Thanks,
Arun Kumar Durairaj.
DB Intersystems size = 635 gb, while backup size = 669 gb. Cache version is 2013.1
I am using cache for Cobas infinity IT solutions for medical lab information system.
Any idea why is this happening? When the DB was smaller, the backup was less in size. but later I noticed this issue
thanks
Yasser
Hi All, Can you please tell me how to get the Size of the Global Subcript. In Cache 2016 - they are using ##Class(%GlobalEdit).GetGlobalSizeBySubscript() For Older version how to get the GlobalSize of the Subscript. Because the method is not exist in Older Versions and all.
Hi, folks!
Suppose you have a Caché class with %String property which contains relatively large text (from 10 to 2000 symbols).
The class:
Class Test.Duplicates Extends %Persistent
{
Property Text As %String (MAXLEN = 2000);
}And you have thousands of entries.
What are the best options to find entries which are duplicates on this property?
... but let’s first look at error handling.
Hi folks!
Is there a one line command to map class package A to Namespace ASPACE?
In short, I wanted to react on CPUusage warnings and alerts with my own actions. It seemed that it was possible in my Caché version (2015.1):
http://docs.intersystems.com/cache201513/csp/docbook/DocBook.UI.Page.cl…
But all my attempts silently failed. Callback code was as simple as possible:
Class %z.Monitor.Health Extends SYS.Monitor.Health.AbstractCallback{/// This method is called for every Health Monitor sensor reading.<br>///.I am trying to find documentation on how Cache Studio locks a Routine/Class a developer is editing.
On the flip side, I am looking for documentation on how Atelier does the same.
Ultimately I am looking for the differences and what happens if both Studio and Atelier through different developers go after the same Routine/Class.
I am not asking for an answer (however that would be nice), I am looking for pointers to documentation.
Hi,All,
I did a small coding for the HTTP request and HTTP response. When i tried to use a server with ping i was able to get a response from the HTTP request. But when i tried the same with HTTP response i am getting a empty value in the response why is that?
Thanks in advance.
aa=$zwc(411,1,1,3)/*$bit(1,3,5)*/
bb=$zwc(403,1,0,2)/*$bit(1,3)*/
Is there a handy function to test wether one bit string is covered by another one bitstring? For example, "bb" is covered by "aa".
I currently implement this by one AND operation and then do a bitcount, I just want to know any default function is already out there.
Thanks.