Question Eduard Lebedyuk · Dec 25, 2017 How can I redefine marco and recompile code for subclass Let's say I have Macro.Parent class: Include Parent Class Macro.Parent { ClassMethod Test() { write "Class: " _ $classname() _ $c(10,13) _ "Value: " _ $$$name } } which references Parent.inc macro name: #define name "Parent" Now, I want in my subclass Macro.Child to have Test method with the same code, but to redefine value of name macro. #Caché 0 6 0 345
Question Eduard Lebedyuk · Dec 20, 2017 Atelier terminal How can I get a terminal connection to Caché server from Atelier?Is it possible? #Beginner 0 11 0 976
Question Eduard Lebedyuk · Nov 29, 2017 Callout - how to get something beyond simple datatype (or return several datatypes) Is there a way to get one of: Struct$lbSubscripted local variableList/array As a return type from callout call? And related question: is there a way to return several values (which may contain commas) from one callout call. Or rather what's the best approach when doing that? #Caché #Callout 0 4 0 329
Question Eduard Lebedyuk · Nov 24, 2017 Index build order Is there any way to specify in which order indices are built during:%BuildIndices%SaveSo far I think they are built by name order. #Caché #Indexing 0 3 0 388
Question Eduard Lebedyuk · Nov 8, 2017 Start only external apache Is there an option to configure Caché to start external apache instead of internal one on startup? #Caché #System Administration 0 4 0 626
Question Eduard Lebedyuk · Oct 30, 2017 Zstrip to clean string I'm extracting text from HTML (more on how - here), and after I extract text it has two problems: Lot's of $c(10) control charactersMultiple whitespaces Here's an example of the text extracted from HTML page: #Beginner #Caché #ObjectScript 0 2 0 1.6K
Question Eduard Lebedyuk · Oct 26, 2017 Get class property position in storage $lb I have a classname and a property name. I want to know, when I get object value directly from a global, which property corresponds to which position in the $lb structure. Here's what I got so far: #Caché #Globals 3 6 0 579
Question Eduard Lebedyuk · Oct 25, 2017 Merge of two databases I have two databases, and both of them have a global ^Data with subscripts going from 1 to 10 000 000.I want to get one database with global ^Data but with subscripts going from 1 to 20 000 000.Since each db is around 100 Gb and they are on a different hosts, what's the best way to merge them? #Databases #Globals #System Administration #Caché 0 5 0 444
Question Eduard Lebedyuk · Oct 5, 2017 Java Gateway - How to store object in memory between calls? Trying to connect Ensemble to RabbitMQ following this article I'm using Java Gateway and encountered the following problem - in all my calls I need to pass connection object, which is always the same but it takes a long time to create. Here's java code: #Ensemble #Interoperability #Java 0 1 0 440
Question Eduard Lebedyuk · Sep 5, 2017 How to convert collection properties into json array? Let's say I have this property: Property FavoriteColors As List Of %String; I heed to convert it to JSON using SQL or at least without object access (so direct global access). What's the fastest way to do that? I thought about JSON_ARRAY and JSON_ARRAYAGG sql functions but they don't do that. #Caché #SQL 0 5 0 1.2K
Question Eduard Lebedyuk · Aug 31, 2017 What's the fastest way to check if one class is a subclass of another I need to check if one class is a subclass of another (either direct or indirect). For example: Class Package.ClassA Extends %Library.Persistent { } Class Package.ClassB Extends Package.ClassA { } Class Package.ClassC Extends Package.ClassB { } In this example Package.ClassC is a subclass of 3 classes: %Library.Persistent, Package.ClassA, Package.ClassB. So any of these checks should return 1: #Beginner #Caché 0 3 0 685
Question Eduard Lebedyuk · Aug 31, 2017 How do I get a list of classes that are subclasses of 2 unrelated classes? I need to get a list of all classes that are subclasses of two unrelated classes. For example I want to get a list of all classes that are both: Persistent (extends %Library.Persistent)XML-Enabled (extends %XML.Adaptor) To get subclasses of one class I can use this query: set rs = ##class(%Dictionary.ClassDefinitionQuery).SubclassOfFunc("%Library.Persistent") But what about two classes? #Caché 1 6 0 548
Question Eduard Lebedyuk · Aug 29, 2017 Parameters SERVICEINPUTCLASS and SERVICEOUTPUTCLASS - what are they? Several Ensemble adapters have SERVICEINPUTCLASS and/or SERVICEOUTPUTCLASS parameters defined. For example: Class EnsLib.HTTP.InboundAdapter Extends EnsLib.TCP.InboundAdapter { Parameter SERVICEINPUTCLASS = "%Stream.Object"; Parameter SERVICEOUTPUTCLASS = "%Stream.Object"; ... } What are they for? #Ensemble #Business Service 0 4 0 326
Question Eduard Lebedyuk · Aug 8, 2017 Apache server and directory index I have a Caché server with external apache. It has a hostname, i.e.: http://myserver.com There is an index page, which is available over http://myserver.com/index.html (/ is a Caché CSP app) How can I make index.html available from http://myserver.com? Here's the relevant parts of my apache config: #Frontend #Caché 0 3 0 759
Question Eduard Lebedyuk · Jul 26, 2017 Ensemble async passthrough configuration I'm trying to create asynchronous Ensemble service/operation pair for SOAP passthrough.General configuration:Ensemble Service receives a message and immediately returns an answer to a caller (message received or some error)Ensemble Service asynchronously calls Business OperationBusiness Operation does guaranteed message delivery, etc.Is it a viable approach?Any tips? Ideas? Caveats? Code?Seems like I can sublass EnsLib.SOAP.GenericService and change Sync to ASync (and provide a default reply immediately). #Business Operation #Business Service #Ensemble 0 3 0 648
Question Eduard Lebedyuk · Jul 26, 2017 Ensemble passthrough configuration I have tried to create Ensemble SOAP passthrough operation following this guide. Here's my production configuration (after steps 1-4): #Business Operation #Business Service #Interoperability #Ensemble 1 3 0 617
Question Eduard Lebedyuk · Jul 14, 2017 How can I determine if a query is an SQL or an MDX query I have a query text that I need to execute and return results as xml.It may be an SQL query or an MDX query. Is there some easy way to determine which one is it?Any ideas? #InterSystems IRIS BI (DeepSee) #MDX #SQL #Caché 0 2 0 325
Question Eduard Lebedyuk · Jul 11, 2017 Localization of DeepSee Pivots How can I localize arbitrary column name in DeepSee pivot?If a column name is a dimension or a measure I can localize using architect following this guide.But what about some random string?I have tried setting:Value$$$Value$$$Value/MYDOMAINas a Caption, but every option simply displays as is. #InterSystems IRIS BI (DeepSee) #Analyzer #Localization 0 1 0 271
Question Eduard Lebedyuk · Jul 10, 2017 How can I make my text behave in accordance with gravity? Hi, Community! And so I continue with publishing of the tasks for the Final round of InterSystems Contest on InterSystems Caché and DeepSee as a part of IT Planet Student Championship in Sochi. This year we had about 2 000 participants in InterSystems Contest. One of the tasks for the finals was to crack the black box and another to output 9876543210! Here's the next task: gravity! #Caché 1 3 0 364
Question Eduard Lebedyuk · Jun 26, 2017 iFind and HTML text I have a class with text property, which contains html text (usually pieces, so it may be invalid), here's a sample value: <div moreinfo="none">Word1 Word2</div><br> <a href = "123" >Word3</a> When I add iFind index on text, there are at least two problems: #iFind #iKnow 1 4 0 434