intersystems-cache

Convert four Digit number into hour format SQL

为君一笑 提交于 2020-01-24 00:40:13
问题 I have looked into Cast and Convert, but I cannot find a way to do this. I need to convert four digits into an hour format. For instance, 0800 would become 8:00 or 1530 would become 15:30. I cannot use functions, I'm using a InterSystem's CacheSQL. Any suggestions? Thanks in advance! EDIT: If it is any more convenient, I can just divide the four digits by one hundred to get values like 15 from original 1500, or 8.30 from 0830. Does this make converting to hour:minute format easier? 回答1: For

How to take screen shots in windows system using Intersystems Cache?

谁说我不能喝 提交于 2020-01-07 09:51:12
问题 How to take screen shots in windows system using inter systems cache? 回答1: Cache doesn't have any built-in way to directly take a screen shot, so the closest you could come is to have a Caché process call something that does know how to take a screen shot. The ways to call out from cache are documented on the Intersystems web site and this same documentation is usually included in a Caché install. The simplest option (and you don't give enough information to know whether that will work) is

How to take screen shots in windows system using Intersystems Cache?

こ雲淡風輕ζ 提交于 2020-01-07 09:51:02
问题 How to take screen shots in windows system using inter systems cache? 回答1: Cache doesn't have any built-in way to directly take a screen shot, so the closest you could come is to have a Caché process call something that does know how to take a screen shot. The ways to call out from cache are documented on the Intersystems web site and this same documentation is usually included in a Caché install. The simplest option (and you don't give enough information to know whether that will work) is

Intersystems caché - programmatically create new class

大憨熊 提交于 2020-01-05 02:30:50
问题 Is it possible to write ObjectScript method, which will create new class in namespace and compile it? I mean programmatically create new class and store it. If so, can I edit this class using ObjectScript later(and recompile)? Reason: I have class structure defined in string variable and I need to add new class to namespace according this string. 回答1: Nothing is impossible. Everything in Caché can be created programmatically. And, Classes is not a execution. There are at least two ways to do

Intersystems Caché with Java Gateway - Pass parameter as java.io.FileInputStream

若如初见. 提交于 2019-12-25 14:10:47
问题 In my project I'm using a integration of Intersystems Caché with Java by a Java Gateway, it's basically maps JARs and create a class proxies in Caché to access Java classes into the JAR. A class in Java has a parameter of type FileInputStream , my question is how I should send this parameter Caché proxie ? What type of data in Caché represent the FileInputStream in Java? Regards, Lucas Boeing Scarduelli 回答1: When you create proxy for that java, should be created cache-class for

Intersystems Caché with Java Gateway - Pass parameter as java.io.FileInputStream

淺唱寂寞╮ 提交于 2019-12-25 14:08:35
问题 In my project I'm using a integration of Intersystems Caché with Java by a Java Gateway, it's basically maps JARs and create a class proxies in Caché to access Java classes into the JAR. A class in Java has a parameter of type FileInputStream , my question is how I should send this parameter Caché proxie ? What type of data in Caché represent the FileInputStream in Java? Regards, Lucas Boeing Scarduelli 回答1: When you create proxy for that java, should be created cache-class for

How can I reliably convert YYYYMMDDhhmmss<offset> to a date/time?

巧了我就是萌 提交于 2019-12-24 13:15:16
问题 I have a data source where the dates come back like this: 20150614140520-0500 How can I display this better? It doesn't actually have to be converted technically, this is just for reporting. Ideally it would output 2015-06-14 2:05 PM (EST) but I also want the statement to be as simple as possible so the timezone offset and 12hr time are optional. I tried CAST ('20150614140520-0500' As Date) but it returns null I also tried CAST (LEFT('20150614140520-0500',14) As Date) as well as some other

How can i make copy of a global automatically in my local system?

瘦欲@ 提交于 2019-12-12 20:37:13
问题 Consider, i have a global ^TEST and i want to replicate/have a copy of the same in ^TEST2 automatically.Each action set or kill on ^TEST should reflect on ^TEST2 automatically. 回答1: The only way to make sure that this can happen 100% reliably is to create a Journal Filter which watches for changes to ^TEST and then manipulates ^TEST2 appropriately. See http://docs.intersystems.com/cache20141/csp/docbook/DocBook.UI.Page.cls?KEY=GCDI_journal#GCDI_journal_util_ZJRNFILT for details on how to

Intersystems Cache coding query

孤街浪徒 提交于 2019-12-12 05:03:10
问题 SELECT Distinct visitid As Visit_ID, AreaId->FacilityID As Facility_ID, visitid-PatientSecondaryNumber As Patient_MRN, visitid->PatientName As Patient_Name, visitid-statustext As visit_Status, visitid->LastVisitTypeID->shortname As visit_Type, visitid-LastVisitActivationTime As Last_Visit_Activation, (SELECT VisitConversionID->VisitTypeID-shortname FROM qcpr_arf_OC.VisitActivationTime WHERE visitid = qcpr_arf_RG.AreaBedHistoryEventTime.visitid AND VisitConversionID->VisitTypeID-shortname LIKE

What privileges are needed to run this query?

让人想犯罪 __ 提交于 2019-12-12 04:59:56
问题 I use InterSystem's cache JDBC driver to query the "database dictionary" in order to retrieve source code from classes. I have this SQL query: final String query = "select id, super" + " from %Dictionary.ClassDefinition" + " where System = '0'" + " and name not like '\\%%' escape '\\'" + " and deployed != 2"; Right now, the user performing this query has %All as a role, which is of course not a good thing. I try and reduce the privileges of this user to the strict minimum necessary. I am