This is the third article (see Part 1 and Part 2) where I continue to introduce you to the internal structure of Caché databases. This time, I will tell you a few interesting things and explain how my Caché Blocks Explorer project can help make your work more productive.
Hi everyone!
Someone already try to use jQuery Mask Plugin on cache?
I'm trying but unsuccessfully.
First I created a new ambient on my own machine to developer in html and all works.
So, I exported the library's js (as jss) to a new Application (stylesheet /js /css) and created too a new Zen Page .cls calling this Application style.
On Zen Page
Parameter APPLICATION = "Multi.Estilo";
XData Contents [ XMLNamespace = "http://www.intersystems.com/zen" ]
{
<page xmlns="http://www.intersystems.com/zen" title="">
<vgroup align="center" cellStyle="padding: 4px;">
<text id="Data" controlClass="s
Hello,
Currently, I'm working with a Java Gateway, and I have the following problem. When importing a class into IRIS, which uses methods from a generic class, I can not find the general methods I need. I'm talking about the test2 method from the class test. How can I import the java method that returns a generic?
Let's say I have a list structure:
set list = $lb("stri,ng", $c(0), 2)I want to replace all $c(0) elements with empty elements, so my list would look like:
set list = $lb("stri,ng", , 2)What's the fastest way to do that?
Hi community,
I've created a BS that uses FTP InboundAdapter. It works, read the file and process it.
The problem is when there not any file in the FTP folder, it raises the following error:
ERROR <Ens>ErrFTPListFailed: FTP: error en List para *.csv (mensaje='No-transfer-time exceeded. Closing control connection.',código=421)
I think it is something about the configuration, but I don't find what is the problem.


Any idea?
Best regards,
Francisco Lopez
Do you want to simplify your user management by using Windows domain accounts? When you add LDAP integration to your system, you can:
- Use the same logins on all your instances
- Manage the user accounts centrally
- Stop worrying about synchronizing accounts between systems
In Active Directory Integration with LDAP, a live webinar (June 21, 11:00 a.m. EDT) Katherine Reid, Senior Support Specialist at InterSystems, will discuss the main options for integrating your user accounts with your domain, including delegated authentication and LDAP authentication.
Katherine will also walk through how you
I have a list
set list=$lb(1,$c(0),2)
How do I replace $c(0) with an empty element?
My list should look like this:
set list=$lb(1,,2)
I tried using $list but it either replaces the element with an empty string:
set $list(list,2)="" zw list
Resulting in:
list=$lb(1,"",2)
Or removes the element altogether:
set $list(list,2,2)="" zw list
Resulting in:
list=$lb(1,2)
Hi,
Does anyone know why the SYNTAX error appears?
Thanks,
Tomer.
Hello community!
At the global summit in Phoenix, we (Lite Solutions) will be presenting a tool performing static code analysis on ObjectScript source files. You can see it in action at this URL:
Technically, the tool is a language plugin over SonarQube (http://sonarqube.org) and consists of three main parts:
- parsing the language,
- collecting metrics,
- collecting issues.
The third point is where we kindly request for feedback.
Explanation: issues are the result of rules being triggered by inspecting the source files.
Hello!
How to delete archieve file, i'm used ##Class(%File).Delete(fileNamewithPath), but this method doesn't help,
Anybody know, how to delete file exactly?
Is there a way to lock at the record level? I know that you can lock at the table level:
&sql(UNLOCK mytest IN EXCLUSIVE MODE)
but am unable to find a way to lock just at the record/row level.
Would this also affect a SELECT statement done on the record?
I want to call java method and return $lb structure from it.
JDBC jar seems to contain relevant class - com.intersys.jdbc.CacheListBuilder, but so far I only managed to return a string that looks like a list.
Here's my java code:
package isc.poi;
import com.intersys.jdbc.CacheListBuilder;
import java.sql.SQLException;
public class Test {
public static String Test() throws SQLException
{
CacheListBuilder list = new CacheListBuilder("UTF8");
list.set(123);
list.set(456);
list.set("\"abc\"");
return list.toString();
}
}And
Hi!
I have the following script to install caché silently:
ISC_PACKAGE_INSTANCENAME="AUPOL" \
ISC_PACKAGE_INSTALLDIR="/myapp/cache" \
ISC_PACKAGE_UNICODE="Y" \
ISC_PACKAGE_INITIAL_SECURITY="Locked Down" \
ISC_PACKAGE_MGRUSER="controller" \
ISC_PACKAGE_MGRGROUP="wheel" \
ISC_PACKAGE_USER_PASSWORD="password" \
ISC_PACKAGE_CACHEUSER="cacheusr" \
ISC_PACKAGE_STARTCACHE="Y" \
ISC_PACKAGE_CACHEGROUP="cachegrp" \
ISC_PACKAGE_CSP_CONFIGURE="Y" \
ISC_PACKAGE_CSP_GATEWAY_DIR="/myapp/cspgateway" \
ISC_PACKAGE_CSP_S
Does anyone have any experience with getting, unfortunately, an older version of Cache to authenticate via SMTP to send email? I have verified that the settings are set up properly on the mailbox as I have successfully sent an email from a LAMP server, which comes from the same IP address.
If you have any thoughts, I would greatly appreciate it.
This is the error I receive
ERROR #6034: SMTP server connection failed during MAIL FROM command: <READ>zSend+105^%Net.SMTP.1.
when I run the following.
S() Public {
s server=##class(%Net.SMTP).%New()
s server.smtpserver="smtp.office365.com"
s server.port="58
Hello,
while sending JSON request :
Set Object = ##class(%ZEN.proxyObject).%New()
Set Object.iin="123132132"
Set Object.firstName=name
Set Object.lastName=surname
Set Object.middleName=middlename
Set Object.birthDate=birthDate
Set Object.contractType="Z001"
set sc = ##class(%ZEN.Auxiliary.jsonProvider).%ObjectToJSON(Object)
Set sc = ##class(%ZEN.Auxiliary.jsonProvider).%WriteJSONStreamFromObject(httpRequest.EntityBody, Object)
Set sc = httpRequest.Post("", 2)
receive error bellow:
"Corrupt body: json: cannot unmarshal number into Go struct field CheckContractRequest.iin of type string".
how i can
Hello Everyone,
I have a healthshare web application with production, I try to make a field in basic setting of business service, and I would like to set a string to DISPLAYLIST and VALUELIST of that Property (string maked by query to sql table). I code the same here but it's syntax incorrect in DISPLAYLIST = GetTypeDisplay(), VALUELIST = GetTypeValue(). Someone know a best way to solved my problem? Thanks so much!
Class Demo.RegDataService Extends Ens.BusinessService
{
Property xmlTagName As %String(DISPLAYLIST = ",EDocument", VALUELIST = ",Demo.EDocument");
Property PrdType As(Originally posted by Timur Safin on Intersystems CODE, 3/2/15) This code snippet is a routine that parses options saved in an arguments array. The subroutine "test" runs the code:
Hello Everyone,
I was wondering about the best way to initialize several variables, or several lists of variables.
Would it be better to write it like:
set (var1, var2, var3) = "value1" set (var4, var5) = "value2" set (var6,var7,var8) = "value3"
or
set var1="value1", var2="value1", var3="value1", var4="value2", var5="value2", var6="value3", var7="value3", var8="value3"
or
set var1 = "value1" set var2 = "value1" set var3 = "value1" set var4 = "value2" set var5 = "value2" set var6 = "value3" set var7 = "value3" set var8 = "value3"
When comparing the speed of each methods:
ClassMethod TestIn
We are running old VB code on a Windows 2012 R2 server.
In the last month the following error has been happening.
Failure to create CacheObjectConnection.
Failure in GetClassInfo for CacheObjectConnection
Factory not connected to server
Send to Cache' failed
Neither the the code or Cache instance has not changed.
Cache 2017.1.1.111.0
The code:
Dim bRtn As Boolean
Dim objCacheObject As Object
cntr = 1Dim factory = New CacheObject.Factory
Try
bRtn = factory.Connect(ConnStr)
objCacheObject =
Hello. I'm wondering if anyone has experienced a similar error and if so, if they can point me in the right direction. I have a client who is logging into Epic and is using the Epic SAML to single sign on to our HealthShare system. We saw that it authenticated her through (from Epic to HealthShare) but when it attempted to open up the patient, we received the following Java error. When she clicks OK, it keeps coming back. Also, she is accessing Epic through a Citrix connection (if that helps with anything). Here is the error below.
Thanks!
The source class of a DeepSee cube has a property referencing a different class:
Class ClassA Extends %Persistent {
Property P1 As ClassB;
}When records in class B change, the ^OBJ.DSTIME global for Class A will not be automatically updated. This means that synchronization of cubes based on source class A will not reflect the changes occurred to property P1.
This post will help you determine the best way to achieve synchronization of properties referencing a different class
Hi All!
Good news. We've just posted sessions for the Solution Developers Conference, including times, locations, speakers, and descriptions. Please take a look.
Hi All,
Who, in the age of digital transformation, doesn't want to reap more benefits out of any process, procedure, and resource we have? At InterSystems Solution Developers Conference (part of InterSystems Global Summit 2018) we will have sessions on how to improve the way applications are built with modern tools like Docker containers, Gitlab, Circle CI, Travis, etc., how continuous integration and continuous delivery (CI/CD) processes can help us deliver more value quickly to the end-user, and how we can start thinking about modernizing traditional applications.

Hi Community!
Please welcome a new video on InterSystems Developers YouTube:
Deploying Shards Using the API
I have the following class definitions:
Class PET.RadioTracer Extends %Persistent
{
Property TracerName As %String;
}
Class PET.Injection Extends %SerialObject
{
Property RadioTracer As RadioTracer;
}
Class PET.ImageStudy Extends %Persistent
{
Property Injection As array Of Injection;
}
Class PET.ImageFile Extends %Persistent
{
Relationship Study As PET.ImageStudy [ Cardinality = parent, Inverse = ImageFiles ];
Property InjKey As %String;
}I can refer to the TracerName for a given ImageFile object with the following syntax:
obj.Study.Injection.GetAt(obj.InjKey).RadioTracer.Tracer
Given the class name, how could I leverage the %Dictionary API to
1. Get the ID Key field
2. Check the ID Key field is Integer type.
3. Given a property name, how could I check there is a UNIQUE constraint/index on it and also the property is Integer type?
Thanks you.
Hi -
I need an example of what I need to "map" to have a common dashboard defined so it will visible/usable in multiple namespaces.
I have created a dashboard in "SAMPLES" (namespace and database) and I would like to have this dashboard be accessable/useable from a 2nd namespace, but I'm not having any success in doing mappings (global/package/routine/data) to be able to get DeepSee to be able to see/display the dashboard.
What is the minimum that I need to map?
What types of solutions are out there for terminal based applications to output reports to a PDF document? This is a roll-and-scroll application that has its own scripts for generating reports.
In times past, terminal emulations have supported the concept of slave printing which seems like it should still be a viable solution. I know that in previous lives I have been able to do slave printing with software such as ProComm+ by Symantec (not available anymore).
I'm Trying to create a "Windowing Function" In Cache similar to SQL Server. I'm trying to create a Row Number for every account number (Example Below). I know I can use the %Vid function to create the Row Number but I need the row number to reset with every new account number. In SQL Server it would be Row_Number over (Partition by account number order by account number). and Example of what I am trying to create is below.
Row Number Account Number
1 1
2 1
3
To deploy a DeepSee solution, the docs recommend that you define a namespace on the reporting (mirror) server, and "define mappings to access the application data, application code, DeepSee cube definitions, and DeepSee data on this server". (http://docs.intersystems.com/ens20152/csp/docbook/DocBook.UI.Page.cls?KEY=D2IMP_ch_overview#D2IMP_overview_architecture)
This implies that for an ideal deployment architecture, globals should be split into four separate databases (app data, app code, DS cubes, DS data). How exactly should the DeepSee-related globals be split?




