go to post Ben Spead · Jun 13, 2024 It's been a while since I had to look these up. You probably have to select the option for 'show generated code' order to find it. Unless you overwrote the default package, they should show up as csp.****.cls classes (in the "csp" package)
go to post Ben Spead · Jun 13, 2024 the .csp file compiles into a subclass of type %CSP.Page. When it is called, on the back end the various methods of the subclass of %CSP.Page are involved in order to stream the content of the .csp page. Please see the documentation link above for more details.
go to post Ben Spead · Jun 13, 2024 Actually, you should read this doc: https://docs.intersystems.com/iris20241/csp/docbook/Doc.View.cls?KEY=GCS... there are other callbacks you will need to call besides OnBody(). Make sure to call them in succession to get full page functionality.
go to post Ben Spead · Jun 13, 2024 look at the generated class from the csp. you should be able to call the OnBody() method to create the text stream containing the html
go to post Ben Spead · Jun 13, 2024 a CSP page will actually compile into a .cls, so you can call specific methods of your CSP page by calling the method using ##class(mycsppackage.mycsppage).methodname() (the csp package name is configurable but defaults to 'csp')
go to post Ben Spead · May 30, 2024 thank you @Eduard Lebedyuk ... this is an interesting approach. Unfortunately, a couple of the globals I need to override for Bar are top level %ALL mappings, but others are subscripts so I may be able to cut down my custom coding using this approach.
go to post Ben Spead · Apr 26, 2024 it sounds like this is an Epic provided example, so presumably ConvertToMTime is defined by Epic but was either misspelled or called from a context where it couldn't be found
go to post Ben Spead · Apr 25, 2024 I want to re-iterate what Evgeny said ... you should never store your persistent objectscript class definition in source control without the storage definition block. Doing so will cause the storage block to be regenerated from scratch each time source is loaded, and if there is existing data you may have a mismatch of where properties exist on disk and where where the source thinks they should live
go to post Ben Spead · Apr 16, 2024 From your initial screenshot: Perhaps you need to be on the 'filerodev2023' Instance, rather than the 'IRIS' instance and you show above on your HOME4 node?
go to post Ben Spead · Apr 16, 2024 in the screenshot above you are trying to run the class in the FILERO Namespace. Did you try running that command in FILEROIRIS?
go to post Ben Spead · Apr 15, 2024 @Alexandra Mirzac - welcome to the Community :) I would suggest the following: 1) Make sure you have saved and compiled your class, and that it returned with no errors. 2) Make sure when you are testing in Terminal you are connected to the correct Instance and the correct Namespace 3) Double-check spelling and case in your Terminal command compared to your compiled classname Please try those things out and let us know if that moves you forward.
go to post Ben Spead · Apr 9, 2024 Nice! Thank you for taking the time to figure this out and write it up! I am sure it will be usable by others in the D.C. :)
go to post Ben Spead · Apr 5, 2024 I don't have access to an active HS environment at the moment, but from testing the last part of your query, it looks correct to me. You are saying with the query that has the literal timestamp you get results, but with the 2nd query which targets the prior 2 hours you are getting no results? are you sure that there are records in that time window to fetch? What happens if you change it to a 24 hour window (-24)?