Question Daniel Lee · Aug 1, 2023 How to search for messages based on size I would like to search for all messages where their body size is greater than 3MB. I have searched through the common Header and body properties and I have not found a size property. I have looked at the extended properties but I am unsure if any of the extended classes allows me to find the Doc size. I have stepped through most of the body property classes related to messages or documents that have an exposed property that filters by document or message size. Is there a way to do this within the Message Viewer or Terminal? Thank you in advance. #Message Search #Ensemble 0 4 0 288
Question Daniel Lee · Jul 28, 2022 How to obtain object value in DTL Trace Event I have an existing DTL and I need to insert a trace statement so that it writes the value of the target object. However, I haven't been successful in completing this. I have opened the DTL viewer in Studio, and have inserted a trace statement. #DTL #Ensemble 0 1 0 424
Question Daniel Lee · Aug 20, 2020 Class changes not executing We are using Ensemble and I added some debug logging that writes to a global and recompiled the class in Studio. However, when we send messages, the global is not populated. I have recompiled, removing the checkmark to keep the generated code so that there is only one .INT file and I verified that the code is present in the .INT file. My question is, do we need to stop and restart the Ensemble production in order for these changes to take effect? Do I need to stop and restart the business operation that calls this piece of code? Is there something else I may have missed? #Globals #ObjectScript #Ensemble 0 6 0 308
Question Daniel Lee · May 26, 2020 ClassMethod with global parameter undefined when attempting to Order I have a class method that accepts a global parameter but when I attempt to order this global, the global name is listed as undefined. I can execute $DATA(pGlobalName) successfully. #ObjectScript #Caché 1 3 0 309
Question Daniel Lee · Mar 24, 2020 Cannot type password in Terminal I just tried to log into our QA server and connect to Terminal (v 2013.1). I can type in my username but when I attempt to type my password, no characters are typed. When I press ENTER the password is invalid. I can connect to the management portal and the studio development environment without any problems. Also, I do not have this problem when connecting to the terminal in our production environment (2010). Does anyone know what can cause this type of problem? Thanks. #Security #Terminal #Caché 0 2 0 254
Question Daniel Lee · Nov 8, 2019 Class compile error 5475 I have a task that has been working successfully for some time now but when I attempt to recompiled I get this error: #SQL #Studio #Caché 0 7 0 931
Question Daniel Lee · Jul 16, 2019 Debugging ClassMethod with output parameters I am fairly new to Cache and ObjectScript. I have a new task I have created with a corresponding method that I am trying to debug in Studio (2013). My ClassMethod looks like this ClassMethod DoMyWork(Output pWorkCount as %Integer, pInput1 As %Integer = 30) { /* Does some work here and increments pWorkCount */ } When I try to debug this using studio, I browse to my method but I am not certain what to put in here for the input parameter 'pWorkCount'. #Debugging #Studio #Caché 0 3 0 742
Question Daniel Lee · Feb 22, 2019 Cannot set filename for Stream.FileCharacter object In my routine when I call set filestream.FileName = filename, I get an error "cn_iptcp://localhost:56773/USER/%Stream.FileBinary.1.INT" does not exist on the Server I successfully instantiate the %Stream.FileCharacter object. 'filestream' value is '1@%Stream.FileCharacter'. But when I debug the code, the step where I try to set the file name fails. The port number for local host looks good for my current instance. I have tried a few variations, such as using the method FileNameSet(). But this did not work either. #ObjectScript #Caché 0 10 0 608
Question Daniel Lee · Feb 21, 2019 Export .cls and .mac files from database I am taking over a production system that had some HSLIB and other database routine and class files modified. However, I do not know what was modified . #ObjectScript #System Administration #Caché 0 9 0 1.1K
Question Daniel Lee · Feb 18, 2019 Pattern Matching with special characters I am new to Intersystems Cache, so please bear with me. We are using HealthShare 2013.1. I have a routine to compare databases from separate instances where I want to ignore values that begin with %sqlcq. I thought this would be easy with pattern matching operator '?' but it is proving difficult and it seems to be because of the percent character. For example: #Coding Guidelines #ObjectScript #Caché 0 4 0 471