is there a script with MDX language that's works like the function ISCROSSFILTERED in DAX?
ISLEAF() doesn't work if I select more than one member in the slier.
Thank you for your help.
InterSystems Caché is a multi-model DBMS and application server. See more details here.
is there a script with MDX language that's works like the function ISCROSSFILTERED in DAX?
ISLEAF() doesn't work if I select more than one member in the slier.
Thank you for your help.
Just wondering if anyone knows if there is a way to get daily emails or alerts about changes to a cache database. I know that all of that information is contained within the journal files, just wondering if there is a way to bundle it up each day and send it off for auditing, etc.
Any solution where a plain-text/readable format of changes to the cache database could be sent or stored for review would solve the issue.
Thanks!
Hello,
I am struggling to print out the actual property values of the Security.System class.
https://cedocs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.c…
I was hoping to be able to print the Authentication Enabled properties of a system from the command line using the Get or GetProperties class method. Currently, however, I am only able to get a return 1 or Invalid Oref error.
I would expect one of these to work, but I think I am missing something. Any tips?
%SYS>w ##class(Security.System).Get("
1
%SYS>w ##class(Security.System).
0 {?
Hello! I'm sending get request. When send the request bellow
Set httprequest=##class(%Net.HttpRequest).%New()
Set httprequest.Server=url
Do httprequest.Get("/"_par1_"/"_par2)
Set statusCode = httprequest.HttpResponse.StatusCode
I get http status 200, but should get 410 status. Since the parameters passed are not valid.
If I send request differently as below, I get http status 410, which is correct.
Do httprequest.Get("/2019/0912")
What is the difference between these two requests Do httprequest.Get("/"_par1_"/"_par2) and Do httprequest.Get("/2019/0912")?
Hello,
There is a problem connecting clients through ODBC.
"ERROR [08S01] [Cache ODBC][State : 08S01][Native Code 459]
Connection via cconnect failed:
TCP connect() failed - exception satisfied select().
Reason: (10061, 0x274d) No connection could be made because the target machine actively refused it."
Error sometimes occurs. In cconsole.log there are only messages about high CPU usage.
ODBC and Cache version Cache for Windows (x86-64) 2013.1.4 (Build 801).
Any suggestions?
A SOLID Design in Cache Object
In this session, we will discussing SOLID Principle of Programming and will implement in a example.
I have used Cache Object Programming Language for examples.
We will go step by step to understand the requirement, then what common mistakes we use to do while designing, understanding each principles and then complete design with its implementation via Cache Objects.
If you have any questions or suggestions, please write to me - sethisourabh.hit@gmail.com
CodeSet - https://github.com/sethisourabh/SolidPrinciplesTraining
Hi All,
While Executing Custom SOAP fault got an error.Please help me out of this.
Sample Code:
set fault=##class(%SOAP.Fault).%New()
set fault.faultcode=$$$FAULTServer
set fault.detail="<mymessage>Division error detail</mymessage>"
set fault.faultstring="Division error"
// ReturnFault must be called to send the fault to the client.
// ReturnFault will not return here.
do ..ReturnFault(fault)
Error Details:
<ZSOAP>zReturnFault+3^%SOAP.WebService.1
Advance Thanks
For Cache client install automation, where are the remote server settings stored on a Windows 10 PC?
Are they stored in the registry? I found the Cache registry key, but it only lists the remote server address and not the ports.
Are they stored in an INI file? If so, I haven't found it yet.
I can push the client install via the very helpful CEDocs URL (https://cedocs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GCI_windows_silentinst)
But the remote server must be specified and, so far, I can only specify it using the Cache Client GUI.
Hi Everyone!
Please watch the new video on InterSystems Developers YouTube, recorded by @Sourabh Sethi in the "Coding Talks" format:
Informative and Fast WEB API VIA ObjectScript and Ensemble/HealthShare
IRIS provides us with anti login CSRF attack mitigation, however this is not the same as a CSRF attack, as login attacks only occur on the login form. There are currently no built-in tools to mitigate CSRF attacks on api calls and other forms, so this is a step in mitigating these attacks.
See the following link from OWASP for the definition of a CSRF attack:
Hi All,
I want to implement SOAP authentication and Security. Please let me know what are all the best ways to Implement it.
Advance thanks,
Over the next few months I will be releasing a number of open source libraries and tools to the Caché community.
Most of the code has evolved from previous production grade solutions over the years and I am collating it together under a single overarching library package that I am calling Cogs.
In this article we are going to compare $Increment and $Sequence functions.
First of all, a note for readers who have never heard of $Increment. $Increment is a Caché ObjectScript function which performs an atomic operation to increment its argument by 1 and return the resulting value. You can only pass a global or local variable node as a parameter to $Increment, not an arbitrary expression. $Increment is heavily used when assigning sequential IDs. In such cases parameter of $Increment is usually a global node. $Increment guarantees that each process using it gets a unique ID.
Let's have a round of CodeGolf!
As usual the goal is to write the shortest solution for a specified problem.
Today we have one of the classics: FizzBuzz.
Write a program that prints the numbers from 1 to 100.
But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”.
For numbers which are multiples of both three and five print “FizzBuzz”
We have Full time or Part Time Cache\ENSEMBLE\IRIS programmer positions available with our UK and US/North American teams.
For details on what we do and our products please see our web site intsoftsol.com
Interested persons should email reply to admin@intsoftsol.com
JOB DESCRIPTION
Looking for Support Developer with experience in Ensemble,CACHE, IRIS. You will be responsible to assist in application software support and development including our Application Integration to various 3rd part systems. Our software is in use in a number of NHS Trust and North American State Health Department.
Hello Everyone
I'm trying to open an XML that I get inside a GZIP file.
However, I can only open the contents when I save the file to a folder.
I would like to know if there is a way to get the contents of XML without saving the GZIP in a folder.
The code below is functional, however, you are saving GZIP before you can get the contents of the XML.
SET tGZIP = $System.Encryption.Base64Decode("############")
SET tFile= ##class(%File).%New("####")
SET tSC = tFile.Open("WSN")
SET tSC = tFile.Write(tGZIP)
DO tFile.%Save()
DO tFile.Close()
SET tSC = tFile.hi,ererybody!
help,
how to use M language get local Computer MAC Address?
I know get local ip use : w $ZU(67,15,$j),but i don't know this.
Hello community,
I need to know if there is any method which can me say specified imported files or namespaces in Cache.
To better specification of my problem, I've got two installer manifests. Firts one did some resource changing and import some files and classes, second one must be started after the first one, because it's only his update, which creates some nemaspaces. So i need to check if the first manifest ran succesful and I can start the second one.
Is it good way trying to do this by some method or are there some other, better ways maybe by ccontrol, I don't know?
Hello,
Is it possible to write global output values to STDOUT, in a similar way to how csession can take routine intput, like below:
(In Cache Terminal)
%SYS>d ##class(%SYSTEM.License).
License Server summary view of active key.
Distributed license use:
Current License Units Used = 1
Maximum License Units Used = 1
License Units Authorized = 200
Local license use:
Current Connections = 1 Maximum Connections = 1
Current Users = 1 Maximum Users = 2
(From Linux OS Terminal)
[jhipp@test-sbox ~]# csession TEST "##class(%SYSTEM.
Good morning,
I'm trying to understand $ZF function, but only documentation isn't enought in this way. So my question is is there any possibility to get enviroment variable by this function into ensemble?
I've tried this as example from ducumentation, but there is an error and I don't know why...
Thanks for your solutions.
Zdenek
Hello,
Does anyone know if it's possible to allow a user type access to only certain parts of the System Operations page? Specifically, the System Logs - Application Error Logs.
Thanks much!
Jerry
Hello community! I have to work with queries using all kinds of methods like embedded sql and class queries. But my favorite is dynamic sql, simply because of how easy it is to manipulate them at runtime. The downside to writing a lot of these is the maintenance of the code and interacting with the output in a meaningful way. In an effort to have as much dynamism as possible so that we're not rewriting code constantly, and so that we have as little code possible (while still making sense and getting the job done), I made a function that takes in any dynamic query and outputs a dynamic object.
Hi Everyone!
Please watch the new video on InterSystems Developers YouTube, recorded by @Sourabh Sethi in a new format called "Coding Talks":
A SOLID Design in InterSystems ObjectScript
Hello,
I've got a csp page that has successfully set up a websocket connection to a Cache class. When the websocket object's close function is triggered at the browser I was expecting one of the class' methods to fire at the server. The onclose method is triggered at the browser but nothing at the server. Is a method supposed to fire at the server?
Thanks,
Dan
Cache for Windows (x86-64) 2015.1.4 (Build 803_6) Tue May 15 2018 12:08:36 EDT
As a developer, you have probably spent at least some time writing repetetive code. You may have even found yourself wishing you could generate the code programmatically. If this sounds familiar, this article is for you!
We'll start with an example. Note: the following examples use the %DynamicObject interface, which requires Caché 2016.2 or later. If you are unfamiliar with this class, check out the documentation here: Using JSON in Caché. It's really cool!
##Example
You have a %Persistent class that you use to store data.
Hi all,
I hope this is the right forum to ask this type of question, but I'm running out of ideas.
For reasons beyond my control, we run a version of Intersystems Caché (2013.1) that is not supported by Atelier. As such, I use Caché Studio to do my development.
The issue I have is, I don't run Windows or MAC, but Linux (Ubuntu 18.04 in my case). I've successfully managed to get Studio working using Wine and pretty much everything is usable.
There is just *one* issue which neither me or my peers can solve. If you hover over a line in the code editor, a tooltip reading 'First record' appears.
Hello everyone, it took some time but I'm finally getting things done again. Phew! But for now, allow me to introduce a tool that I've been using frequently.
I call it Forgery.
This description has been taken from my GitHub repository, also available on OpenExchange:
Forgery is a server-side utility that allows executing simulated HTTP request by forging calls to REST applications. This makes Forgery ideal for using together with test suites that need to call the API via HTTP but could face issues with license usage and its grace period.
Opportunities exists for keen Caché developers to join our established software house in Redditch.
The Company
M-Tech Computers Ltd (www.amo.co.uk) is a successful independent software & IT Services company based in Redditch. M-Tech sells and supports AMO, a comprehensive multi-channel ERP solution including e-Commerce websites.
AMO is an integrated suite of software which covers all aspects of running a business including Sales from multiple channels (web sites, eBay, Amazon etc.
Hi Community!
How can I know the port of management portal e.g. from terminal?
The one which looks like
localhost:port/csp/sys/exp/%25CSP.Portal.Home.zen
in browser?
Greetings,
Can someone please show me via coding example(s) how to write an input prompt that will read in a function key, F7 for example, validate that the key pressed is F7 and then process it all via cache.