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 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.
Hello, I'm looking for books on Caché / Ensemble.
I'm new and would like to learn more about native functions.
Thank you
Hello All,
what is the best method for search a portion of text in a non-indexed global?
I need to implement an autocomplete kind of search, in a global of >1M registers (text type, not $lb)
Maybe the best way would be use a SQL mapped class, with 'Bitmap' indexes?
Thanks in advance!
Hello,
Sorry for my epic english :(
I have a strange issue.
I have generated an encryption key with the tool (UI.Portal.EncryptionCreate.zen).
Then I activate my key for data encryption (UI.Portal.EncryptionManaged) and encryption work fine.
But when I reboot my server the key is removed from the data encryption key list (UI.Portal.EncryptionManaged) and I have to re-activate the key.
Perhaps somebody have an idee ?
Cache version : Cache for Windows (x86-64) 2016.2.2 (Build 853U)
Windows: Windows Server 2012 R2 Standard
Thanks
Sébastien
So this may sound trivial, but I'm seeing conflicting information on this topic and hoping to get clarification.
According to Enslib.HL7.Message class definition, the maxlength of RawContent is 10,000 characters. So when using encoding like UTF-8, that is 10KB. When using Unicode, that should then be 20KB.
But then also coming across some forums and documents where 32KB is maximum size before HL7 fields are truncated.
What is the sure way to determine and modify an interface's maximum supported message size?
Hi all, This is a bit embarrassing, and not that critical. I have a local instance of Caché 2016 on my computer, for playing around with. I was attempting to set up two-factor authentication on this instance, and I thought I simply disabled all users except for my own user and enabled two-factor for this user. The next time I tried to login to the Management portal, I received a Server Availability Error:
http://localhost:57772/csp/sys/UtilHome.csp
Caché Server Pages Version 2016.1.1.107.0
Server Availability Error
Server is currently unavailable
I can login to the terminal successfully, and
I thought there used to be some code in the manuals to do this couldn't find it in my latest release manuals. In other words, turn prod data into test data.
I am using a %GlobalStream to create as % stream.Object and writing that to a file but for some reason when I run that on the terminal I get <PARAMETER>zWrite^%Library.GlobalCharacterStream.1 and no file is created
I have tried the following here is my code and still get the same result any help appreciated
ClassMethod WriteNodes(myfile As %String){
set status=##class(%XML.TextReader).ParseFile(myfile,.textreader)
set ptemp=##class(%GlobalCharacterStream).%New()
//check status
if $$$ISERR(status) {do $System.Status.DisplayError(status) quit}
//iterate through document, nodeI have a DTL that reads an xml file and I want transform that to a list of objects but I have a problem looping through my xml as when I try I get the first instance on the xml not the whole XML being transformed. here is my example. Here is the output
<s01:WardOccupancy>
<s01:WardOccupancy>
<Organisation>BYG</Organisation>
</s01:WardOccupancy>
</s01:WardOccupancy>
</msg>from
<Message>
<Record>
<OrganisationCode>BYG</OrganisationCode>
</Record>
<Record>
<OrganisationCode>BYG</OrganisationCode>
</Record>
<Record>
<OrganisationCode>BYG</OrganisationCode>Hi Developer community
Does anyone know where the custom message filters for the message browser live? You can load and save by name and existing filters appear in a list. I want to export them from an existing production and import then into a new one.
Thanks in advance
MikeD
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : goto to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
The input in today's challenge consists of an encrypted name, a dash, a sectorID, a dash and a checksum between brackets.
A name is real if the checksum is equal to the five most common letters in the encypted name.
For example :
aaaaa-bbb-z-y-x-123[abxyz] is a real name because the most common 5 leters are a,b,x,y,z (sorted by numer of occurences and alphabetically)
The challenge is to output
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : goto to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
The challenge of day 5 is to calculate a password of 8 characters by finding the MD5 hash of the input and an increasing integer index.
The password is constructed by taking the 6th character of the first 8 hashes that start with 5 zeroes (in hex representation).
For example : if the input would be 'abc', the first hash that has 5 zeroes would be by MD5 hashing abc3231929 : the hex
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : goto to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
In today's challenge, you have to repair the communication with Santa : messages are coming in, but jammed.
By using repetition code (see also https://en.wikipedia.org/wiki/Repetition_code), you can find out what's in the message : by sending the same message a number of times, you can calculate which characters are most frequent on each position and find the most likely message.
For example,
Hi, team
i configure my authorization server and client and i want define access rights for different users , how can i do it?
knowing that we have our own database with different users ID and access privilege ?
is there any one who can help us? thank's

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 of today has nothing to do with real two-factor authentication ! (sorry if you came to this article by searching the real thing)
For the complete explanation of the challenge, go to http://adventofcode.com/2016/day/8.
Your input (http://adventofcode.com/2016/day/8/input) consists of a series of three basic instructions to control the display of a screen.
The goal of the first part
Is there documentation that states %Id() is supposed to be available in %OnBeforeSave()?
I am currently using it in this method without issues, but one of my colleagues is stating it is not supposed to be available for a new object at this point because the object has not been saved yet.
I tried to implement the Oauth2 in google,
I got authentication, But I unable to read response class.
I got an error as:
I unable to change response Class.
Anyone help me to Change response Class in Client Configuration
or
Is there any option to define response URL manually?
Thanks
So we are still fairly new to the ensemble app and getting set up. I have 3 seperate batch record file services that pull in files and send to 3 seperate processes. there is no real rules other than an when condition=1 use this said DTL and send to operation. all 3 of these routers use different DTL's as they are seperate files but all go to the same operation. for some reason i am seeing the files sit in the Process and say Delivered. 2 of the three process after up to 10-15 mins of sitting and the third gets an error i am very unfamiliar with, so this post is two-fold.
1.
Hi-
Please excuse my rather limited knowledge of HL7.
In Ensemble, I have a HL7 message that contains several Z segments. I have created a custom schema to represent the new Z segments along with the new DocType Structure and Message Structure
How does Ensemble/Health Connect know which custom schema to use? I believe it has to be indicated in the MSH segment somewhere, but not sure where exactly that would be. Is the version simply updated with the new schema name or is there some other field?
TIA
Ken
Is there an option to configure Caché to start external apache instead of internal one on startup?
Hi, Community!
If you want to become an Atelier power user for back end development, this video is exactly for you:
Atelier for Server-Side Development
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : goto to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
Today's challenge on http://adventofcode.com/2016/day/7 is about checking for valid IPv7 addresses with TLS support. (No, it has nothing to do with real ip addresses which are at most ipV6 or real TLS, but just a way to keep you busy coding & hacking!)
The imaginary ipV7 addresses support TLS if they contain an ABBA sequence outside square brackets and no ABBA sequence inside brackets.
Hi Community. I have a vendor sending us X12 837 claims, they are sending a mixture of 4010 and 5010 formatted claims. Is there a way I can examine the file contents and determine the message format and route to two separate folders based on format (4010 vs 5010). I've tried setting up a record map, stream container and vdoc services and processes with no luck. Any help would be appreciated.
I am a newbie to Cache and we are using dBeaver product to query against Cache tables.
I have the following query which does a GROUP BY to aggregate the columns:
SELECT PtNumber,cpt4_OVR,CollDateODBC, COUNT(*)
FROM site.MGBILL_View
WHERE cpt4_OVR IN ('36415', '36416')
--AND ChargeFlags = '0'
AND CollDateODBC > DATEADD(DAY,-45,CURRENT_DATE)
GROUP BY PtNumber,cpt4_OVR, CollDateODBC
HAVING count(*) > 2
-This returns a count of 3 for each patient (aggregated)
But I need to display the actual 6 rows. I would typically do this by replacing the GROUP BY with an OVER(PARTITION BY
Hi I've created a word macro in order to convert doc to txt via the command line, this works fine via the command line by myself or another user but when I try as an the intersystems user which runs under LocalSystem it doesn't work.
So can I change the user, or set the $ZF to run as a different user?
Or do I have to try another way to convert doc to txt - it's looking like libreOffice?
I just wanted to stick with word because I could be guaranteed on the result being accurate.
Thanks
Regards
Richard
If you want to dynamically serve images as a property of JSON then there is no perfect encoding solution. One method used frequently is to Base64 encode the image. Whilst there are some negatives to doing this, such as data inflation, there are some positives to working with Base64 images inside the browser.
Let's say you have an image placeholder on a web page...
And you fetch a JSON message from the Caché server containing the image as one of its properties...
Without needing to decode the image data you can create an img
I have an Ensemble installation with an FTP business operation which I would like to connect to a server over SSL in explicit mode (see also: https://www.rebex.net/kb/tls-ssl-explicit-implicit/default.aspx). I keep running into timeouts while attempting to do this via Ensemble. Does Ensemble actually support SSL in explicit mode??? Because I can't seem to find any setting where to switch it on.
Hi,
Is there a report of ports configured by services?
We have a lot of services, across multiple namespaces, and it would be useful to know what ports are configured, even for disabled services.
Stephen