Extending : Global function extension : Describing global functions in a .xml file : <function> tag
  
<function> tag
The <function> tag describes a function. It may contain 0 or 1 <parameters> tags. The following is list of attributes of Function tag.
name
The name of the function. It should be unique in a file.
return type
The return type of the function such as String, Date, Number and Boolean.
description
The description of this function. The description will be shown in visual editor tool when mouse hovers on the function. The field supports NLS when it starts with %.
isServer
Specifies whether the function can be used on the server side. If set to false, the function is not displayed in transaction editors. The default value is true.
isClient
Specifies whether the function can be used on client side. If set to false, the function is not displayed on the XUI editor. The default value is true.
Go up to
Describing global functions in a .xml file