Question Rubens Silva · Jul 7, 2020 CompileAll uses alphabetical ordering only? Hello.We're trying to create a script that compiles everything on a certain namespace, for that we are depending on CompileAll. However it seems that this method doesn't check for a dependency tree even when using flags like: curb. #Compiler #Caché #InterSystems IRIS 0 6 0 242
Question Rubens Silva · Apr 15, 2020 Exporting sources as XML to stream Hello, Recently I have been required to work with a method called ExportToStream. The situation asks me to export a UTF-8-encoded JSON as a XML to be imported on old releases. Here's how I attempted to fulfill this request: #JSON #XML #InterSystems IRIS 0 10 0 763
Question Rubens Silva · Mar 27, 2020 ZPM: questions about private usage Hello, We're considering adopting the ZPM solution as a way to manage many of our customer updates. However in order to do so we need to know a few things. #InterSystems Package Manager (IPM) #Caché 1 1 0 231
Question Rubens Silva · Mar 13, 2020 Strange behavior when using $get Looks like the $get is actually trying to use the property getter instead of evaluating the GetAt as a method first.Should this be considered a bug? #ObjectScript #Caché 0 7 0 361
Question Rubens Silva · Mar 9, 2020 How to create a REST web application using a Installer manifest Just like the title says, I'm attempting to find a way to create a web application that instead of serving CSP files, it uses a dispatch class.I searched for clues in the documentation, but the CSPApplication tag seems to be exclusively for CSP file-based applications.I'm trying to avoid implementing a workaround such as using the Invoke tag to call the Security.Applications to generate the web application but I might be forced to do so, even though it's unpleasant if I had to say...So, is there an official way to execute this task? #API #CSP #Caché #InterSystems IRIS 1 22 0 587
Question Rubens Silva · Jan 31, 2020 Help me understand this encoding behavior when exporting XML Hello.I'm trying to export a XML stream containing some files that are supposed to have been written using UTF-8, but I'm facing some broken encoding issues.You can see below that I'm indeed viewing a UTF-8 encoded and which is inside the CSP folder and encoded correctly (although displaying it on Studio would not display it correctly as the file is not using BOM and that's intentional). #XML #Caché 0 7 0 724
Question Rubens Silva · Nov 12, 2019 What's the default charset encoding used for CSP files? Pretty straight forward.I'm tempted to hard-code ISO-8859-1 inside my VSCode extension when working with CSP because this seems to be the encoding used by default, but I need to know if there's any other possible configuration. So can you share your experience when working with CSPs? Like issues with encoding, discoveries regarding it, workarounds etc.Also, can someone tell me if it's possible to work with UTF-8 encoded CSP files using Atelier without breaking the encoding of the output file? #CSP #Caché #InterSystems IRIS 0 3 1 619
Question Rubens Silva · Sep 6, 2019 %File: Method Exists returns TRUE also for directories? Hello, I had an issue when using the method Exists, I noticed that if you provide a directory for this method it returns 1. This is really misleading, because sometimes the input could be a directory and the only way to predict this is to also test if the file is a directory. I didn't tested using the Attributes method, but I supposed that this means could also be a solution for that issue. But still, I expected the Exists method to return 1 for files and 0 for directories, since there's also method called DirectoryExists already. #ObjectScript #Caché 0 4 0 415
Question Rubens Silva · Nov 9, 2017 WebSockets and SharedConnection: Need some enlightenment Hello.We're about to implement an application that could use WebSockets intensely so before we head to that direction we need to figure out about how some few things work. That being said, anyone care to give me some enlightenment? #API #Object Data Model #SOAP #Caché 0 1 0 289
Question Rubens Silva · Sep 19, 2017 DC: Improvement Ideas (NOT OFFICIAL) Hello all.I think the forum experience is great as whole, but it could improve even more if we had somewhere to share our ideas. So that's why I'm creating a thread dedicated for that purpose. Maybe this way someone from InterSystems could catch something good? #Tutorial #Other 8 11 0 403
Question Rubens Silva · Sep 4, 2017 SQLQuery: Cannot use JSON_OBJECT with literals Hello, I just noticed that the following query is not allowing when using cached queries.The compiler will accuse the code about missing a closing quote.Just so you know, if I use this query dynamically it works, so I guess it's related to the code linting. #Compiler #Object Data Model #Caché 0 4 0 389
Question Rubens Silva · Aug 9, 2017 %FromJSON doesn't support %Stream on a property basis Hello.I just noticed that whenever I parse a JSON using %FromJSON, it always return the property values as primary data types, including long strings. #JSON #Object Data Model #Caché 0 8 2 2.7K
Question Rubens Silva · Aug 2, 2017 Is there a way to detect the last written char? Hello.I'm using device redirection to intercept incoming writes and need to figure a smart way to detect when to CLRF in order to prevent misleading outputs.So basically, if the intercepted write ends with !, I need to know that and prevent my routine from writing ! as well.Here's the source code for it: #Object Data Model #Caché 0 13 0 491
Question Rubens Silva · Jul 27, 2017 REST: How to pass query parameters Hello.I'm having difficulties trying to figure (if possible) how to create an URL that also matches query parameters.I tried: #Caché #REST API 0 5 0 2.1K
Question Rubens Silva · Jul 12, 2017 Cannot call job for instance method? Greetings, can someone give me some help? I'm trying to use job for a instance method, as it's described here but...Anyway, I have a method like this: #Object Data Model #Testing #Caché 0 5 0 414
Question Rubens Silva · Jul 11, 2017 dotenv: Read enviroment variables from a .dotenv or straight from your OS You might find it useful or not. It depends on what you can imagine it to be used with, like I had to.Either way, I created a lib that can fetch environment variables from a file or from the OS where Caché is running.Mostly know as dotenv. Many languages have it, so why not Caché?The usage is pretty simple:If you want to use OS env vars exclusively, just use the method: #Git #Object Data Model #Tools #Caché 1 3 0 407
Question Rubens Silva · Jun 12, 2017 Populate not working for relationship Here's my issue. I've been using Sample.* globals and packages mapped to another development namespace to realize unit tests. So when I ran it, I notice that I forgot to start a transaction in order to be able rollback it to it's original data.I assumed that I should use transactions since I was manipulating it's data but I didn't want it to be persisted. #Object Data Model #ObjectScript #Caché 0 1 0 348
Question Rubens Silva · Jun 2, 2017 ResultSet / SQL.StatementResult: How to know if a column value is $list'ed I'm breaking my head trying to figure how to solve this issue. #Object Data Model #SQL #Caché 0 6 0 937
Question Rubens Silva · May 12, 2017 Interprocess comunication (main< = >job) Hello.I would like to know if there's a way to batch a certain amount of writes done inside a job and display it sequentially on the main process.My idea is to prevent the main process from freezing while displaying the batched data. The main process's device could bethe terminal or the Studio output. #Object Data Model #Studio #Caché 1 11 0 606
Question Rubens Silva · May 9, 2017 Atelier: GetDocs bug? Greetings.I'm trying to do some experiments using the Atelier REST API, but I noticed a bug that I simply can't bypass.When requesting the Atelier server asking for an array of docs, it seems to fail when using it with multiple formats.Like: [ "RCWWW015.int", "Class.cls" ]While this method does return the class's source code, it fails when fetching the routine.Like this: #API 1 1 0 288