查找

Pergunta
· Fev. 26

How to set XMLIGNORENULL for non %String property?

By extending %XML.Adaptor, we can use

Parameter XMLIGNORENULL   

to handle empty tags in output xml file from %Persistent. But this parameter only applies to %String property. What if a class has other types of properties, like %Stream (for holding large chunk of data). What is the recommended handle if we cannot use XMLIGNORENULL here?

Context: In change control, exported .xml file is important to make diff between versions. To correctly handle edits on a previously null property (for example, the first edit to store value in "Data" field), we need XMLIGNORENULL to be "inputonly" so that our stream data can be check out and revert in change control management.

1 Comment
Discussão (1)2
Entre ou crie uma conta para continuar
Artigo
· Fev. 26 1min de leitura

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
Discussão (15)2
Entre ou crie uma conta para continuar
Pergunta
· Fev. 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
Discussão (8)2
Entre ou crie uma conta para continuar
Pergunta
· Fev. 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
Discussão (1)1
Entre ou crie uma conta para continuar
Pergunta
· Fev. 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
Discussão (3)2
Entre ou crie uma conta para continuar