Extending : Global function extension : Advanced topics : Getting root context in Global Function
  
Getting root context in Global Function
Extension developer can get root context “dse_contextRootData” in server side global function.
For example, in the global function implementation class:
public static Boolean contains_1(Object dse_contextRootData, String param1) {
  KeyedCollection rootData=(KeyedCollection)dse_contextRootData;
  System.out.println("### context's root keyedCollection:\n"+rootData);
  int index=-1;
  index=rootData.getIndexOf(param1);
  if(index>=0){
    return true;
  }
  else
  {
    return false;
  }
}
Go up to
Advanced topics