Rechercher

Question
· Août 7, 2019

Array, Property Setters, and Using ##class(Security.Users).Modify... to Disable a User Account from the Terminal

Hello,

I am wondering the best way to disable a user account using this class in Cache (Security.Users).

https://cedocs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls

 

Example User Account = jhipp

Currently is Enabled

 

I know that we can use the auto-generated EnabledGetStored method, for example:

%SYS> w ##class(Security.Users).EnabledGetStored("jhipp")
1

 

There is not an auto-generated method to set this property, right?

 

I can modify this property with the Modify function, but I have to build a temp array with one value etc...

%SYS> s temp("Enabled")=0

%SYS> zw temp

temp("Enabled")=0

%SYS> w ##class(Security.Users).Modify("jhipp",  .temp)

 

Is there an easier way to do this, such as an auto-generated setter function or a shortcut for the array similar to this?

 

%SYS> w ##class(Security.Users).Modify("jhipp", "Enabled" = 0)

 

 

Just wanted to verify that there was not an easier way.

 

Thanks,

James

4 Comments
Discussion (4)1
Connectez-vous ou inscrivez-vous pour continuer
Question
· Août 1, 2019

Constraint Editor Business Rule Source

Hello Community,

For the Business Rules in a process i want to use a constraint where source could be FromA or FromB.

But looks like the constraint does not allow multiple source values.

Is there a way to provide multiple source in Constraint? Or is there a way in Rules to identify the Source ?

Thanks

Jimmy Christian

5 Comments
Discussion (5)0
Connectez-vous ou inscrivez-vous pour continuer
Question
· Juil 29, 2019

Printing out System Security Property Values in the Cache Terminal

Hello,

I am struggling to print out the actual property values of the Security.System class.

https://cedocs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls

 

I was hoping to be able to print the Authentication Enabled properties of a system from the command line using the Get or GetProperties class method. Currently, however, I am only able to get a return 1 or Invalid Oref error.

 

I would expect one of these to work, but I think I am missing something. Any tips?

%SYS>w ##class(Security.System).Get("AutheEnabled")

1

%SYS>w ##class(Security.System).GetProperties("AutheEnabled")

0 {?2<INVALID OREF>zGetProperties+3^Security.System.1<%SYS3)$^zGetProperties+3^Security.System.1 +X^@ +1

 

I can do an Export from this same class and see the value in the XML file, but I would like to return that specific value from one line of code if possible.

 

Thanks,

- James

5 Comments
Discussion (5)1
Connectez-vous ou inscrivez-vous pour continuer
Article
· Juil 24, 2019 1m de lecture

A new version of the yape (Yet Another pButtons Extractor) docker container has been uploaded to docker hub.

Available at:

https://hub.docker.com/r/yape/yape/

$ docker container run --rm -v "$(pwd)":/data yape/yape --version
yape 2.2.6

See the readme at:

https://github.com/murrayo/yape


Changes include:

  • Reinstate config file, make some more changes to smarter x and y axis.
  • Update line style choices in config file.
  • Solve for yyyy dates and yy dates or bail out. Make date string consistent for windows title (drop decimal places), add short day to title. 
  • Increase decimal precision for y axis less than 10, eg for windows sec/read is seconds not ms like linux
  • Some minor fixes after update python libraries.

Today, GitHub and the container are in synch.

Discussion (0)1
Connectez-vous ou inscrivez-vous pour continuer
Question
· Juil 23, 2019

how to use M language get local Computer MAC Address

hi,ererybody!

help,

how to use M language get local Computer MAC Address?

 

I know get local ip use : w $ZU(67,15,$j),but i don't know this.

14 Comments
Discussion (14)1
Connectez-vous ou inscrivez-vous pour continuer