-
-
Save viksingh/f2f581c8aebfb82fe340bcc8ce680210 to your computer and use it in GitHub Desktop.
This method can be used in UDF to read the parameters from GlobalContainer instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String getGlobalParameter(String Parameter, Container container) throws StreamTransformationException{ | |
String ParameterValue = ""; | |
try{ | |
GlobalContainer gc = container.getGlobalContainer(); | |
ParameterValue = (String) gc.getParameter(parameter); | |
}catch(Exception ee){ | |
ParameterValue = ""; | |
} | |
return ParameterValue; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment