Has anybody created a way to change the background color of a cell depending on the value contained in the cell. This is simple when only one background color is required. However, if there is a requirement for several different colors depending on the value of the cell, the out of the box <condition/> approach does not suffice. Thank you for any feedback.
Hi,
After restoring all the Cache related files on a machine, I am performing journal recovery using the command "^JRNRESTO". It works as described in the document and the recovery succeeds. However, the command is interactive. Is there a way I can run it in a programmatic way? I don't want to just supply a text file containing answers to all the prompts. I am wondering if there is way I can pass all the information upfront to the command.
Thanks,
Raghu
Is there a way to generate or create a WADL or some form of service definition for a class containing REST services or on a specific URL?
here is my $ZV string "Cache for Windows (x86-64) 2016.2.1 (Build 803) Wed Oct 26 2016 12:43:35 EDT"
two questions
1. How do i convert any Persistent object to JSON String ?
2. How do i convert an y Register object to JSON string ?
3. Do i need to extend from any adaptor class for 1 & 2 ?
Hello everyone. I have some problem with selecting my own globals from namespace. My task is select only globals created by me. Follow my code, I get all globals from given namespace.
Please help me with excluding system globals. I need work only with my own globals.
I have an EMR sending double quotes "" as the value. How do I write criteria to find this match in a DTL?
PV1|1|A|||||1111111111^Doctor^MR|||||||||||||||||||||||||||||||||||||20170331|""
source.{PV1:DischargeDateTime()}="""" didn't work
During startup a Caché/Ensemble/HealthShare instance must consult a parameter file to get some information it needs at the early stages of startup. By default it uses the file called cache.cpf, but by adding an extra argument to the ccontrol start command you can make it use an alternative file.
I am working on creating a DTL that can replace OBX segment with a string formatted NTE segment . There is a class ImportFromString but it looks like that is not replacing the target message with the new formatted NTE. I do see target.setvalueat class but I wanted the transformer to not be scheme base.
ClassMethod Transform(source As EnsLib.HL7.Message, target As EnsLib.HL7.Message) As %Status
{
set target = source.%ConstructClone(1)
s idx=1
s pSegCount=target.SegCount
s pObservationValue=""
s pObservationIdentifier=""
s pOBXSegment=""
FOR idx = pSegCount {
s seg=target.
how to exclude weekend(Friday) in sql statement i trade use select datediff(WK,date1,date2) but not working even i chose (Dialect mssQL)
Thank You
Usually I recommend to set the global buffer (GB) as large as possible in order to maintain in memory more globals as possible. I don't know if this is a standard recommendation, but I want to discuss what should be the best buffer size for a Ensemble instance that only process messages.
I mean, if the instance only runs productions that pass messages then the 90% of the global access is used for persist the messages.
Hi,
suppose a part of my mdx query is [DIMENSION].[H1].[LEVEL1].CURRENTMEMBER.Property("PROP1").
If the source property of PROP1 is also used as a dimension level somehwere in the cube, this query will return a key to the entry in the coresponding star table.
Does anybody know how I can follow that key and display the real value value?
I've got an issue trying to write a code which should add some global mapping to already existing namespace. Here is its skeleton:
We are planning to use Caché users on a SOAP web-service, so the WS-security tokens will be used.
It will be username and password only for now.
The passwords should expire on a regular basis and this will be configured in the system-wide security settings.
The consumer of the web-service should be able to change their password on-demand or when it has expired, via a web-service call.
For the on-demand change, I can create a service method which can be called by the consumer to change the password.
I'm moving *D globals from DatabaseA to DatabalseB.
After importing globals I need to rebuild indices for all the imported persistent classes.
Colleagues, maybe you know one command which does it for all the classes in Namespace?
Hello, we have a few hundreds of triggers to port from Oracle to Cachè for a migration project, and many of them have to change (for example, normalize a value, null it, etc) the value which is being inserted.
The documentation says "You cannot set {fieldname*N} in trigger code." , so we're unlucky.
Is there a good workaround for this ?
SqlComputeOnChange doesn't seem the best way, but I'm not totally sure: for example normalization and validation could have a better place somewhere else than a trigger.
Hi!
Does anyone know if it is possible to programmatically (COS) read the productdescription from other namespaces?
What are the differences between a process private global and a percent variable? Basically I have some code running in an Ensemble operation that processes requests, and it needs access to pieces of data that are scattered throughout XData blocks in various classes.
This post is a digest of the Developer Community postings in March 2017.
Most viewed
Join InterSystems Global Masters! 186
Machine Learning with Spark and Caché 157
Atelier - the first three months 154
How to get result of $ZF(-1, "commmand") into a variable 133
Accessing the iKnow REST APIs in 2017.1 125
Can someone explain this like I'm five? 117
I was wondering if anyone has combined ZEN Web Development with frameworks such as W3Schools W3.CSS Framework or the popular Bootstrap Framework?
We are currently using Caché 2013.1.6 so we do not have ZEN Mojo installed which ships in Caché 2014.2 or later.
What would be the recommended approach if looking to integrate one of these frameworks?
I look forward to hearing your suggestions!
Hi, Community!
Is there an option to get an archived file of globals in one command. Say for:
Do $System.OBJ.Export("Class1*D.GBL,Class2*D.GBL","data_gbl.xml")
get something like:
Do $System.OBJ.Export("Data*D.GBL","data_gbl.gz","gzip")
And also to have the convenient one click way to import it to the namespace via terminal or Control Panel?
If anyone already has this module, share please?
It would be very convenient for import/export/continuous integration purposes cause globals can be really heavy.
Due to a new project I'm getting involved inside %Installer stuff deeper than ever I'd be happy to. Most of it was pretty easy to get, thanks to documentation, articles and SAMPLES example, while I can't dig good solution for one problem. I'm trying to import and compile some classes, willing to ignore two types of errors: 5202 (NothingToCompile) and 5373 (PredecessorClassDoesNotExist - a normal case when SNMP sampling class is compiled for the 1st time, before it was registered).
I've tried the following:
<If Condition='#{##class(%File).Exists("${AddonDir}/AddClasses.
One of our Departments are claiming that we are loosing HL7 messages that are sent from their Vendor's system to Ensemble.
I know interfaces 101 if we have no record of the message then we never received it, however they are insisting they are sending it.
I asked them to provide the ACK's if they sent the messages but Ensemble had no corresponding Message Control ID (MSH.10) .
Currently I have the following settings.
would like to know how to execute deployments through cache terminal..Are are there any function or scripts available for deploying ? Is there any direct cache command similar to GUI-deploy that will deploy ?
Please let knoe
I have multiple namespaces in a Cache environment say NS1 & NS2. I want to add some restriction so that a routine running in the NS1 should not access any resource(global/routine) belongs to namespace NS2.
The above restriction need for few of the clients only, so we do not want to write any custom logic in code.
We are looking for some solution provided by Cache where we can restrict the namespace access.
Can somebody please help me on this.
Hi,
I am placing Cache instance in backup mode by using the command:
csession <INST> -U%SYS "##Class(Backup.General).ExternalFreeze()"
and I see in the console log a message similar to follows:
"Journaling switched to: /cache/mgr/journal/20170330.002"
Now, is there a way to programmatically find out this journal file name? In fact, I am interested to find out the journal file that is switched. For example, in the above case, that would be "20170330.001".
Thanks,
Raghu
Following on from https://community.intersystems.com/post/custom-business-process-change-sendrequestsync-sendrequestasync we are refactoring a number of business processes to use OnRequest/SendRequestAsync/OnResponse mechanisms.
To prevent overloading some of our datasources we currently implement a simple caching system using locks similar to the code below.
Method OnRequest()
{
Set key = .getKey(request)
Lock +^DataCache(key)
if ('.cacheValid(key))
{
Set status = .Hello, Thanks in advance for all replies. I have been practicing setting up mirroring between two development servers in preparation for mirroring our production server in a few weeks. I started by setting the servers up with minimum security which worked easily, then I set it up in lock down mode again without any issues. Now I am setting it up in lockdown mode with encryption and this one is testing me. I have everything setup but my async dr member cannot connect to the primary.
from cconsole.log
3/23/17-10:09:39:851 (3124) 0 [SYSTEM MONITOR] Mirror status changed.
Hello,
I have a problem with an Ensemble instance on Windows to access to a network shared directory. Ensemble service (services.msc) is executed with a user which has access to this network shared directory :
- When I try to copy or access files from a terminal ==> this is OK : the command w ##class(%SYS.ProcessQuery).%OpenId($Job).OSUserName returns the user defined in Ensemble service logon screen.
- When I try to copy or access files from a service, process or operation item of the running Production ==> this is KO and the command ##class(%SYS.ProcessQuery).%OpenId($Job).
Hello,
I'd like to know if there is an easy way to get result from a $ZF(-1) into a varaible to use it in HS code.
Thanks
Hi, Community!
There are plenty of questions on Developer Community every day, which is great!
And which is even better - there are plenty of answers!
A few months ago we introduced a nice feature - 'accepted answer'.
'Accepted answer' is a checkbox on the left of every other answer you see in a question post. So it let's op to mark the particular answer as accepted one. If you do that, this question disappears from unanswered filter.
And, we introduced a special challenge of "Accepted answer" in Global Masters which gives 150 points for every answer which is marked as accepted.




