Is it possible to change date for post, when in time when it was published? I've created a draft some days ago, and when I published it today, it shows that post already 3 days old.
Hello, guys.
I need to copy the text from one stream to another filestream and save it. I am using
do fileStream.CopyFromAndSave(rtn.Code)
However, if "rtn" stream contains Russian characters I get something like "???". Is there any way to convert stream to Unicode? Something like $zc(str, "O", "UTF8") for streams.
Hi all,
This is a real long shot, but does anyone have experience integrating MS wsHttpBinding with a Cache application?
I ask because my project had some initial design discussions for new web service communication and this specification was mentioned.
Thanks.
Hi, Community!
Here is the digest of Articles and Questions published on InterSystems Developer Community in September 2016.
Most viewed
Mirroring 101: a brief guide and FAQ - 238
NewBie's Corner Session 27 Traversing A Global with $Order Part 1 - 214
Cache for Raspberry Pi? - 209
Free Text Search: The Way To Search Your Text Fields That SQL Developers Are Hiding From You!* - 199
REST in Pieces - 196
User authentication using Arduino with RFID - 146
Windows 7 performs shutdown too fast for Cache to close and so it gets forced down - 143
Cache or Caché? - 141
NewBie's Corner Session 28 Various Methods to Traverse a Global - 134
Cache Certification - 128
Most voted
Ensemble and file outbound adapters - a small hint - 11
Free Text Search: The Way To Search Your Text Fields That SQL Developers Are Hiding From You!* - 9
Advanced URL mapping for REST - 6
Windows 7 performs shutdown too fast for Cache to close and so it gets forced down - 6
Featured InterSystems Video: OAuth 2.0 Overview - 6
The Art of Mapping Globals to Classes (2 of 3) - 5
Running HealthShare XSLTs from Terminal - 5
Cache or Caché? - 5
Most commented
NewBie's Corner Session 27 Traversing A Global with $Order Part 1 - 16
question on ExternalFreeze on windows platform -- - 14
Cache or Caché? - 12
Mirroring 101: a brief guide and FAQ - 10
Windows 7 performs shutdown too fast for Cache to close and so it gets forced down - 9
Multiple namespaces in web application - 8
cleaning up CSP sessions (aka where/who/what is the %CSP.Daemon?) - 8
NewBie's Corner Session 28 Various Methods to Traverse a Global - 8
Free Text Search: The Way To Search Your Text Fields That SQL Developers Are Hiding From You!* - 7
Hello, guys.
I found one interesting moment in Cache Object Script. It doesn't have(or at least I didn't find) trimming function. By trimming I mean if a string has some whitespaces/tabs/carriage returns from very beginning or/and from very right, this function removes them.
I have found several workaround ways.
1. Using Cache Basic
ClassMethod TrimCacheBasic(str As %String) As %String [ Language = basic ]{Return Trim(str)}2. Using SQL
I saw someone recently refer to ECP as magic. It certainly seems so, and there is a lot of very clever engineering to make it work. But the following sequence of diagrams is a simple view of how data is retrieved and used across a distributed architecture.
For more more on ECP including capacity planning follow this link: Data Platforms and Performance - Part 7 ECP for performance, scalability and availability
To start
Hi All
I have a question on working with dev and prod environments.
After project is ready and signed, I usually migrate outcome to production using the export tool from the studio.
For changes/adding to existing projects, I exclude the production class (as it has some different values differing the dev from the live) and I add the differences manually afterwards.
My questions on migrating are:
Does anyone has (to share) his/her best practice steps on "migrating dev to prod"?
Does the export action (in management portal) is better to use?
Thanks
Gadi
The article is a step by step guide for beginners to learn how to build a RESTful web service consumer (or client) in Ensemble. The provider can be any RESTful service, but the example is based on the service we made during the previous sessions.
I'm following the tutorial here. When I try to call the default Test() method I get the following error:
An error occurred with the CSP application and has been logged to system error log (^ERRORS)
I found this document which says I need to make the "Web Application" accessible by running a couple commands. I'm not even sure I created a Web Application. Regardless, I tried a few variants but still get the same error.
Here is the URL for the Service Catalog: /csp/healthshare/mhclib/Custom.MHC.Scott.ServiceTest.cls
I tried different things including these two:
Checking if Directory or File Exists:
Outlined below is an example of how to check if a directory exists:
Set directoryName="c:\temp\nosuchdir"
/* Check for existence of a directory - Return Value: 0 - directory does not exist; 1 - directory does exist */
Set directoryExists=##class(%File).DirectoryExists(directoryName)
If ('directoryExists) // do the processing for when a directory does not exist
Outlined below is an example of how to check if a file exists:
The one question that some of you might have is:
How do I change my login information for Cache Studio if I clicked the checkbox to automatically save my login info so I do not have to enter my username/password every time I open Studio?
Well.....excellent question!!!!!!
Here's the answer:
Hi all,
We're creating a series of RESTful APIs that output data from a Cache database (made up of global storage that we've mapped to classes). I'm running into some problems with object-to-JSON conversions when relationships are involved. Eg:
ParentClass has children relationship to ChildClass
ChildClass has parent relationship to ParentClass
Click here to view our OAuth 2.0 Overview
InterSystems created this video as a high-level overview of OAuth 2.0 technology, geared toward developers looking to learn the basics of OAuth 2.0. It will teach you how OAuth 2.0 works, what roles are involved, what benefits it can provide, and how InterSystems Caché can be used with this technology.
Looking at the posts, I cannot find a simple way to show everything in DATE order (newest first).
when I click on "NEW", It's 11:26am (UK time) and the first few entries are
Post by Istvan Hahn 6 min 19 sec ago. Enabling Cross-origin Resource Sharing (CORS) for RESTful Services new
Post by Eduard Lebedyuk 23 hours 46 min ago. Automatic removal of system methods from codebase
Last answer 2 hours 46 min ago. Is the possible for Multiple Streams using in single method?
Date/time seems to bear no relationship to the order.
I want Healthconnect to be the middle man between my client and my respository vendor. I've setup
HS.IHE.XDSb.RepositoryServices > HS.IHE.XDSb.Respository.Process>HS.IHE.XDSb.DocumentSource.Operations
Is this the correct approach?
I have a class with a string property with DISPLAYLIST and VALUELIST parameters specified.
When I query this class via ODBC I receive logical value as it is and not a display value.
Is there any way (without stored procedure) to get display value?
Hello,
I think it will be very useful to add the following information about community members:
-Full Name (that is the only thing we see today)
-Company
-Title
-[Optional] Areas of interests/expertise
This information should help the community members evaluate the credibility of posts and responses.
Thanks,
Asaf
In Subscriptions > Overview > I checked Digest Mode, which is defined as:
"Merges your notifications into a single email, sent at the interval you specify. "
Under Preferences I set the Send Interval to be Daily.
I receive a couple dozen emails each day. They all have a subject of "Subscription Digest for..."
Each email only contains a single item, so it doesn't appear to be a "digest."
It clearly is coming more than once a day, so doesn't appear to be following the set Send Interval.
Is this a bug or am I misunderstanding the settings?
I need to do an UPDATE via SQL and I would like the statement to return the `ID` column of each row that is updated. MS SQL has an "OUTPUT" statement, but I don't see anything similar in Cache. Is there a way to do this?
Anyone has already been successful in connecting google calendar to Ensemble ?
Have you tried $Translate for date conversion?
USER>write $Translate("Dd.Mm.WwYy","WwYy-Mm-Dd","2015-08-02")
02.08.2015
Stolen from Russian forum and Alexander Koblov.
We are using object EnsLib.EDI.XML.Document and the method OutputToString -- ( context.XMLObject.OutputToString("C(utf-8)") ), In the string that we get back, Hebrew characters are unknown and we get question mark instead.
How can we overcome it?
Is the possible for Multiple Streams using in single method?
Cross-origin Resource Sharing (CORS) is one of the basic security features built into browsers. CORS controls accessing resources from a HTML page in domains other than the original domain. It is particularly important for AJAX calls. Since RESTful services can be used as data provider to any AJAX call, you have to be able to control cross-origin access. By default services are not allowed to do CORS. You are going to learn how to enable it for Ensemble RESTful services.
I created on program . How to convert this application in .exe format.
NewBie's Corner Session 29 Documentation on the Caché/MUMPS Global Structure
Welcome to NewBie's Corner, a weekly or biweekly post covering basic Caché Material.
This post contains several links to very good documentation of the Caché Globals Structure.
Like I said, "Perhaps the most difficult concept in Caché/MUMPS is its Global Structure."
universalNoSQL.pdf - http://mgateway.com/docs/universalNoSQL.pdf
by Rob Tweed and George James
Extreme Database programming with MUMPS Globals
http://gradvs1.mgateway.com/download/extreme1.pdf
by Rob Tweed
Documentation from InterSystems on Globals
Windows 7 and some other Microsoft Operating Systems can shutdown too fast for large applications, such as a Cache instance with a large amount of data and changes, to close gracefully. This results in the instance being forced down by the OS and so causing problems on the next start up.
To solve this we can change the OS shutdown timeout values to give Cache more time to close gracefully. We do this by editing some settings in the Registry.
1.Click Start (on Win 7) and type “regedit” and make sure you run registry editor as administrator.
Hi All,
We are Using Ensemble 2014, Windows Server 2012 64 bit operating System.
We need to sense whether Htpps is alive or not.
In Cache we tried %HttpsRequest Library we set https property and port=443. But it doesn't work.
Anyone help us plz.
Thanks, Sansa
We're developing Ensemble PoC and one day our frontend developer (who doesn't have Ensemble production running) said that Populate just doesn't cut it and he needs to see the real data. He needed only one object, but the problem was - it's a big object. Still, I checked ids of everything related and wrote this command (parts omitted, but you get the idea):

