I want to assign below query result into my Person class which have Name,DOB properties, and then convert into JSON.
SELECT Name,DOB FROM Sample.Person
Hi Guys,
I am new to Cache, I am trying to create an simple REST API on Studio and testing it with postman before that i have config the Web Application System > Security Management > Web Applications > Edit Web Application and i have attached my snapshot also with this post.
When i testing it on postman i am getting "Service Unavailable" error. I really don't know where i did a mistake. I tried to console it on my code, when I the postman Url is not calling my code,So i think i did a mistake on my config part. Please give me some suggestion
Thanks in advance.
I have a repository that I want to have in my /home/centos7/ directory, but it appears that Cache cannot access files there. Is that really the case?
It seems like this is the case because in System Management Portal, when I try to up a new database in /home/centos7/, there aren't any directories listed, even if I add a custom one. Is Cache blocked out from this directory, and are there any others that Cache doesn't have the permission to access?

Hi
I was wondering whether anyone can help I would like to know what is the underlying method that is used for exporting lookup tables from within studio. I would like to do this programmatically. The export function provided with Ens.Util.LookupTable is not compatible with studio.
Thank you.
Kind Regards,
Salma
I got below error when passing Date in timestamp format.
I am using %JSON.Adaptor. Please refer screen 2
.png)
.png)
.png)
Some time ago, InterSystems introduced the concept of %DynamicObjects.
This feature is a powerful tool that makes it very easy to convert any string of JSON text to objects and vice versa.
However, in the work that J2 Interactive is doing for our customers, there are a couple of things that "need some tweaking".
Very often, we create REST services for our customers. Those services have a payload (in JSON format) that contains information that our customer expects in the form of an object that is proprietary to them.
Hello everyone!
hello guys, where could I be learning how to program in COS language? I need help please.
I need use/create an app based authentication class, best options on other languages is bcrypt, but on cache(2017.2) is not and option, any suggestion to construct this option ?
Hi Team,
I am using %JSON.Adaptor class for Json validation.
Using below statement I got only one required field validation.(refer below screen)
SET stat = objExternalUser.%JSONImport(%request.Content)
I need summary of all required field.
.png)
.png)
Hi Everyone!
New video, recorded by @Benjamin De Boe, is already on InterSystems Developers YouTube:
Scaling Fluidly with InterSystems IRIS
Hi Developers!
InterSystems Developers Community today unites more than 7,000 developers from all over the world. Since 2016, our community has been growing and improving for you, our dear developers!
Together we've done a lot over these years, and much more is planned for the future!
So, who makes our community better every day? Who tries for all of us and improves the space for developers?
Let's warmly greet our team:
I need RowId of inserted record.
I have used below logic to get max row id,
but it will not give desired result when multiple people enter record in the table at the same time.
.png)
I am still working on a generic task where I need to apply journal file records to another database. Initially I didn't want to use Journal.Restore class methods as I need to perform some data transformation, and it seemed that the clearest way to achieve it was to read journal file record by record using %SYS.Journal.Record API.
This approach worked (with some help from @Dmitry Konnov Maslennikov and @Eduard Lebedyuk), while it turned that the processing speed of %SYS.Journal.Record:List query was very slow, about 1MB of journal data per second on a mid-range server.
Hi All,
I am currently looking for a way of exporting a project from within studio that would actually create the subfolders associated with it. Is there an easy way of doing this. Thanks in advance?
Kind Regards,
Salma
I am trying to work through our upgrading steps from 2015.2.2 to Health Connect 2019.1. Is there a place online I can access previous versions of Health Connect documentation? I am specifically looking for Health Connect 2018.1.2 documentation so I can understand the upgrade process on AIX.
Thanks
Scott Roth
Hi Community!
Sometimes I meet a method which accepts 10+ parameters.
And often I need only the 8th parameter to pass. And I call the method something like:
do ##class(Some.Feature).Method(,,,,,,,"flag")And I don't like this method when I call it like this cause, you know, often I just miss the number of commas and raise some other flag I wanted.
How do you avoid this situations?
If you meet such a code, how do you call it and sure that you didn't miss the number of ","?
What is a good number of parameters in a method and f you need to pass more parameters in a method what do you do?
Hello,
I started a post when I tried to display a line graph on a dashboard:
https://community.intersystems.com/post/dashboard-line-graph
This did not work very well. I switched gears and now I have a Zen Page that includes a Zen Report in iFrame. However my line chart does not display a line.
This is my Report class:
/// AETMON.Report
Class AETMON.Report Extends %ZEN.Report.reportPage
{
/// Class name of application this report belongs to.
Parameter APPLICATION;
/// Specifies the default display mode used for this report if
/// the URL parameter, <var>$MODE</var>, is not present.
Good morning,
I'm working with a persistent data class and need to know which classes are evoquing it.
Is there a tool in the system to do it, similar to use the F12 key to follow a class?
Can you please provide steps to debug in VS code using serenji and how to put break point in VS code, I have tried using F9 but it is not working.
I want to debug API code using postman.
I have BPL BP and BO.
To call BO I need to populate the stream property of the request message.
What's the best way to do it?
I have created below Add method in REST api, I got requested data in objExternalUser object but it is not saved to DB.
Using "Write objExternalUser.%JSONExport()" I got JSON data.
Please refer below screen.
.png)
In System Management Portal, I'm on UnknownUser (which I've accidentally removed the %All role from), so I log out of UnknownUser and try to log in as root or Admin, but only see the following screen:
Now available from InterSystems Learning Services: the August 2019 newsletter!
See what's going on with Learning Services at the Global Summit, including:
-
Achieve certification in one or more subjects
-
Dive into InterSystems IRIS™ on your own machine
-
Attend a Personal Training session to get your questions answers
-
Optimize your training plan for yourself or members of your team
-
Get steep discounts on classroom courses
Want to stay up to date? Subscribe today!
Hello everyone!
Does anyone know of a library that can be used to create Mock objects for Objectscript classes?
Right now, my team has been building mock objects by hand to help circumvent dependencies when writing and executing unit tests, but I always wondered if someone had ever created a Mock library like Mockito to help quicken the process.
Thanks!
Hello all, I'm trying to write tests for an interoperability production using %UnitTest.TestProduction. I'd like to control the behavior of the SOAP operations so they don't actually connect to external systems when I'm testing. My first thought for this is to create a mock outbound adapter class that answers with some configured class method:
Class UnitTest.Helper.Integration.MockSoapAdapter Extends EnsLib.SOAP.HI,
I have been using evaluation version of Cache 2017.2, it was working fine and I was using Cache studio, SMP & Cache Terminal/console till yesterday.
Today, cache was in shutdown status, then I restarted. But, Cache terminal is not working and showing as Access Denied while otherthings like studio and SMP is working as expected. I checked all security level services on SMP, all are fine and enabled.
Can anyone help me to diagnose the problem and make it working.
Thanks.
Hello, I have a task created in my task manager, calling my Business Service class, and it's working fine.
But I need to know the ID of the task, I searched within the class %SYS.Task.Definition and found nothing related.
Class Example.Tasks Extends %SYS.Task.Definition{Property BusinessService As %String [ InitialExpression = "Example" ];Method OnTask() As %Status{
SET tSC = $$$OK
TRY {
SET tSC = ##Class(Ens.Director).CreateBusinessService(..BusinessService,.tBS)
SET tRequest = ##class(Ens.Request).%New()
SET tSC = tBS.OnProcessInput(tRequest,Hello,
I want to create a dashboard with a line graph that shows system availability over time. I used this code to create a Dashboard:
Set tItem = ##class(%DeepSee.UserLibrary.Link).%New()
Set tItem.fullName = "Availability"
Set tPage = "Availability.UI.CSVImport.zen"
Set tItem.href = $system.CSP.GetPortalApp($namespace,tPage)_tPage
Set tItem.title = "Availability"
Set tSC = tItem.
510
