John Murray · Mar 30, 2017 go to post

Something is going on with that Google Group. When I visited it this morning I was given this message:

Continuing to the group, it then says "No topics are available in this group"

John Murray · Mar 29, 2017 go to post

When Ensemble runs on Windows its background processes typically run with whatever Windows credentials the Ensemble service (see Windows Service Control Manager) is set to "Log on as". If that is LocalSystem then your background processes won't be able to access UNC paths.

For more information, see my post here

If my answer here resolves your question please click the checkmark alongside it above.

John Murray · Mar 23, 2017 go to post

I suggest you export the package to XML, then edit the XML, then import it.

John Murray · Mar 20, 2017 go to post

There's a flaw in your original idea of eliminating the comma from two $H-format timestamps and then comparing them with the "greater than" operation. For most of a 24 hour period the resulting $TR(dollarH,",") is 10 digits long, but from midnight until 00:00:09 it is only 6 digits long, from 00:00:10 to 00:01:39 it is 7, from 00:01:40 to 00:16:39 it is 8 and from 00:16:40 to 02:46:39 it is 9 long.

A working alternative would be to compute $P(dollarH,",")*86400+$P(dollarH,",",2) for each and compare the results, which are the number of seconds since midnight at the start of 31st December 1840.

if you need to compare a $H-format timestamp against the current time don't use $P($H,",")*86400+$P($H,",",2) as one of the expressions because there's a small possibility that your two fetches of $H will fall either side of midnight. Instead, fetch $H once, store it in a variable, then process that variable.

John Murray · Mar 17, 2017 go to post

Laura, this probably deserves to be posted as a new question so more people will see it. But your situation isn't clear to me. If a user can't log in (why?), how are they going to be able to run something that will log out all their sessions?

I also recommend the use of the "comment" link that appears under questions, answers, or other comments. I think this helps put a response into the relevant context.

John Murray · Mar 17, 2017 go to post

I didn't see any mention of a "USA and Europe" restriction on the website information.

Any reason for not including, say, Canada?

John Murray · Mar 17, 2017 go to post

Be aware that Herman's code relies on the process having the non-default SetZEOF setting. More info here.

John Murray · Mar 17, 2017 go to post

Glad to have helped you Laura. Please click the checkmark against the answer I gave so that your question no longer lists as "unanswered", and so that I get a few points on Global Masters.

John Murray · Mar 17, 2017 go to post

Evgeny, I'm not clear what got fixed. The change Alexander requested isn't yet present:

After setting myself in the Author field the Articles list still contains ones I didn't write.

John Murray · Mar 16, 2017 go to post

Are you aware of the ChangePassword method of %SYSTEM.Security? You can call it from the $system SVN, i.e. something like:

set blnOK=$system.Security.ChangePassword($username,newPW,oldPW,.status)

If blnOK is false there should be more information in status.

John Murray · Mar 16, 2017 go to post

Perhaps worth linking to this post which explains the meaning of %DEFAULTDB in the above screenshot. The %DEFAULTDB setting arrived in 2016.1 and facilitates subscript level global mappings using %ALL.

John Murray · Mar 16, 2017 go to post

I assume Evgeny's initial fix was to change the hyperlink in the article so it's an http one rather than an https one.

John Murray · Mar 15, 2017 go to post

Like most DC posts nowadays, this one got auto-crossposted to the intersystems-public-cache Google Group. When I checked this morning there were 5 responses from people trying to help the original poster. But since those answers don't automatically feed across to DC I'm drawing attention to them here. Because unless the OP knows to look there they may never see them.

https://groups.google.com/forum/#!topic/intersystems-public-cache/fngd5…

John Murray · Mar 13, 2017 go to post

On the newer Cache versions you no longer need to pick a database when defining %ALL. Provided you tab off the "Name of the namespace" field after entering "%ALL", the form simplifies:

The above screenshot is from 2016.2.

John Murray · Mar 10, 2017 go to post

In COS the function $Char(10) returns the ASCII newline character. Or if you need a CRLF sequence you can use $Char(13,10)

John Murray · Mar 10, 2017 go to post

Did you ever solve this? If so, maybe add an Answer to the post. You can even accept your own answer (click the checkmark) and thus prevent the pot from listing as "unanswered".

John Murray · Mar 10, 2017 go to post

As Eduard indicated in his comment, there are many possible factors. I'm posting this as an answer so the question no longer appears in DC's "no answer" view. And if the OP wants to accept this answer, click the checkmark alongside it. Then it will no longer appear in DC's "unanswered" view.

John Murray · Mar 6, 2017 go to post

The "My Account" section already looks like it separates Subscriptions from Favorites, but currently the "MY FAVORITES" option goes to the "Saved Content" tab of a page called "My Content".

AFAIK the "Saved Content" tab is no longer operational in its original mode. But perhaps it could be useful for this case.

John Murray · Mar 3, 2017 go to post

Here are some initial suggestions / comments (no particular priority):

  1. Standardize on capitalization in naming. For example classnames EX.example and Sample.Classes, and property names name and Location.
  2. Use singular for your classname, e.g. Class rather than Classes
  3. Use meaningful classnames, e.g. Sample.Employee rather than Sample.Classes
  4. Use meaningful method names. e.g. insert or Insert rather than hello
  5. Avoid namespace switching unless really necessary. Presumably in your case the Sample.Classes class is in the USER namespace and the EX.example is somewhere else (maybe you wrote it in your SAMPLES namespace).
  6. For a REST interface, consider returning results in a structured form, e.g. JSON.
  7. Make good use of indenting. Perhaps you already have done this and the post to DC has mangled it.
  8. Avoid using Z-commands, $Z-functions and $Z if non-Z equivalents are available. For example, SET $NAMESPACE="USER" instead of ZN "USER". Note that you can also preserve the current $NAMESPACE value using NEW $NAMESPACE which will automatically reinstate the value when the stack level is exited.

I hope this is a useful start.