Documentation (http://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls…) states that it looks like:
IRIS for Windows (x86-64) 2018.1 (Build 487U) Tue Dec 26 2017 22:47:10 EST
Does it really true, or just a documentation typo?
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Documentation (http://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls…) states that it looks like:
IRIS for Windows (x86-64) 2018.1 (Build 487U) Tue Dec 26 2017 22:47:10 EST
Does it really true, or just a documentation typo?
Hi Guys,
One of our clients is running Cache 2014.1.4 and for some reason is not recognising UNC paths?
The Path is accessible via windows explorer with no issues (\\backupsvr) and also my works fine when using :
but using : O \\backupsvr\folder\file.txt:("WNS"):5 bring an error "Can not create file" knowing that \\backupsvr\folder\ can be accessed via explorer with not issues?
Thanks
This series of articles aims to address the following topics:
WRF to below example my idea is to check whether red is present in the list mylist. You can very well use LINQ on enumerable in C#
mylist.Where(x => (x.Property2 == "red")).ToList().Count;
set mylist=##class(%ListOfObjects).%New()
For i=1:1:2 {
S object = ##class(User.NewClass).%New()
S object.Property1=i
S object.Property2="red"
do mylist.Insert(object)
}It can be done with iterating over mylist
for j=1:1:mylist.Count(){ Set item = mylist.GetAt(j) If (item.Property1 = "red") { // get the count } //set exist = item.Find("viv",1) }
I have one in my testing environment. According to https://community.intersystems.com/post/licensing-ubuntu-and-suse-20171-and-later, I should move to native Ubuntu build with 2017.2. So I downloaded Cache for UNIX (Ubuntu Server LTS for x86-64) 2017.2.1 and tried to update my existing 2015.1.4 installation. What I got was:
Upgrade from lnxsusex64 platform is not allowed.
No packages will be installed.
Meanwhile new Cache 2017.2 instance was installed without any problem.
The question is: how to upgrade an existing one?
It is often necessary to sort the results of a query on a string field containing a combination of alphabetic and numeric characters. In cases like this the default string collation may not always return the data in the expected sequence.
An example of this may be where a select from Samples.Person should order the results by the street address, but firstly ordered by the street number part as numeric, and then by the street name.
The default query will return the results as follows:
SELECTName,Home_Street
FROMSample.Person
ORDERBYHome_Street
| Name | Home_Street |
|---|---|
| Eastman,Richard W. |
I get a list which is formed like below:
$lb("","2",6,6,6,"3")
I would like to distinguish "2" and "3" from 6 since both of them are String types.
Is there any way to achieve this?
Thanks.
Hi Guys,
Can you please advise on the below queries.
Query 1:
Example 1:
S a="345",b="arun",c="kumar",d="hi",e="yello",f="orange"
Example 2:
S a="345" S b="arun" S c="kumar" S d="hi" S e="yello" S f="orange"
Can you please advise me, which one is performance wise is better.
Query 2:
Example 1:
S:a=1 R="Arun"
Example 2:
I a=2 R="Arun"
Please advise me, which one is giving better performance in this.
Any lead would be appreciated.
Thanks,
Arun Kumar Durairaj.
Can anyone guide me where is the documentation for $zt?
The google seems suggest it may be "$ztime" or "$ztrap".
Thanks.
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.
In our last lesson, we implemented a new REST Service to allow us to perform CRU operations on Widgets, and refactored our Controllers to allow the page setup to be decouple from the content.
When we created our Widget Services, we did not implement a Deletion operation, which the HTTP Delete verb provides. As this is a base table for other parts of the Widgets Direct empire, we don't want to be able to do a hard Delete of the WIdget values, as this could cause issues with our ordering and billing modules.
I keep seeing <INVALID OREF>zMypropertyGetSwizzled+3^myClass.2 in the error log. In my case, Myproperty is a property of myClass. And Myproperty points to the the object of other class in the system. This error happens to 2 properties in the same class, and they are both object properties. This error pops up occasionally, and make the debugging harder.
Anyone knows what the issues are?
TIA
Hi Guys,
I'm looking to Remove file from a location to another similar to CUT & Past function, I'm using this :
s file=##class(%File).%New() d file.CopyFile(File,ArchivePath) d file.Delete(File)
and the copying is happening but not the Deleting, and help pls?
Thanks
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!
I am setting up a new Caché instance and I have managed to configure it where Caché username/password is required to initiate the Caché session:
csdfalsdkfjf@fra23e234sco:/opt/labmed/test/test81/proc$ csession cache1
Node: frxxco, Instance: CACHE1
Username:
I cannot find the setting in the management console that allows for unauthenticated login to a Caché session. Any help is much appreciated.
Anyone have any suggestions where to spin up small Cache/IRIS/Ensemble test DBs? Hopefully very low cost (or free) reliable hosting? Obviously AWS has some options but wondering if anyone has had 12 month+ experience with very low cost Cache cloud with AWS, Azure, Google, etc?
Thanks,
Tom Fitzgibbon | gototomATG...l | 3474648531
Hi,
I am getting below error while executing query, This is newly installed cache instance whereas query running fine on old server.
ZWRITE ^rINC("WebServices","PreComp","systeminclude")
^
<NETWORK>
Q00QUASAR:TEST2>ZWRITE ^rINC("WebServices","PreComp")
^rINC("WebServices","PreComp")="61801,57106"
^rINC("WebServices","PreComp","Depends","WebServices")="61801,57106"
^rINC("WebServices","PreComp","Expansion","INIT")="0"_$c(1)_"arg"_$c(1)_"0"_$c(1)_"S wsFault=$$Init^LU090000(%arg,.%ClassName(1),.
Hi,
Getting below error on newly installed cache version 2017.2. This is running fine on another instance.
Q00QUASAR:TEST1>D $system.OBJ.CompileAll()
Detected 1229 errors during compilation in 145.4s.
Instance name:TEST2>D $system.OBJ.CompileAll()
Detected 202 errors during compilation in 211.7s.
Instance name:TEST3>D $system.OBJ.CompileAll()
Detected 784 errors during compilation in 186.6s.
TEST2>do $System.OBJ.CompilePackage("Calendar")
Compilation started on 02/25/18 17:21:33 with qualifiers ''
Compiling 6 classes, using 4 worker jobs
Compiling class Calendar.Country
Compiling class Calendar.
I was running the %File:FileSet class query, with my development user, but I am unable to run this query for an application user. Does anyone know what resource or service is needed to run this query? Assume the user has access to a certain directory on the file system needed for the query.
On second though, having tried almost all the available resources and services, perhaps the user doesn't have access to the directory. How to tell when the error is this:
set ok=st.%PrepareClassQuery("%File","FileSet")
d $system.Status.I would like to know the workflow of macro $$$Fza . If you explain me with example that will help.
I have a 2GB CSP.log file that I need to investigate.
I'm using a %Stream.FileCharacter() object to open the file and then using the .FindAt() to search for a particular string.
I'm seeing the FindAt() stop after processing 49m characters?
Here is my code:
k
s stream=##class(%Stream.FileCharacter).%New()
d stream.LinkToFile("d:\csp.log")
s x=""
s i=0
s j=0
w stream.Rewind()
w stream.AtEnd
w stream.SizeGet()
while(stream.AtEnd=0){set i=stream.FindAt(-1,"Invalid password",x)+i set j=j+1}
w stream.AtEnd
w i
w j
Which gives the following output:
USER>k USER>s stream=##class(%Stream.
I would like to know the workflow of $za . If you explain me with example that will help.
Developers,
I am working with a CSP page with among other fields a checkbox.
Based on the checkbox I want to populate a drop-down box with specific options with a server side method using &html<....>.
I have the status of the checkbox in a javascript var.
Can I access this var or maybe the checkbox setting in the server side method?
Basically how do I know the status of the checkbox to populate the drop-down box correctly?
Any suggestions are appreciated!
Jacques
I am working my way through some SQL documentation.
The documentation follows and my question comes after.
A query supplied to %Prepare() can contain input host variables, as shown in the following example:
SET minage = 80 SET myquery = 3 SET myquery(1) = "SELECT %ID AS id, Name, DOB, Home_State" SET myquery(2) = "FROM Person WHERE Age > :minage" SET myquery(3) = "ORDER BY 2" SET qStatus = tStatement.%Prepare(.myquery)
This talks about input host variables
I thought that input host variables only work with Embedded SQL, not Dynamic SQL
Thank you
Hi. I am newby in Cache. My source code at below. I have problem in Relationship property. Could you please help?
/// Class Test.Book Extends %Persistent { Property Name As %String; Property Author As %String; Property ISBN As %String; Relationship Chapters As Test.Chapter [ Cardinality = children, Inverse = bookid ]; }
Class Test.Chapter Extends %Persistent { Property Name As %String; Property Page As %Integer; Relationship bookid As Test.
Hi
Is it possible to change the input format of the date filter for a zen tablepane component column when setting the filterType="date"? It only seems to accept odic format.
Cheers
Iain
I don't quite understand the %NOMERGE mentioned in the documentation.
http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=RSQL_from#RSQL_from_nomerge
Is there any specific example provided to illustrate the idea?
Thanks.
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.Hi Guys,
I would like to develop a login page in Zen mojo application with Desktop and mobile application. It should be adopt with desktop, android and iOS application.
If any lead would be appreciated.
Thanks,
Arun Kumar D.