Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Needed help

Former Member
0 Likes
448

hi,

Trying to find a SMOD/CMOD enhancement?

thnks.

2 REPLIES 2
Read only

Former Member
0 Likes
396

hi,

go through the following link.

Read only

Former Member
0 Likes
396

HI,

you can use the function MODX_FUNCTION_ACTIVE_CHECK. It is called in most cases before the SMOD/CMOD function module called.

How to use:

In FU MODX_FUNCTION_ACTIVE_CHECK, set a breakpoint at the statements "select ... from tfdir...", in release 470 this is on line 36 and on line 51.

Execute the transaction where you search the SMOD / CMOD enhancement.

When the debugger stops on line 36, the name of the current enhancement is in the field l_funcname.

Normally, the debugger will stop here several times in one transaction. So you need to copy / write down the enhancement names.

When the debugger stops on line 51, the (possible) enhancement names are between l_funcname and h_fname.

Remarks:

There are also the functions MODX_MENUENTRY_ACTIVE_CHECK and MODX_SUBSCREEN_ACTIVE_CHECK.

Some applications read TFDIR directly without using MODX_FUNCTION_ACTIVE_CHECK.

When you have te exit function names, you can search in SMOD for the enhancements with the F4-Help.

Cheers,

Chandra Sekhar.