Hi,
Is it possible to call a REST service from a business operation in Cache? Does anyone have a sample for me to take a look at.
Note:
I am new to Cache, just started learning:)
Beginner tag unites articles and questions for those who are getting started with InterSystems Data Platform
Hi,
Is it possible to call a REST service from a business operation in Cache? Does anyone have a sample for me to take a look at.
Note:
I am new to Cache, just started learning:)
Sometimes, we need to copy part of the properties of an object into a different one.
The simplest thing would be to do the following:
Set obj1.FirstName = obj2.FirstName
Set obj1.SecondName = obj2.SecondName
What happens if the object contains a large number of properties? or we just want to extract an important group of data, and complement the information in another object?
Having the following classes:
Class Kurro.PersonalInfo Extends %Library.SerialObject
{
/// Code of personal
Property Code As %String;
/// First name of personal
Property FirstName As %String;
/// Second name of personal
Property SecondName As %String;
/// Date of birthday of personal
Property DateOfBirthday As %DateTime;
/// Passport ID number
Property PassportId As %String;
}
Class Kurro.NameInfo Extends %Library.SerialObject
{
/// First name of personal
Property FirstName As %String;
/// Second name of personal
Property SecondName As %String;
/// Date of birthday of personal
Property DateOfBirthday As %DateTime;
/// Relationship
Property Relationship As %String;
}
I am using the EnsLib.RecordMap.Operation.BatchFileOperation to write a batch to a file but for some reason this has been working fine as of yesterday I had a problem with the cache databases filling up running out of memory so had to compact my database and gain space now when I run the operation I get the above error .Of course in my batch table there is no batch record with ID 1.The message is passed with the correct header information but still get this error any suggestions why?
Does developing a RESTful API in Caché remove the requirement to use the InterSystems.Data.CacheClient.dll and generate proxy classes using the Caché Object Binding Wizard for .NET web development? If anyone has links to sample applications using .NET with Caché and REST Services, I would be grateful if you could share them.
The following post is a guide to implement a basic architecture for DeepSee. This implementation includes a database for the DeepSee cache and a database for the DeepSee implementation and settings.

Set httprequest=##class(%Net.HttpRequest).%New()
Set httprequest.Server="www.intersystems.com"
Do httprequest.Get("/")
Do httprequest.HttpResponse.OutputToDevice()
Do httprequest.Get("/cache/")
Do httprequest.HttpResponse.OutputToDevice()The above is the code which i found in this link http://docs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?…
How do the above code works and can i be able to run this?
Thanks in advance.
Hi, iam newbie on caché database.
Iam trying, export data from query.
I read in some article that is not so simple.
So I create a view then a execute a query insert into select statement.
I have problem to know the job progress. I execute an hour ago and nothing happened.
Iam using intersystems web IDE.
Thanks for help!
Hi. I am newby in Cache. My source code at below. I have problem in Relationship property. Could you please help?
/// Class %Persistent
Test.Chapter %Persistent
then in terminal I am running these commands:
USER>set c1 = ##class(Test.Chapter).%New() USER>set c1.Name = "Introduction" USER>set c1.Page = 10 USER>set c2 = ##class(Test.Chapter).%New() USER>set c2.Name = "Development of DB" USER>set c2.Page = 13 USER>set b = ##class(Test.Book).%OpenId(1) USER>do b.Chapters.Insert(c1)
Several $System.OBJ methods have ByRef errorlog argument:
Compile(ByRef classes As %String = "", qspec As %String = "", ByRef errorlog As %String, recurse As %Boolean = 0) ImportDir(dir As %String = "", wildcards As %String, qspec As %String = "", ByRef errorlog As %String, recurse As %Boolean = 0, ByRef imported As %String, listonly As %Boolean, ByRef selectedlist As %String)
What's the best approach of working with errorlog?
Do you convert it to status? If so - how? Manual iteration over local?
Is there some system method to convert it into %Status?
Hi all,
I've created a method to calculate the age of a person, or the age of a process, contract or other stuff as you want.
/// Calculate the age from date of birth and other date (by default shoud be today).
/// <b>dateOfBird</b> Date of birth in cache format. ie. $ZDH("1972-01-01",3)
/// <b>day</b> Date to calculate to. ie: $H
ClassMethod AgeAt(dateOfBirth, day) As %Integer{
quit:dateOfBirth=""
quit:day=""
set yeardob=$SYSTEM.SQL.DATEPART("year",dateOfBirth)
set yearday=$SYSTEM.SQL.DATEPART("year",day)
set years=yearday-yeardob
kill yeardob, yearday
set monthdob=$SYSTEM.SQL.DATEPART("month",dateOfBirth)
set monthday=$SYSTEM.SQL.DATEPART("month",day)
if (monthday-monthdob)<0 set years=years-1
if (monthdob-monthday)=0
{
if ($SYSTEM.SQL.DATEPART("day",day) - $SYSTEM.SQL.DATEPART("day",dateOfBirth)) < 0
{
set years=years-1
}
}
kill monthdob, monthday
quit years
}
Caché prints to printers in a manner somewhat different from other Windows applications. Caché sends the data directly to the GDI Printer, without the usual interface. This is because the GUI interface can only be shown on a system desktop session and not in web browser and terminal sessions. Some printer drivers have problems with this method of printing.
Is this the problem you are having?
Hi.. I have an issue where we are using OAuth2.0 with the ZAUTHENTICATE routine. Once our token is validated we are using a users lan id (passed on the ID token) to find a software defined username in a Cache Global.
That is all working fine in ZAUTHENTICATE.. I am setting the software defined username in the Properties("Comment") array and wanting to reference it in the Rest Service Dispatch class.
I tried to learn DEEP SEE Analytics for our HealthShare "SAMPLES" Name Space. I followed our documentation and tried it. But my management portal analyzer and visual reporting fields are hidden. So Please help me for how do I use the deep see concepts and provide some examples or demo.
Thanks ,
Ponnumani G.
Currently to check if the class is mapped I call:
ClassMethod IsClassMapped(class) As %Boolean
{
set sc = $system.OBJ.GetClassList(.classes,"/system=0 /percent=0 /mapped=0")
quit $data(classes(class))
}And it works, but I'm interested if there is a simpler approach out there?
Hi
I am fairly new to Ensemble development.
I was wondering what is the best process of returning the resultset from a SQL outbound adapter to the BPL that had invoked it.
Thank you for your help.
Kind Regards,
Salma
Recently DigitalOcean introduced new plans for droplets, but as existing droplets stayed on the old plans I decided to use API to resize them automatically. After reading tutorial, I wrote partial client for DigitalOcean API, which I would like to share today.
Hi I'm new in cache ... How do i get the last date of the every month
In part 1, part 2, and part 3 parts of this series we set up three user types. In part 4 we saw how to secure model elements and DeepSee items. In this last part of the tutorial we conclude with some remarks on DeepSee security and troubleshooting tips. In particular, we see how pivot tables in User Portal can be "hidden".

In part 1 we started working on a security model for DeepSee and create a user type having privileges typical of end users. In this part we are going to create a second user type with ability to edit and create DeepSee pivot tables and dashboards.

Hi, Community!
Someday you find yourself having a wonderful class package which can be helpful in several projects. So it is a library package.
How to make the classes available for different namespaces in Caché? There are two ways (at least two ways familiar to me):
1. Start the name of the package with %, like %FantasticLib.SuperClass. Wrong way.
If you do that the class would be placed in %SYS and would be available in other namespaces.
This is wrong because of the two reasons:
1. The class will be wiped out with the next Caché update (as all the %SYS Namespace).
2.
Hi I am new using atelier and i want to use some of the InterSystems server for me to train so is there any server connections that i can use. Please help me on this.
Hi everyone
I'm new in Cache development language and I'm starting setting up Unit Tests.
How do you check with an Assert whether a certain variable is null or undefined?
The following assert throws an error on the "null": do $$$AssertEquals(myObj, null, "myObj is null")
Thanks a lot for your help and best regards
Milena
What is difference between using a command $classmethod rather than just invoking them straight away?
For example if i need to call a class and its method i can just use like
do ##class(circle).radius()
rather than using
do $classmethod("circle",radius)(I suppose both of them doing the same function i am not aware of it)
Please help me understand what is different and is there any specific usage.
Correct me if i have made mistake.
How can I get a terminal connection to Caché server from Atelier?
Is it possible?
In if condition what is the difference between specifying the single operator and double operator? For example, what is the difference between (&& and &) or (|| and !)
Hello everyone, I work for a company that currently uses Studio on version 2016.1.2, and will be looking at options to upgrade to 2016.2 and beyond. This would also include the potential to switch from Studio to Atelier, however there are a lot of workflow changes and new features to test.
Does Atelier have a simple way to evaluate what it has to offer without needing to setup an entire separate environment? How did your organization demo its features before committing?
Thank you! ![]()
I am trying to read an xml document using %XML.TextReader and that's is all well and l can get my elements values but would like to determine where the next record start on the xml without referring to the document path in essence would like to use the same method to read different xml docs. I would like to know if is there a way or a function that I can use to get the start and end of a record in xml as I would to get the start and end element.
Hi Team,
How to we get a data from http response using HHTP request.Give one Example.
Thanks ,
Ponnumani Gurusamy.