Hi,
Could someone help me in identifying all characters in a column is whole number 0 or greater
CASE WHEN '123' %MATCHES '[0-9]*' then 'VALID' else 'INVALID' end
The above statement is finding only for first character.
Thanks
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Hi,
Could someone help me in identifying all characters in a column is whole number 0 or greater
CASE WHEN '123' %MATCHES '[0-9]*' then 'VALID' else 'INVALID' end
The above statement is finding only for first character.
Thanks
Hello.
We're trying to create a script that compiles everything on a certain namespace, for that we are depending on CompileAll. However it seems that this method doesn't check for a dependency tree even when using flags like: curb.
Due to its apparent alphabetical nature, classes that come first but depend upon classes that come later fail to compile because their object still doesn't exists. Example:
Suppose we have to compile a class in which its name starts with A and it has a Parameter which contains an expression that calls for B.
I was trying the %JSON.Adapter backport to cache and try it also in IRIS and i found a kind of an issue regarding to export and object to json that is an inheritance of %ListOfObjects
If we have a list of elementtype of and object and then we try to export this to a json we get this json instead of a correct json.
exported json:
"ElementType":"test.element",
"Size":"1"
}
Json that we want:
{
"field1":"testField1",
"field2":"testField2"
}
]
Test classes:
Class test.elementList Extends (%ListOfObjects, %ZJSON.Adaptor)
{
/// The type (class name) of the elements stored in the collection.Hi, we are in the process of looking to refresh our ensemble/cache environments. Currently we are using windows iis web servers with aix database servers, has any one compared cache running under windows,linux or aix ?
Forgive my possible intrusion.
I am not currently involved (yet) in any Intersystems deployment and/or development.
However I was triggered by an piece of (Intersystems) documentation residing under the Intersystems website discussing options regarding
Using MTOM for Attachments. (https://cedocs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?…
)
I this article there is the following sentence:
Hello,
We wonder how could we get the following attribute:
.png)
Which is found in the response Header being sent from a Operation to a Process, when there is an exeptionWwe would need to access the Response ErrorStatus text in the Process
We have already tried:
$$$LOGINFO("..%Process.%PrimaryRequestHeader.ErrorStatus: "_..%Process.%PrimaryRequestHeader.ErrorStatus) //It shows "1"
$$$LOGINFO("$System.Status.GetErrorText(..%Process.%PrimaryRequestHeader.ErrorStatus): "_$System.Status.GetErrorText(..%Process.%PrimaryRequestHeader.ErrorStatus)) //It shows an empty stringI know that 1-1 relationships are not officialy supported by intersystems cache/iris so I want to know the best way to store data with this kind of data model.
Currently I have two classes that where implemented some time ago:
Table A with a relationship type one on table B
Table B with a relationship type one on table A
To compile I have a double compile with qualifyer U.
What is the best way to implement a data model with 1-1 relationships?
Thank you
Hey Developers,
We invite you to review the InterSystems Caché or IRIS on the Gartner Peer Insights and get two $25 VISA Cards - one from Gartner Peer Insights and one from InterSystems!
We had this promotion in 2018-2019, and now it's so good to announce it also for 2020!
See the rules below.
Hi, how do I add the POST body content to my Net.HttpRequest (It's not a key value pair, I am posting my own JSON to the remote server because it needs JSON in the body):
set httpRequest=##class(%Net.HttpRequest).%New()
Is anyone have ever work on AS2 to push and pull the EDI? If yes please help me on this.
Hi I'm trying to setup STUNNEL between my pc and the cache database on the server, I'm trying to define port 1972 on my pc with out any luck.
has anyone done this?
thanks
Paul
We have code with the line
When we have this archivePath set as a System Default setting rather than Production definition setting i.e. shows in blue rather than black in the restore default screen it doesn't get the setting value. We want to get this value nomatter what way it is set.
Running 2016 Healthshare
Hi, I am doing a stream read so that I can do some inserts to the table however other language read is not supported, any idea what I need to do to achieve this?
Thanks
Is there any way to execute many SQL commands at once as an (anonymous)block?
for example in PostgreSQL there is
DO $$
BEGIN
--here is Inserts/Updates/Deletes
END $$Or in Oracle
BEGIN
END; Thanks for the answers!
Now available on Open Exchange is a library of third party charts available to use within DeepSee/InterSystems IRIS BI dashboards. To start, simply download and install, select the new portlet as the widget type, then select the chart type that you desire. If you don't find the type of chart you are looking for, you can easily extend the portlet to implement your desired chart type. These new chart types can be used within existing dashboards or you can create new dashboards using them.
How do I compile a file through the command line?
I am generating a very basic csp page in a bash shell, it is generating fine and displays what I want to see as long as I go into studio and compile it . This defeats my purpose of having the page and I am having no luck figuring out what I am doing wrong. I think the issue has to do with the file not being included when I compile from command line.
Ver is 2017 running RHEL 7
From command line I see
TST 3f2>DO $SYSTEM.OBJ.Compile("csp.vvmaccessnewrds","h")
Compilation started on 06/24/2020 09:47:26 with qualifiers 'h'
Compiling class csp.
just wondered if there was a way to pass functions for execution to another function so that events can occur before and after?
like :
d ..MethodA(
..Method1("var"),
..Method2(0),
...
)edit:
I managed to get it working with execute but is there a cleaner (easier way)?
ClassMethod WriteSegment(Functions. As %String) As %Status
{
w "Start",!
f Fn=1:1:Functions {
x Functions(Fn)
}
w "End",!
Q $$$OK
}
ClassMethod WriteSomething(Arg As %String) As %Status
{
w Arg,!Hi,
i am using Healthshare 2017.2 version with Trakcare 2018. how to generate & print barcode from cache object scripting in this version?
I am trying to set a varaible/property within JavaScript and use the value in my method. The alert method below returns "0". Do I have the syntax wrong?
/// Storage for current table row
Property currentTableRow As %ZEN.Datatype.string [ InitialExpression = 0 ];
set ..currentTableRow = "1"
&js<
alert(zenPage.currentTableRow);
>
Hi:
We added a column to a table as follows
And the code to populate this
{
Set doc.SentTime = $$$timeUTC
}
For Historical records of type "Rejected" the Sent time is appearing though as 1840-12-31 00:00:00, we don't know why. Current docs work fine with this column just historical seems to display the default instead of blank/null.
Hi,
call my web service (%SOAP from caché 2012 v) from XmlHttpRequest client generate cors policy error,
.png)
Any one help me how i can allow origin in headers requeste.
Thank you.
Hello,
I am having a problem with SQL Select, the command in portal is OK, show all items, but when I use a CacheDataAdapter in VB .NET show the message 'Incorrect list format 0>=0'. What could be this message? Because is the same SQL command.
Best Regards.
I have a set of strings that contains special characters. Im trying to write a sql query to remove all the special characters in the string. Im using Intersystems cache sql.
Example
%Lis&ten - Listen
Where can I download the Cache ODBC drivers for Windows?
I went here https://wrc.intersystems.com/wrc/Login.csp but it said
User is not enabled for WRC login. If this is unexpected, please contact InterSystems Support.
What does that mean? What do I need to do?
Running Cache 2017.2.2.
I'm trying to make a REST API call in JSON format. When using the example in the class reference documentation the getJSON method in the %Net.Http class throws the error <METHOD DOES NOT EXIST> on a %Clone() method in the %LIbrary.DynamicObject class. I even changed the parameter to a JSON string to no avail. The code will then fail on the %Compose method (examples below). My workaround is to use the %Net.HttpRequest functionality. Is there another workaround to this?
Example As Is:
USER>set continents = ##class(%Net.Http).
Hi All,
I am aware of some Auditing software that was made available quite some years ago that I cannot find.
I would like to install it and give it a try. Does anyone know where I can access this software please?
Thanks in advance.
Steve
Hello everyone,
In the purpose of my work, I have to implement a code that will communicate with a restful server coded in JAVA.
To fulfill my task, they gave me the link to the restful server + a certificate to use + the class that's going to be sent back + the names of 2 functions:
Acces: https://XXX:8443/
First fonction: https://XXX:8443/patient/IdOfPatient
Second fonction: https://XXX:8443/patient/search/nameOfFunction?ndoss=Number
Object that returned:
{
"id" = ...
Hello,
We would like to learn how would you approach this task.
We would need to check every day a set of folders which are outside our server (in fact we could see them as if they were "inside" the server), then we need to check for modified or created files in the last day, and move all the ones which match the criteria to just one folder in our server.
We have thought about doing the following:
1) Create a task to run it each day:
{ Method OnTask() As %Status
{
set tSC = ##class(Ens.Director).CreateBusinessService("Servicios.
Hi guys,
I'm trying to consume a REST Service that use Digest authentication, I'm trying to implement the authentication but I'm don't know where is my mistake.
Someone have already used this type of authentication.
Below the code I wrote to try to generate the response hash:
Hi Community,
Is it possible to track Application Errors from a specific namespace?
With the new API, I know we have the endpoint /alerts.
But the endpoint /alerts, as described in the documentation:
I want to create push notifications for Application errors in specifics Namespaces, and I don't know how to extract that information from there.
System > System Logs > View Application Error Log
Thanks,
Henrique