Scott Beeson · Jan 20, 2016 go to post

I hadn't seen Groups under find.  Good catch.  We definitely need some reconcilliation between groups and communities.

Scott Beeson · Jan 21, 2016 go to post

Another point is that with the current system someone has to maintain the list and heierarchy of tags.  Why not crowd-source it?

Scott Beeson · Jan 21, 2016 go to post
HSREGISTRY>w ^%SYS("SystemMode")
TEST

That's exactly what I want!  Thanks!

Scott Beeson · Jan 21, 2016 go to post

They are (mostly) HL7.  I think what I've decided to do based on your input and some others is write a custom utility function that extends Ens.Rule.FunctionSet and does all the lookups as necessary.

Thanks for the help!

Scott Beeson · Jan 21, 2016 go to post

When I try this from a terminal it tells me the method does not exist.  Am I missing something?

NAMESPACE>w $System.Version.SystemMode()
W $SYSTEM.Version.SystemMode()
^
<METHOD DOES NOT EXIST> *SystemMode,%SYSTEM.Version
Scott Beeson · Jan 21, 2016 go to post

I must be using the Lookup command wrong.

PHR>Lookup("ParticipantCodeMap","1083601330")
LOOKUP("ParticipantCodeMap","1083601330")
^
<SYNTAX>
Scott Beeson · Jan 21, 2016 go to post

That's strange, I don't think I've had to log back in once since the initial time. Could this be a browser thing? I'm using Chrome 47.0.2526.111

Scott Beeson · Jan 21, 2016 go to post

So set the boolean variable to 0 for false and basically anything else for true?  I'll continue using 1 and 0, thanks!

Scott Beeson · Jan 21, 2016 go to post

I haven't gotten to the point where I'm trying these from Business Rules yet, I was just worried about it saying that I "Must mark them as [final]" but not being able to chain them without removing that.

I will continue working on it and if I do get an error when I get to that point I will post it.  If I don't, I guess I'll ignore the statement above.

Scott Beeson · Jan 21, 2016 go to post

so I set iParticipant and iFeed manually in the console then literally pasted the contents of the method to the console and it works.

PHR>set iParticipant = "WMMC"
PHR>set iFeed = "IMM"
PHR>set k = iParticipant _ "_" _ iFeed
PHR>w "Looking up " _ k,!
Looking up WMMC_IMM
PHR>set x = ##class(Ens.Util.FunctionSet).Lookup("BlockFeed",k,"not found")
PHR>w "x = " _ x,!
x = 1


Can anyone explain why? 

Scott Beeson · Jan 22, 2016 go to post

It extends Ens.Rule.FunctionSet and I'm doing a lookup with the same syntax in another method in the same class.  I'll keep poking it with a stick, there must be something obvious I'm missing.

Scott Beeson · Jan 22, 2016 go to post

Okay I've simplified it greatly.  Here are two methods.  The first one is what's left of the original.  It DOES NOT WORK.  The second one DOES work.

ClassMethod canSendToState(s)
{
    set = ..Lookup("BlockFeed",s)
    q x
}
ClassMethod myLookup(s)
{
    q ..Lookup("BlockFeed",s)
}

 

Why?

Scott Beeson · Jan 22, 2016 go to post

Bah, I made them IDENTICAL and one still works the other doesn't.  Checking the INT source now...

Scott Beeson · Jan 22, 2016 go to post

Okay, here is the INT code for both:

Doesn't work:
zcanSendToState(s) public {
..Lookup("BlockFeed",s) }

Does work:
zmyLookup(s) public {
..Lookup("BlockFeed",s) }

I closed studio, reopened it, recompiled everything:

Scott Beeson · Jan 22, 2016 go to post

I deleted the class and started from scratch.  Seems to be working.  Can I delete this disaster post?

Scott Beeson · Jan 22, 2016 go to post

I mean the ability to delete posts and comments you made, not posts by anyone.  This is very typical from the early versions of phpBB and other forum software to modern social apps like Facebook and Twitter.

As for editing comments, we can already edit at any time, right?  Please don't restrict it to 15 minutes.

Scott Beeson · Jan 25, 2016 go to post

What is the reason for not allowing it?

Reasons for allowing editing at any time: 

  1. I discover after the timeout period that I posted personally identifiable information.
  2. I post a confusing question and through a couple comments over a span of days realize the error.  I change the original post so that future readers don't experience the confusion.
  3. It's my content and I should be able to change it without a reason.

Reasons for allowing deletion of own posts:

  • I post a thread asking a question and immediately realize I just had a typo.  There is absolutely no need for the post to exist.
  • I post in the wrong group/community.
  • It's my content and I should be able to delete it without reason*

Reasons for allowing deletion of own comments:

  1. Someone asks a question and I post a comment that I later realize is stupid and embarrasing.  I could edit it, but why waste the space?
  2. I post a comment on the wrong topic (it happens)
  3. It's my content and I should be able to edit it without reason.

*Please note in my original post I suggested that  we could only delete posts we made that don't have any responses.  If someone else has taken the time to address my topic I have no right to delete their thoughts.

Scott Beeson · Jan 25, 2016 go to post

I don't know if this message is new, but under the disabled name fields there is a line that says "Your first and last names will be displayed to other users in posts, code packages, or comments you make. These values are set via the http://login.intersystems.com portal."

For starters, the http version of that site does not work.  However, if you go to https://login.intersystems.com you will get the portal but there is no spot I could find to change your name.  In TRC and CCR apps I can change my "Display Name" but it does not seem to affect other apps including this site.

Scott Beeson · Jan 26, 2016 go to post

I think I see, you'd have to do this first though, right?

#Define YES "1"
#Define NO "0"
Scott Beeson · Jan 26, 2016 go to post

Any thoughts on utilizing/promoting Stack Overflow instead of duplicating efforts and fragmenting support?

Scott Beeson · Jan 27, 2016 go to post

The ObjectScript tag wiki doesn't mention anything about Cache or Intersystems.  I actually thought it was an intersystems technology, are you saying it's not?

If you don't have enough rep to propose a change to the tag I would gladly do so if you want to propose any changes.  You definitely have enough rep to propose wiki edits.