Nouvelle publication

Rechercher

Article
· Fév 26 1m de lecture

How Do You Display %Status Error in Terminal Or Let's Have a New Helpful Terminal Alias!

Hi colleagues!

Yet another time I figured that there is no super-simple way to display error from %Status variable, but I need it relatively often in a terminal.

Yes, I know about $$$ Macro, but they are not superhelpful in a terminal.

My usual behavior is to try to remember by heart or copy from somewhere the formula:

USER>w $System.Status.DisplayError(st)

So introduced the alias:

:alias err d $System.Status.DisplayError($1) ;

so, if you get something like:

USER>set st=##class(bla.bla).methodbla()

you can get the error as:

USER>:err st
d $System.Status.DisplayError(st) ;

ERROR #879: Target role NewRole does not exist.

Hope you like it!

All aliases

15 Comments
Discussion (15)2
Connectez-vous ou inscrivez-vous pour continuer
Question
· Fév 26

Trakcare parameter to Jreport

Hi ,

          I am creating a report on Trakcare with the help of Jreport. But the date parameter from trakcare is not reading on Jreport and the report is blank.

If I hardcode the date on Jreport,it is displaying on Trakcare but not taking report from Trakcare.

Parameter used on report manager on Trakcare is $g(%request.Data("DateFrom",1)).

Can anyone please tell me any change of settings on Trakcare or Jreport will help to work ? 

 

Thanks for the help

 

Jude

8 Comments
Discussion (8)2
Connectez-vous ou inscrivez-vous pour continuer
Question
· Fév 26

Open IRIS studio and management portal in Linux

Hi,

I can start IRIS terminal using iris Terminal <instancename>, but can I open up Studio & SMP in Linux?

Thanks

1 Comment
Discussion (1)1
Connectez-vous ou inscrivez-vous pour continuer
Question
· Fév 25

How to Get the Adapter State and Status of a Business Operation

How would I go about getting the adapter state of this business operation? Ideally, I would like to provide the config item name to a method—in this case, 'T_SPM_SIU'—and have the method return the adapter's state, such as "Disconnected" or "Connected," along with its status.

3 Comments
Discussion (3)2
Connectez-vous ou inscrivez-vous pour continuer
Question
· Fév 25

Converting Documents to PDF in IRIS

What is the recommended library for converting documents to pdf. Any suggestions welcome has anyone out there had a use case where they had to convert documents to pdf .What worked for them .I have asked WRC for the best practice and they have recommended that may be  a sale engineer might have an answer to this .

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