go to post Ben Spead · Sep 29, 2016 Excellent idea to post this John - this isn't necessarily common knowledge but it is really useful to know!
go to post Ben Spead · Sep 19, 2016 Anyone who doesn't need to support 2016.1 code should just use the new syntax. This is intended as a 'bridge' solution to allow a code-base to run on both versions, and then after the code no longer needs to run on 2016.1 the macros should be removed when it is convenient.
go to post Ben Spead · Sep 14, 2016 Caché Object Script is a super-set of Mumps. If you really want to know the differences you should look at the Mumps standard and know that anything you find in Caché which is not in the Mumps standard can be considered unique to Caché ObjectScript.Hope that helps.
go to post Ben Spead · Sep 6, 2016 There are a couple of articles on OAuth 2.0 which might be of interest:https://community.intersystems.com/post/cach%C3%A9-open-authorization-fr...https://community.intersystems.com/post/cach%C3%A9-open-authorization-fr...Hope that helps!
go to post Ben Spead · Sep 1, 2016 I think I better understand now - you want 'other' tabs to dynamically update (without the user hitting Refresh) if the user changed namespaces in a separate tab, is that correct?I think there are probably Javascript events that fire when a tab comes back into focus (you'd have to check) and you could use those to trigger a call to the server to see if the namespace has changed - if it has then redraw the tab to show the context of the proper namespace. It would have more moving parts but it should be possible if you really want to do it.Good luck!
go to post Ben Spead · Sep 1, 2016 Playing around with it a little bit, I came to the following conclusions:- *some* pages rely on the $Namespace url parameter in order to initialize what namespace it is pulling data from- this doesn't appear to be stored in the session (and therefore it isn't shared between tab); I think it is only effective in the url- there are some pages which don't honor the $Namespace url parameter (e.g. they still show %SYS even if $Namespace is defined to a different value); this is probably because those pages don't act on any namespace-specific data (or they act on data which lives ONLY in %SYS)It sounds like if you want to keep your tabs in sync, you should put something in the session, and switch namespaces in your page logic. Probably in OnPreHttp (although you'd need to test to make sure that the namespace sticks for the OnPage method as well)
go to post Ben Spead · Sep 1, 2016 Laura,Unless you are using web sockets, whenever someone makes a request from a web client it will issue a call back to the Caché server and it will be handled by a csp process which will spin up and go to a namespace and get the appropriate session variables, etc. If I understand properly what you are looking to do, you could store the namespace as a session variable and then on each of your pages you can test the session variable on the request and reset to a different namespace if it isn't the default. I believe that this is how the SMP does it (or something very similar).HTH,Ben
go to post Ben Spead · Sep 1, 2016 Mike - it would be helpful if you hyperlink to "Newbie's Corner Index"
go to post Ben Spead · Aug 30, 2016 Matthew - I can replicate what you see on b721 with my unit tests class that I wrote. I'll do some digging and get back to you with what I find.
go to post Ben Spead · Aug 29, 2016 That is a really old build from before the JSON changes were put in place. Could you please do any testing with the macros on the released version of 2016.1 or the latest 2016.2 FT (https://wrc.intersystems.com/wrc/BetaPortal20162.csp). Let me know if you find any issues there.
go to post Ben Spead · Aug 29, 2016 Matthew,See https://community.intersystems.com/post/writing-forward-compatible-json-... to allow you to write code that will work on both 2016.1 and 2016.2. This is the approach we're using internally to write code that is valid in both versions which has already minimizes our pain. I hope it is helpful to you.
go to post Ben Spead · Aug 25, 2016 I have "On Updates" and "On Comments" checkboxes on that page for all of my subscriptions. Perhaps because I am signed up for individual emails (which may have more subscription options) and you are signed up for a Digest? (or perhaps maybe not - I tried changing to Digest and still see the "On Updates" checkboxes.I think a Community Admin needs to weigh in because I don't know why your settings are different.
go to post Ben Spead · Aug 25, 2016 John - I edited the article which caused the notification for anyone subscribed to content changes. If you are not subscribed to changes in content then that should be considered a bug that notification was sent for an edit to an article.Hope that helps.
go to post Ben Spead · Aug 25, 2016 For more details on the JSON changes, see https://community.intersystems.com/post/json-changes-cach%C3%A9-20162 and https://community.intersystems.com/post/writing-forward-compatible-json-...
go to post Ben Spead · Aug 25, 2016 Make sure to read https://community.intersystems.com/post/json-changes-cach%C3%A9-20162 and https://community.intersystems.com/post/writing-forward-compatible-json-... for information pertaining to making this code forward compatible.
go to post Ben Spead · Jun 30, 2016 Thank you for the update Evgeny!I have feedback on the emails - it seems that the new comments are shown as threaded instead of reverse posting order in the email, which means you have to do a lot more scrolling and check timestamps in order to tell where the new content is. It would be great if it could go back to the reverse threading in the old emails which made it much faster to see what the new content was. Also, there seems to be some CSS impacting the layout of the emails for mobile devices. The content doesn't flow nicely but goes off of the right side of the screen, requiring horizontal and vertical scrolling or zooming out to the point it's hard to read on the phone. If someone could look into fixing that it would be most appreciated.
go to post Ben Spead · Jun 24, 2016 I apologize - I thought it was possible to add Tags to Answers, but I guess not. The Code Sample tag would need to be added by Marc to the original question.