Namespace alv.util
Utility module.
Defined in: jquery.alv.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
alv.util.convertDate(pDate, pDateFormat)
Convert a string date in a given date format to the DD/MM/YYYY date format.
|
<static> |
alv.util.getConditionResult(pExpression)
Get the result of JavaScript expression.
|
<static> |
alv.util.getDateFromString(pVal)
Format a DD/MM/YYYY date represented as a string to a date object.
|
<static> |
alv.util.getNumberFromString(pVal)
Get the numeric value of a string.
|
<static> |
alv.util.getPageItemValue(pItem)
Get the value of an APEX page item if an ID selector is passed as parameter, otherwise return the parameter value.
|
<static> |
alv.util.replaceCharInString(pString, pIndex, pChar)
Replace a character on position x within a given string.
|
<static> |
alv.util.trim(pVal)
Trim leading and trailing whitespace characters from a string value.
|
Method Detail
<static>
{String}
alv.util.convertDate(pDate, pDateFormat)
Convert a string date in a given date format to the DD/MM/YYYY date format.
- Parameters:
- {String} pDate
- The date to be converted.
- {String} pDateFormat
- The date format of pDate.
- Returns:
- {String} The date value in the DD/MM/YYYY format.
<static>
{Boolean}
alv.util.getConditionResult(pExpression)
Get the result of JavaScript expression.
- Parameters:
- {String} pExpression
- A JavaScript expression in the form of a string that will be evaluated with eval().
- Returns:
- {Boolean} The boolean result of the expression.
<static>
{Date}
alv.util.getDateFromString(pVal)
Format a DD/MM/YYYY date represented as a string to a date object.
- Parameters:
- {String} pVal
- The date value as a string.
- Returns:
- {Date} The date value as a date object.
<static>
{Number|String}
alv.util.getNumberFromString(pVal)
Get the numeric value of a string. Return an empty string if pVal is empty.
- Parameters:
- {String} pVal
- The numeric value as a string.
- Returns:
- {Number|String} The numeric value of pVal or an empty string.
<static>
{String}
alv.util.getPageItemValue(pItem)
Get the value of an APEX page item if an ID selector is passed as parameter, otherwise return the parameter value.
- Parameters:
- {String} pItem
- Can be either an APEX page item ID selector or a fixed value.
- Returns:
- {String} The value of a page item or a fixed value.
<static>
{String}
alv.util.replaceCharInString(pString, pIndex, pChar)
Replace a character on position x within a given string.
- Parameters:
- {String} pString
- The string that contains the character to be replaced.
- {Number} pIndex
- The position of the character that will be replaced.
- {String|Number} pChar
- The new character value.
- Returns:
- {String} The string with one character replaced.
<static>
{String}
alv.util.trim(pVal)
Trim leading and trailing whitespace characters from a string value.
- Parameters:
- {String} pVal
- The value to be trimmed.
- Returns:
- {String} The trimmed value of pVal.