June 27, 2022

Pgm.name returns the name of the current MEDITECH NPR Procedure

@Pgm.name is an NPR Programming Macro that can come in handy, especially when using the Debug programs in an NPR Report Macro. 

@Pgm.name("") will return the name of the current NPR Report Macro.  For instance, assuming your NPR Report is called 'MIS.USER.zcus.report' and your NPR Report Macro is called 'detail', then @Pgm.name("") will return "MIS.USER.zcus.report.M.detail".

This can come in handy when using Meditech's standard Debug programs.

MAGIC customers can use the following line of code within an NPR Report Writer Macro: %Z.ddc(@Pgm.name(""))

C/S customers can use the following line of code within an NPR Report Writer Macro: %Z.debug(@Pgm.name(""))

The report DPM, name, and macro will all be used as the first argument for those programs and will be seen when the Debug program displays.

Topics: MEDITECH, Magic System, NPR Report, CS System

You Might Also Enjoy

You can use the following steps to write data to your Windows clipboard from an NPR ...

@Translation.message is an NPR Programming Macro that can be used in NPR Report Writer ...

The NPR Procedure Z.ddc comes in very handy for debugging both NPR reports and ...

Users can attach "Icons" from the NPR.ICON dictionary to "Desktop" style menus for the ...

Create an NPR Report to produce a downloaded file and add the following Footnote: AL ...