SHARE
TWEET

Untitled

a guest Jul 12th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def getDataTypeList() {
  2.         log.debug "in $controllerName - $actionName... $params"
  3.         def result = [:]
  4.         def excludeDataType = ['Date']
  5.         try {
  6.             def dataTypeList = []
  7.             DataTypeMapping.list().each { obj ->
  8.                 if (!excludeDataType.contains(obj.name)) {
  9.                     dataTypeList.add([id: obj.name, name: obj.name, isComplex: obj.isComplex])
  10.                 }
  11.             }
  12.             result.dataTypeList = dataTypeList
  13.             result.isSuccess = "Y"
  14.             result.message = ""
  15.         } catch (Exception e) {
  16.             log.error(ExceptionUtils.getStackTrace(e))
  17.             result.isSuccess = "N"
  18.             result.message = "Error"
  19.         }
  20.         render result as JSON
  21.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top