Hi, folks!
Consider I need to perform some logic which should fire because values of object properties has been changed.
Is there ANY reason for using class callbacks %OnBeforeSave or %OnAfterSave instead of Trigger?
Hi, folks!
Consider I need to perform some logic which should fire because values of object properties has been changed.
Is there ANY reason for using class callbacks %OnBeforeSave or %OnAfterSave instead of Trigger?
I have a couple of new namespaaces/databases that are read-only. I don't remember changing them to read-only, and although my username has %all (I installed the system), I am unable to change the "Always mount as read-only" property.
What am I missing?
Thanks,
Laura

Hi, Community!
Please welcome a new session recording from Global Summit 2017:
Application Performance Management
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
The challenge today is about some basic cryptography : you will have to generate data for a one-time pad (OTP) (see https://en.wikipedia.org/wiki/One-time_pad for more info).
You need to generate keys by taking the MD5 of a pre-arranged salt (your puzzle input), and an increasing integer index starting with 0.
Hi communauty
I've two columns in my table and the type must be interval of integer values for example : age must be interval between [2 and 6] years and wigth between [10 and 30 ] Kg , how can i define them when creating my table?
thank's
Hi communauty
i work on the Oauth2 authentification patry in my application , i read a lot of documentation , but i don't know exactly what does it mean by Claims values and the method "SetClaimValue", what does it do really?
can anyone explain for me.
Thank's.
The Atelier beta update channel:
https://atelier.artifactoryonline.com/atelier/updates/beta/1.1
offers the latest features and bug fixes. It now updates your installation of Atelier to build 1.1.310 for Mac, Windows, Red Hat, SUSE and Ubuntu. Here’s an account of what’s recently been improved:
New Features:
Image 1.
"Help me, Obi Wan Kenobi"?
I’ve hit the wall. I’m a one person shop who wants to start developing Cache on a mac using Eclipse/Atelier, after using Studio for the last 5 years. I’ve installed the 1.1 beta plugin, watched 6 or 7 videos from the September conference, tried several times to work through the cheat sheets, only to have connection issues or compilation issues, so at this point, I’m feeling very frustrated. The videos were interesting, but generally didn’t work as tutorials for fundamental programming operations, for me.
the useful content is in the replies
showing the use of $SYSTEM.OBJ.ValidateIndices()
When a class containing a method generator is compiled, the code that implements the method at runtime is written according to the instructions in the method definition.
Hello guys,
I'm having a problem on a sign-up screen, what happens is that this screen is not reloaded after clicking save, and that's where the problem arises, on that screen it is possible to upload images, but as everything is loaded with submit, the record would have to be updated so I had all the information, which does not happen.
With this I'm trying to find a way to get the information from the file loaded in the "file" component to get the data in "% request.MimeData".
The only way I've found it so far has been to reload the whole page, but that's all I do not want to do.
A third party developer has asked for access to the documentation of my classes so he can understand my tables/classes better.
kevin
Since we announced last week that Atelier would only be available as an Eclipse plugin, some of you have been asking about how to convert from your standalone client. Here's what you might want to do.
Hello,
Just today updated Atelier to the latest Beta release.Getting the following error in Eclipse:
Plug-in com.intersys.eclipse.legacy.extension was unable to load class com.intersys.eclipse.legacy.extension.Startup.
Unable to open Atelier perspective.
Does anybody else get this issue, how to go back to previous version?
Regards
Thomas
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
Today, you have to find a path through a maze. To know if a coordinate is a wall or an open space, you will have to do a calculation like this :
x*x + 3*x + 2*x*y + y + y*y Add the office designer's favorite number (your puzzle input). Find the binary representation of that sum; count the number of bits that are 1. - If the number of bits that are 1 is even, it's an open space.
As many of you, our partners, are more widely using modern UI frameworks to create client front-end, you may have encountered a question, "So how do I secure my data when I just finished developing all new fancy browser based client experience?"
The answer is easy. Use a standard, proven OAuth2 and OpenID!
"OK, but how can I do it? I have never done it before."
No problem, just have a look here, if your client is Angular (not AngularJS) based, there is a demo project available for you to review and get inspired!
Hi community
i'm working on the validation user method , i found this following code in the \HSIE\%SYS\Classes\%OAuth2\Server\Validate.cls
ClassMethod ValidateUser(username As %String, password As %String, scope As %ArrayOfDataTypes, properties As %OAuth2.Server.Properties, Output sc As %Status) As %Boolean
{
// Check if user is defined.
// We use local Cache user list as the shipped default.
If '##class(Security.Users).Exists(username,.user,.InterSystems is pleased to announce the availability of the following maintenance releases:
Caché and Ensemble 2016.2.3 are available on the same platforms as 2016.2.2
The full list of corrections can be found in the release notes.
HealthShare Health Connect v15.021 for core technology 2016.2.3.903.0 contains the following HealthShare module:
This should be an overview over a subject that pops up over several places in online documentation mostly as remarks and never as dedicated chapter.
Once upon a time ... No it's not a fairy tale.
In the beginning of Caché (and before) you had your partition to run your code. Part of that partition was a space with all your local variables nicely sorted by %,A,..Z,a,...z
And whatever values or information you had to store locally was there and visible and available to any piece of code running in your
I am trying to make Caché perform certain actions depending on whether a particular property of the object was changed using triggers.
For example, say I have this class:
Class Dummy.Class Extends %Persistent {
Property Name As %String;
Property Visible As %Boolean;
Trigger OnUpdate [ Event = UPDATE/DELETE, Time = BEFORE ] {
if ({Published*O} = 0) && ({Published*N} = 1) {
do .CertainAction({ID})
}
}
ClassMethod %OnBeforeSave(insert As %Boolean) As %Status [ Private, ServerOnly = 1 ] {
// .This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
Today, you need to make a compiler for the language assembunny.
Luckily, this language has only 4 instructions :
cpy x y copies x (either an integer or the value of a register) into register y. inc x increases the value of register x by one. dec x decreases the value of register x by one.
Does anyone know where to find a cache.node that works with Cache version 2016.1.1.108.0? I am currently getting this:
Error: Unable to load shared library C:\InterSystems\TryCache\bin\cache.node''
I am using Windows 7 Pro + SP1.
Thanks!
I would like to remove all the active locks and roll back all the on-going transactions.
Is there any COS command I could use?
By the way, any command I could see the current on-going locks and transactions?
Thanks.
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
The challenge today is about microchips and generators. A microchip belongs to one particular generator, and the two can be on the same floor, or in the same elevator. But if a microchip is with another generator on the same floor or elevator, it will get toasted, except if his own generator is also on the same floor/elevator.
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
In today's challenge, you have to execute instructions that control how bots are handling microchips.
Using the CSP Page Statistics
Application Performance Management
A key part of Application Performance Management (APM) is recording the activity and performance of user activity. For many web applications the closest you can get to this is to record the CSP pages or CSP based services being dispatched.
If the pages or service names are meaningful and they indicate the business activity being performed the CSP page statistics can be very useful in building up a historical record of activity, performance and resource usage.
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
Today's challenge is about decompressing input that is compressed in an experimental format.
In the format, markers indicate how much time a number of characters need to be repeated.
For example :
A(1x5)BC repeats only the B a total of 5 times, becoming ABBBBBC for a decompressed length of 7. (3x3)XYZ becomes XYZXYZXYZ for a decompressed length of 9.
I installed the Cache client along with Atelier on my mac.
My question is:
How do I access the Management Portal on a mac?
My Atelier stand-alone app allows me to use the Cache instance, but how do I get to the Management Portal to set up security and create new namespaces, etc.?
Also, where to I check to see when Cache is actually running?
Thanks.
Bob Harris
I have a Cache-compatible sql script file and each query is separate by white space.
How could I ask Cache to execute all the queries in this file and dump the result to a specified file?
Thanks.
I have Ensemble/Healthshare running in a production environment which is setup with a mirror failover and an arbiter sitting between them.
In the event of a failover we have a number of connections that need stopping/monitoring and starting in a certain order.
Is there a programmatic way we can detect the failover and stop certain services and operations immediately and then start them up again in the required order, checking their connection state before starting the next connection.
I am thinking Ens.Director is probably what I need however I need some guidance on how to implement a solution.