web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

How to create GlobalCache(Session) in X++ AX 2009

Abdel Fatah Ahmed Profile Picture Abdel Fatah Ahmed

//Create Cache

void method()

{

 SysGlobalcache globalCache;

    str itemid;

    ;

           globalCache=infolog.globalCache();

        if(globalCache.isSet('System','X'))

         itemid=globalCache.get('System','X');

}

 

// remove cache

void method()

{

 SysGlobalcache globalCache;

    str itemid;

    ;

           globalCache=infolog.globalCache();

        if(globalCache.isSet('System','X'))

        globalCache.clear('System');

}

 

 

}

Comments

*This post is locked for comments