I have a method would return %Status,
this method would run some sql queries and if the execution of these queries fail, I would like to return asap.
So how could I wrap the %SQLCODE into a %Status variable?
Thank for your help.
InterSystems Caché is a multi-model DBMS and application server. See more details here.
I have a method would return %Status,
this method would run some sql queries and if the execution of these queries fail, I would like to return asap.
So how could I wrap the %SQLCODE into a %Status variable?
Thank for your help.
Hello,
I've been manipulating XML objects via Cache, but have had some difficulty understanding how to use the following method detailed within EnsLib.EDI.XML.Prop:
Method choiceGetCount(Output pCount, pDOMPath As %String, pRef As %String) As %Status
From what I've read when walking through the code for this method, it appears to count a listing of repeating XML elements. However, despite my attempts to search for examples or attempts to implement this function, I am unable to do so.
Would anyone have any examples or ideas?
It was my answer to the question appeared in GoogleGroups. And when I answered there I figured out that it might worth to post an article and to add some light on how Unicode is stored in Caché.
I setup an account in Cache and when I try to sort the dictionary item in the file by using the command SORT DICT filename, where filename is the name of the file i.e. SORT DICT TEST, I get the following error CMQL: The DICT entry "FIELD.ASSOC_" is not defined
The LISTDICT works correctly. Any thoughts on how to correct this error?
As I mentioned in an early post the roots of COS were laid in the late 60ies of the 20th century.
Close to that time, BLISS was designed at Carnegie-Mellon University (January 15, 1970)
https://en.wikipedia.org/wiki/BLISS
Similarly in 1972 C language was written at Bell Labs.
https://www.bell-labs.com/usr/dmr/www/chist.html
Both were designed to overcome the portability limits of code written in assembly language.
While BLISS was running on DEC machines and vanished with Digital Equipment Corporation
C language and later C++ expanded on almost any processor technology until today.
Both had the need
Hi World
I've a problem when in extract a float value from my database
the problem is that i get an interger instead of float.
my record is 2,56 but when i do a select , the request extract only 2
can you have a solution for it.
thank you
I want to call ZenMethod when page is closing. Is it possible?
I tried
ClientMethod onunloadHandler() [ Language = javascript ]
{
zenPage.SomeZenMethod();
}
Method SomeZenMethod() [ ZenMethod ]
{
// to do some work
}
but it is not working
Hi, Community!
Say you have a standalone Caché server on Linux (E.g. Ubuntu) (no mirroring) and you have sudo access via ssh.
What is the easiest, safest and simplest way to upgrade Caché to the new release?
How do you do this?
HI,
I have a query like below but its syntax is not accepted by Cache.
I would like to perform a left join on two tables first and then make a inner for this result with another table.
Given the constraint that we only allow one SELECT in the query, it is possible to achieve this semantics ?
Thank for your help.
Select *
FROM ( sample . employee e
LEFT JOIN sample . company c
on c . id = e . id ) g
JOIN sample . vendor v
on v . %id = g . attr
I am trying to read a csv file and transfer it to a XML file without storing the objects to a database I have this code here doing the reading and have another method transferring the object read to a file but the reading one reads fine when it comes to the converting one I run to problems nothing happens any help appreciated
ClassMethod Write(obj, directory As %String = "C:\40_Test\") As %Status
{
set writer=##class(%XML.Writer).%New()
set writer.Indent=1
// set the file
Set filename=directory_"Generatedfile"_".xml"
setHello again and welcome to the next tutorial on this series: Part 4 - Sharing data across router methods. Here we are going to learn how to share a object containing data that is available for read across every router methods.
You're required to complete at least the Part 1 before entering this one. Still, this is supposed to be a really short tutorial, since there isn't much to be said about data sharing.
Hi Community,
There is any way that I can use Studio Source Control in Atelier, or adapt it to use?
We have a solution based on Studio Source Control, and I cannot make it works with Atelier, I can not even see the classes .
Thanks,
Andrei L. Nenevê
I am sending a file in Postman and receiving a status 200OK. but i need to get the response in the body too. I have Implemented the class %CSP.REST to get the %request and %response. There is no default method to invoke and post the content via %Response class. Can any one suggest me the sample code for that.
I'm trying to write an installer manifest that can create a namespace, resources (%DB_namespace) and a role (with the resource, above), based on the namespace. So you could pass in "ABC", or "XYZ", and it would create the %DB_ABC resource and the ABC role with %DB_ABC:RW permissions; or it will create the %DB_XYZ resource and the XYZ role with %DB_XYZ:RW permissions, accordingly.
I have a variable set up for the name of the namespace (in my code it's called PMGNAMESPACE), and I create a variable for the resource name, called PMGDbResource ( this == %DB_ABC)
The installer manifest is not
Hi Community,
Has anyone ever set up a web service that takes a stream data type as an argument? The client will be dotNet.
This is the error I see:-
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>Badly formed SOAP Message</faultstring>
<detail>
<error xmlns='http://soap.rmh.nhs.uk'>
<text>ERROR #5002: Cache error: <INVALID OREF>XMLLOOP+9^WebService.eDCGold.GetRootKeyLocalRef.1</text>
</error>
</detail>
</SOAP-ENV:Fault>
I have switched to a string data type for now and that is working fine.
Hi everyone,
I really like using dynamic objects and dynamic arrays, Usually ending up with an SQL query that returns a JSON object i throw into my application via REST and work out things from there.
Recently I noticed that I keep using dynamic objects as simple storage solutions like:
set settings.customerSelection = 1
instead of ending up with several variables flying around.
This certainly is way more inefficient than having simple variables but does it make a huge difference? Especially considering how much more organized the code appears?
Cheers
Hi ,
I am newbie working on Cache .
I have a global ^BB("QA",QDJ,QTM+i) , i want to create a table or a view to access the data from this.
I am expert in creating tables & views on RDBS like Oracle, SQL server. But no idea on Cache.
Can someone guide me from scratch how to pull the data from the global.
I have installed Cache Studio on my machine.
Regards
Recently, we scheduled two tasks (1008 and 1009) within Task Manager. Task ID 1008 is set to run after Purge Tasks (%SYS-ID:3), and Task 1009 is set to run at 7:00:00 each day.
In attempt to provide as much detail as possible, each of the tasks are as follows:
WHILE (($p($h,",",2) < $ZTH("10:00 PM")) && ($P($g(^Task.1008(+$h,$j)),"^",1) = +$h)) { J ^ROUTINE, ^ROUTINE2 D SUB^ROUTINE3 H 5 }WHILE (($p($h,",",2) < $ZTH("10:00 PM")) && ($P($g(^Task.1009(+$h,$j)),"^",1) = +$h)) { d ^ROUTINE4, ^ROUTINE5 J SUB^ROUTINE6 }The two tasks both reach an UNDEFINED error, which seems
I want to export a project from Studio, but when I do so I get an error that I cannot use the default name and should rename the project instead. However, I cannot find anywhere how I rename the project.
I have an xml file that I read into objects and I am trying to print that file back in nested xml anyone with idea on how that can be achieved or where I can read in order to achieve this, here is an example of what I am trying to do.
From this
<Root>
<FamilyMembers>
<familyName>
</familyName>
<Name>
</Name>
<Age>
</Age>
<Employment>
</Employment>
</FamilyMembers>
</Root>
To this
<?xml version="1.0" encoding="UTF-8"?>
<Root>
<FamilyMembers>
<Family>
<familyName>
</familyName>
</Family>
<Name>
</Name>
<Age>I have an application that as part of the registration process is using reCaptcha to provide a captcha. The issue is that service is served from Google and is unavailable in certain countries, namely China. I've been researching this some and believe it's possible to proxy the requests to the Google CDN to avoid the Chinese firewall ban on Google URLs, however I'm not quite sure how to do this in CSP.
Does anyone have suggestions on how to solve this, either with a technical solution or an alternative service I can fall back to?
An example would be greatly appreciated.
Thanks
I am pleased to announce that Release Candidates of Caché and Ensemble 2017.2 are now available.
Many customers have already downloaded the Field Test over the past few months, and we appreciate your feedback.
This release contains significant improvements, including:
I'm simply trying to evaluate what is available in terms of JSON projection of registered objects within Caché.
If you have an app that uses some Caché client Windows components that are not included into CacheODBC distribution (e.g. CacheActiveX.dll), you need to proceed Caché client installation on end user's client computers and/or MS Terminal Servers. Being a part of Caché client's installation, Caché Cube is installed along with other components and is autostarted with every user's session. So, it becomes visible to every user.
To make it completely invisible, you can just move CACHE.lnk file from
"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\"
to some other (backup) folder (assuming
Is there any Test Driven Development tool for Cache for the web development. If so can any one help me on this.
Thanks in advance.
One of the most important features during application development is the ability to debug your code easily. Because of the asynchrnous nature, a standard Node.js application server works single-threaded by default. When you are developing applications using an IDE like Visual Studio Code, you can very easily debug your Node.js process:
First, download the free Visual Studio Code IDE (@code) and install it on your development machine.
We will start with basic debugging using a very small test.js file and go to the debug view:

You'll notice we need to define a debug configuration first (at the
how to set some specific value for the variable if the user enter that specific value then only it will go to next step
When i tried to print .txt format,data will be coming without space between each row but when
I tried to print .xls format mean ,it gives gap of each row.what is the reason behind this?
How to show alert message on ZEN when user closing window?
Standart js way to add listener is not working.
I tried this
ClientMethod onloadHandler() [ Language = javascript ]{zenPage.window.addEventListener('onbeforeunload', function(e){
return 'Are you sure you want to leave?';});
}and this, but both are unsuccessfully .
ClientMethod onloadHandler() [ Language = javascript ]{
zenPage.window.onbeforeunload = zenPage.myClientMethod;}Hi All,
I need some clarification on web service (Soap Service). For each Soap request, system consuming 1 license and it is not releasing until CSP session timeout and extra grace period 5.10 minutes(310 seconds).
Due to this, at some time license consumption is full.
If i use with Login credential (i.e password authenticated web service), it consumes one license for 25 connections(request).
But i need to use it as anonymous user(Unauthenticated).
Please advice.
Thanks,
Sabarinathan M