go to post Ben Spead · Feb 6, 2017 Sergey - I also appreciate the point about the "component" approach (as we're using 1.x + Angular Material). If you have any good references or tutorials on that approach (and/or contrasting with the 'typical' approach to do Angular 1.x), please post them :)
go to post Ben Spead · Jan 23, 2017 Gaolai,You need leading whitespace on any line of a routine which is not a line tag. Try putting a space or Tab on your 2nd and 3rd lines.Also, "Hello there!" isn't a valid COS command. Try using: Write "Hello There!"
go to post Ben Spead · Jan 10, 2017 If we change the unanswered query to only include questions with 'true' answers selected, do we expect everyone to be good enough citizens to go back and select true answers once they are provided? Would admins be able to mark true answers if the author abandons the thread?
go to post Ben Spead · Dec 22, 2016 Removed as requested (although I personally think that the screenshot makes people more likely to take a look at your code rather than less likely).
go to post Ben Spead · Dec 12, 2016 For debugging or programmatic purposes? If debugging / interactive you can just zwrite the variable to see the properties.
go to post Ben Spead · Nov 10, 2016 Michael - thanks for the article. It would be really helpful if you could add a paragraph at the top explaining what the Ensemble scheduler is and what it's main use-cases are so that people can tell quickly whether or not this is something which they would want to learn more about. Perhaps as an Intro?
go to post Ben Spead · Nov 10, 2016 %ZNODENAME appears to be a statically linked callout function (see http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...). This is specific to your code / application / environment and isn't something generic to Caché.If you are interested in retrieving your server name, try using:$piece($system,":")
go to post Ben Spead · Nov 10, 2016 I think that may be a custom routine. I don't recognize it as a Caché-supplied resource.
go to post Ben Spead · Nov 10, 2016 My guess is that you are passing data somewhere as a string (because that is around the string limit). You need to use streams instead to store the uploaded file.
go to post Ben Spead · Nov 1, 2016 Assuming you are a supported customer, you can download this from the Distributions page in the WRC application.
go to post Ben Spead · Oct 31, 2016 This is not a Caché utility - it must be supplied by your application partner. Also, the AP must be storing their own users at the application level because if they were using Caché users there would be no way to create a utility that shows Caché users' passwords (see Patrick's answer below).I suggest you reach out to your application partner with this question (or if it is an inhouse development, speak with the development team)
go to post Ben Spead · Oct 27, 2016 Use Find In Files:http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...
go to post Ben Spead · Oct 27, 2016 Sorry - I missed that.Getting the "When" is easy - there is a timestamp in the header of the generated .INT code showing when the source was last compiled. E.g: ;Sample.Address.1 ;(C)InterSystems, generated for class Sample.Address. Do NOT edit. 10/27/2016 09:12:38AM ;;7A2F686C;Sample.Address ;However the "Who" might prove to be more challenging. You might be able to accomplish this with a Method Generator that records the $Username and timestamp for access via a method or parameter? See http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...
go to post Ben Spead · Oct 27, 2016 You can add logic in %OnAfterSave() for your object which will grab the object ID, $Username and the timestamp and tuck them away in an auditing table somewhere. Alternatively you could add LastChangedBy and LastChangedTimestamp properties to your object and then populate them inside of %OnAddToSaveSet() (this is probably the most straightforward way to do it).Hope that helps!
go to post Ben Spead · Oct 27, 2016 http://www.intersystems.com/assets/Embedded-Real-time-Business-Intelligence-Discover-the-Treasures.pdf(credit to Anthony B)
go to post Ben Spead · Oct 26, 2016 Paul,Have you looked at the details in the Caché SQL manual about optimizing performance:http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...Play particular attention to the section about using TuneTable to properly set the meta-data around table extent size, selectivity, etc. Lot of people miss this and it's very important because the query plans rely on this metadata to optimize performance.