Greetings,
How can I extract/return the workstation id in M. In other words, I csession in to MUMPS and I want to extract the workstation to use.
Thanks in advance for everyone's help...
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Greetings,
How can I extract/return the workstation id in M. In other words, I csession in to MUMPS and I want to extract the workstation to use.
Thanks in advance for everyone's help...
I am quite new to Studio and I have been a Microsoft guy for a very long time and spoilt because of the short cuts provided and the flexibility of the IDE. Any tips and tricks for me to make my life easy while using the studio?
For each instance of an XML-enabled class I want to control whether a property is projected as an empty element or not projected at all. With string properties, I can set the value as $c(0) for an empty element, or an empty string for no projection. But it looks like this isn't consistent for properties with type %Boolean or %Integer. With booleans $c(0) gets projected as "false". With integers $c(0) stays as a zero-width space in the XML output (which gives me a SAX parser error if I try to read it).
Is there a way to do this that works for all datatype properties?
Class A Extends %Persistent
{
Property Doctor1 As %Library.String;
Property Doctor2 As %Library.String;
Property Doctor3 As %Library.String;
}
I know my solution is wrong, but if i want to access A.Doctor1, can I get a way like
s count=1
s DoctorName="Doctor"_""_count
s A.DoctorName="doctor1"
Hello ,
I want the datagrid to reflect values based on the value i select in the Combobox. How to pass value from the combobox to the
altJSONSQLProvider parameter and reload the datagrid ?
My combobox defines below method on change.
onchange="zenPage.rowSelected(zenThis.getValue());"
<altJSONSQLProvider id="PatchClassJsonId" OnGetSQL="GetSQL" >
<parameter paramName="1" value="C"/>
</altJSONSQLProvider>
<dataGrid
,......
</dataGrid>
Hello all,
I have created a simple Datagrid and using jsonSQLProvider with a SQL statement as the datasource. Please see below.
Just got the new beta version of Docker, with depreciation warning of AUFS. It's so bad news when InterSystems does not support used by default storage driver overlay2. Recently I thought to play with Google Kubernetes Engine, and realized that I can't work with InterSystems products there due to incompatibility with Storage Driver. Maybe it's already time to think about support?
Working on a proyect with :
Cache Object Script, Jquery and Bootstrap :
I have a big problem to do pagination with parameter, to query filter and registry limitation, but i find a solution using session and global:
Set FilterDate = %request.Get("df")
If (FilterDate=""){
Set FilterDate = $Get(^NSSession(%session.SessionId,"FilterDate"))
}
If (FilterDate'=""){
Set ^NSSession(%session.SessionId,"FilterDate") = FilterDate
}
Hi,
I'm using InterSystem Cache v2015.2.5 and I'm implementing a REST API and returning JSON.
Following the documentation I see examples like this
Set obj = {"destinations": ["London","Madrid","Tokyo"]}
Write obj.%ToJSON()
However, I have a compilation error
ERROR #1054: Invalid expression : '{"destinations":'
Is there something that needs to be enabled on Studio to allow this syntax?
Thank you,
Rui
I created a custom class for a process that does some basic manipulation to an HL7 message. I'd like to be able to write some debugging to the process event log. How would I do that?
I've tried ##class(Ens.Util.Trace).WriteTrace("system","HOSP.IHE.PDQProcess","MessageHeaderHandler","Discarding input message")
but I get a runtime error when I try that. I know this is pretty basic stuff, but any help would be appreciated.
Is there a responsive way to detect a source code change without using a source control hook?
Update
I have my own custom unit test tool which has lots of extra functions that I find useful such as Asserting HL7 Transformers and REST targets.
I have a studio hook that will send an event signal to my test runner that will automatically re-run a specific test class or test suite, for which I have a test runner viewing page that updates with the results.
There are some environments that already have a studio class registered and I don't want to shim something in-between the two.
(Originally posted on Intersystems CODE by @Iain Bray) The following code snippet converts all indices in a package to bitmap indices. The subroutine "test" runs the code:
The data model of your solution based on InterSystems platforms constantly changes over time. But what do you do with the data that was entered before? Back then, the data was valid, but what’s happening to it now after a number of data model changes? The answer to this question can be provided by the IDP DV tool that checks the property data of persistent and serial classes according to the types of these properties. In case any discrepancies are found, the tool generates a detailed error report for the user.
I have a XML enabled persistent class and a XML representation of some object of this class (object ID is available).
How can I use XML Reader (or some other mechanism) to automatically update this object?
Greetings all,
I have a quick SQL question. I am working with a class, which has a calculated property, which in turned indexed.
The calculation for this property is created based on another property value via:
SqlComputeOnChange = attributes - so basically every time I add a property attribute to my class, my new property
is calculated based on some SqlComputeCode which calls some class method.
That initial setup works as designed.
Hi,
Need your help on executing ##Class(Backup.General).ExternalFreeze() and ##Class(Backup.General).ExternalThaw() operations in
Atelier REST API setup. Please provide us example code if any.
I need to write a script to answer a couple of fairly simple questions:
1) What is the current routine DB (name and location) for this namespace?
2) What is the current data DB (name and location) for this namespace?
3) Is global ^ABC mapped to a different location than the default data DB?
Can anyone point me to some system APIs that would allow me to answer these questions?
Thanks!
Ben
Hello
Please I have a problem to save all name of files attached in table with date and load all files attached in directory
My code HTML
-------------------------------------
Hi,
I ran into the Issue https://hibernate.atlassian.net/browse/HHH-10620. The workaround described at https://community.intersystems.com/post/support-java-hibernate-5 worked for me. I'm using Hibernate Version 5.3.2.Final.
It would be nice if someone from InterSystems could fix the the problem in Hibernate. That was mentioned in https://community.intersystems.com/post/support-java-hibernate-5 but it doesn't seem to have happened.
Hi,
Most of my classes are mapped from Globals. I want to access Cache classes from a BI software through ODBC connection.
'Last update' information does not exist in most of the classes. My question is whether there is a 'last update' timestamp that is automatically generated for each line in classes I can extract to external systems?
Thanks
Can anyone tell me how to discover in ObjectScript the operating system and operating system version that Caché is actually running in? (Not the operating system the build was compiled for.)
I need to dynamically create a class based on a parameter passed into a class method. Basically the method takes in a string that contains the name of the class I need to create a new instance of.
I need something along these lines.
ClassMethod someMethod(className As %String)
{
set classObject = ##class(className).%New()
...
}Trying to do this right results in a class not found error because it seems to be treating the variable as a literal string.
Working on implementation FHIR to my project, I found interesting project HAPI-FHIR, which could help me to quickly launch my FHIR api server with InterSystems Caché as a storage, because this projects uses Hibernate to connect to database, as an example they use DerbyDB. I tried to change settings to use InterSystems Caché, but unfortunately it does not work and throw some errors inside HIbernate. As I found in Caché documentation, I have not some many options, I just have to set Cache dialect, and set database url. This projects uses Hibernate 5.1
Hi Everyone,
I am trying to built a SSIS package thru BIDS Visual Studio 2013. My Datasource is a InterSystems Cache Database, I wanted to Import Tables records from the Datasource to MS SQL Server 2014.
As a Sanity check. I only created one Package to import one Table to MSSQL Server to try out. The connection to the InterSystems Cache Database was successful. The DSN for the InterSystems Cache Database is created in the System for 32 and 64 Bit.
Has anyone worked out a way to use LDAP to define the default namespace on multiple servers? I know that documentation says that intersystems-Namespace-xxx only supports one namespace, but how is this useful? Any workaround to say have intersystems-Namespace-server1-namespaceA and intersystems-Namespace-server2-namespaceB? Is it best practice to use the same "namespace" on every server?
Thanks!
I downloaded and installed the trial version of Caché.
it is installed in c:\intersystems\Trycache
I changed the system environment settings so that
GLOBALS_PATH = c:\intersystems\Trycache
and PATH includes c:\intersystems\Trycache\bin
Caché works, and I can login, use the globals, etc...
I'm trying to interpret a ObjectScript pattern and I am stumped on the first part. I understand everything else but not sure what 1.A means. I know A stands for Alpha characters just not sure what the 1. means
The following code provides information about software builds. Read the original description below for information about the different methods:
Hello,
I have been trying to pull data through a linked server in SSMS from an InterSystems Cache Database for a while, this is to enable us to join the data to other source systems in our Data Warehouse.
I have set up an ODBC connection and a linked server to the database and can execute queries through OPENQUERY in Management studio, but the data is huge (> 100million rows). So when I execute a SQL query with a WHERE clause the query just spins.
I'm trying to execute a nodejs process to perform some work on a string from Cache/Mumps over to nodejs, then return the result from nodejs as a string back to the code in Cache and I was looking at the `$ZF` logic - it will let me output the results to a file (i.e. temp.txt) but I dont see a way to just get the output set back to an M variable like (and I know this is not the correct syntax, but just for example)
S myOutput=$ZF(-100, "echo something") ;; wrong syntax but just for example
W myOutput ;; want to write out "something" but of course this doenst work