I try it with the COLLATE instruction, but doesn't work.
Any ideas ?
Tkanks.
InterSystems Caché is a multi-model DBMS and application server. See more details here.
I try it with the COLLATE instruction, but doesn't work.
Any ideas ?
Tkanks.
Hi,
We are trying to implement a client side data provider as a component (ZEN) that will use JQuery to do rest calls to a desired URL, in this case, a %CSP.Rest service implemented by ourselves.
This component will be used within our application that is authenticated with a correct user configured on Caché management portal and therefore using one license unit. As we are using a Ajax call from client side this connection creates a new session that will use a new license.
We are using ZAUTHENTICATE routine to manage the session authentication for new REST connections but we couldn't get the
Hi all,
For custormer support reasons we would like to know if its possible to activate some kind of flag or see/redirect wich is the code (lines) being executed when some misterious problems appear.
Is there any way to view the stack of execution code on a deployed code environment? Is there any other equivalent way to track the execution stack for a certain period of time?
Best regards
Is there an API I can call to determine the size of a routine in a CACHE.DAT file so that I don't have to directly reference the ^ROUTINE global?
NewBie's Corner Session 17 New command
Welcome to NewBie's Corner, a weekly or biweekly post covering basic Caché Material.
New command
The New command limits a variable's scope or range of use. In theory the New command is simple, in reality the New command is powerful and needs to be respected and understood. In Caché ObjectScript and MUMPS an entire chapter is devoted to it.
There are three variations of the New command:
When used without variables
When used with variable(s)
When used with variables in parenthesis
New command used without variables
Please Explain "$h"
Difference Between Macro and routine?
I wrote a macro in studio. Its how to run with Terminal.
do macro name ^filename is correct are not
what are the difference between Deepsee and Ensemble , and how to access the ensemple .Please Tell me
Sir, please give a sample program for cache with database . It is useful for my individual learning.
Can anyone explain me how to create a dynamic session in CSP?
Process-private Globals can be used as a data global in storage definition. That way, each process can have its own objects for the class with ppg storage. For example lets define a pool, which can:
Here's the class:
/// Stores unique identifiers
Class Utils.Pool Extends %Persistent
{
Property Value As %String;
Index IDKEY On Value [ IdKey, PrimaryKey, Unique ];
Method %OnNew(Value As %String = "") As %Status [ Private, ServerOnly = 1 ]
{
Set ..Value = Value
Quit $$$OK
}
ClassMethodI am learning cache in beginning level . But confused .Give an idea for how to i learn cache easily and improve programming level
I'm running into difficulty calling a javascript method from a Zenmethod. I pass in a parameter, but in the javascript method the parameter is undefined. Here is the code:
...
<button id="btnSave" caption="Save " onclick="zenPage.doSave();" controlClass="bButton"/>
...
Method doSave() [ ZenMethod ]
{
If (..ID = "AddNew"){
//do save code here
&js<zenPage.doAddNew();> //this works just fine, but there's no parameter
}Else{
//do update code here
//call javascript method from
NewBie's Corner Session 16 Introduction to New Concepts
Welcome to NewBie's Corner, a weekly or biweekly post covering basic Caché Material.
A number of new concepts are introduced in this session that will be developed more fully in subsequent sessions. It is necessary to at least introduce these concepts here because they are all interrelated.
Older style of MUMPS Programming
A routine has access to all the variables it creates.When Routine-A calls Routine-B and Routine-B calls Routine-C, and so forth, this is known as a Call Stack.
Problem: I have a REST broker, and if I hit a code block, which does IO redirection, the REST reply becomes broken in one of the following ways:
Consider the following REST broker:
Class A.REST Extends %CSP.REST
{
XData UrlMap
{
<Routes>
<Route Url="/Test/:redirect" Method="GET" Call="Test"/>
</Routes>
}
ClassMethod Test(Redirect As %Boolean = {$$$YES}) As %Status
{
Set str = $TR($J("",4098)," ","1") // Get a string with the length of 4098 symbols
Do:Redirect ..OutputToStr($Classname(),How to get a user input in cache . Below this program run in browser but displayed the error of "
Caché Server Pages Version 2016.1.1.108.0
Error Condition The processing of the request was interrupted
CSP application closed the connection before sending a complete response"
<html>
<head>
<title>User input </title>
</head>
<body>
<script language="Cache" runat="server">
r "enter 1ST num",x
r "Enter 2ND num",y
s z = x+y
w z
</script>
</body>
</html>
Are Excercise parts avilable in documentation of InterSystems cache . Please Give the link. Thank you
What are Prerequisite (.dll files) to Configure CSP in IIS 7
OS:windows 7 *64bit
Cache version 2014.1.0.507.0 (Installed as Developer)
Hi,
I create a cache class program. Its compile it. But how to run it?
Please send one sample program with output
I'm with a problem in a property, where she has two parameters that conflict, DISPLAYLIST and VALUELIST.
In screen when I'll go to set value in the field, the CACHE transform internally the property of LOGICAL to DISPLAY with propertynameLogicalToDisplay(propertyname), far so good.
My problem is in the property, why, by default she send the value as DISPLAYLIST, in hour of transformation as the value is DISPLAY MODE the error occurs.
How I do to that default value be VALUELIST and not DISPLAYLIST?
Hi All,
Any one having documentation to configure crystal report with Cache.
Hi All,
Any possibilities to open a new terminal by using another terminal in Cache.
Date range queries going too slow for you? SQL Performance got you down? I have ANOTHER weird trick that SQL Developers don't want you to know!*
I cant find any description on how to read custom http request headers in a REST service.
On some occations i want to read http headers passed along when customers uses our REST API or headers added by the CND provider. Does anyone know how to read these http headers?
For example:
cloudflair.com sends a vistors country information along to the server using a customer http header called "CF-IPCountry". We would like to read this information and use it for statistics.
NewBie's Corner Session 15 Executing Routines and Labels
Welcome to NewBie's Corner, a weekly or biweekly post covering basic Caché Material.
Routines and Labels
Routines are computer programs with a number of executable code lines.
Labels (also called tags) are points in a routine that can be called (executed). They subdivide routines into manageable modules (or subroutines).
Routines, Subroutines/Modules and Functions
Using the method ##class(%SYSTEM.Process).GlobalReferences() I'm able to know how many global references has been done in the process. But I'd like to know how many of those references has been done by my code and how many has been done by Cache itself.
When from a class I execute a method of another class, Cache is internally accessing globals (I suppose to get the code of the called method). I would like to not count those accesses done by Cache.
For example:
I've a method (Statistics) that counts the number of references done by another method (A).
How to open like gmail ,facebook,etc by using cache terminal using $ZU commands,Any one know ? please
Using Node.js with Caché - Introduction says the following:
The cache.node module is the Node.js interface for the GlobalsDB kit, which can be obtained from the GlobalsDB download page (http://globalsdb.org/downloads/). The Node.js interface can be used with either Caché or the free GlobalsDB database.
The installation kit includes detailed documentation on how to install and configure the cache.node module.
However, http://globalsdb.org/downloads gives a 404 and http://globalsdb.org just redirects to intersystems.com
Where can I find the files I need?