Forum Discussion

Denchy's avatar
Denchy
Ideator I
9 years ago

Method name inside method-config.xml

Is there a way to get the executing method name from method-config.xml? When I inspect the variables in method-config using a debugger I cannot see the real method name anywhere. Some variables I thought it might be are
  • $(clsname) - But this is something like CLS_F30C56EA157005D90F6DC0EAA0167D9B (not a GUID from the database)
  • $(fncname) - Usually it is 'FNCMethod' and I don't know what it means.
  I would like to get the method name (Aras database method name) from the method-config executing context, is that possible? Is there any detailed documentation of the content of method-config?

2 Replies

  • eli_donahue's avatar
    eli_donahue
    Community Manager
    Hi Denchy, Were you able to figure out how to find the method name? If you're still working on this, I'd recommend looking into the inItem object. Maybe there is a way to access the method name from there? The only documentation I know of that references the method templates in method-config.xml is the section of the Programmer's Guide that demonstrates how to reference custom dlls. Aras Support may be able to offer more information on method-config.xml. Eli
    Eli Donahue Aras Labs Software Engineer
  • I've been looking into this as well. You can sometimes use GetType() on the EventData, or $(EventDataClass) but it usually only works for some of the events (OnAfterAdd for instance). Doesn't seem like there's a lot of information about the server events themselves.