Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

xSession::xppCallStack()

$
0
0

Hi,

I use the xppCallStack in a method :

publicstaticboolean isInTheCallStack(str _method)

{

// return true when the _method is found in the call stack

container callStack = xSession::xppCallStack();

counter cnt = 1;

anytype anyValue;

while (cnt <= conLen(callStack))

{

anyValue = conPeek(callStack, cnt);

if (typeOf(anyValue) == Types::String)

{

if (strScan(anyValue, _method, 1, strLen(anyValue)) > 0)

returntrue;

}

cnt++;

}

returnfalse;

}

It is well when it run on my computer session but when it run on a server session it always return  a container with ["(S)\Jobs\", 0]

Any idea ?

Thanks


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>