Members
toArray
toArray
- Source:
Methods
CommValidationUtil()
provides somehow static methods for validation of communication data
do not create an instance of this
- Source:
createKeyword(keywordType) → {Object}
creates an object with methods for interacting with an specific keyword
Parameters:
Name | Type | Description |
---|---|---|
keywordType |
String | specifies the type of the keyword and therefore the list elements; e.g. "COUNTRY" |
- Source:
Returns:
object with the following methods:
- toArray
- getPropForKey
- getPropsForKey
- filter
- toArray
- getPropForKey
- getPropsForKey
- filter
- Type
- Object
DateUtils()
provides methods for interactions with dates
- Source:
getCurrentProductPrice(pPid, pBuySell)
Delivers the currently valid product price
Parameters:
Name | Type | Description |
---|---|---|
pPid |
String | ProductID |
pBuySell |
String | possible values: PP, SP |
- Source:
Example
productUtils.getCurrentProductPrice(vars.get("$field.PRODUCTID"), "PP")
getDateIncrementedByYears(pDate, pYears)
Delivers the passed date incremented by passed years
Parameters:
Name | Type | Description |
---|---|---|
pDate |
Number | |
pYears |
Number |
- Source:
getNextOfferNumber()
Delivers the next valid offer number (has to be unique)
- Source:
getNextProjectNumber()
Delivers the next valid project number (has to be unique)
- Source:
getProductDetails(pPid)
Delivers the stock
Parameters:
Name | Type | Description |
---|---|---|
pPid |
String | ProductID |
- Source:
Example
productUtils.getStockCount(vars.get("$field.PRODUCTID"))
getStandardArray(keywordType) → {Array}
returns the default case for keyword-arrays (id and translated name)
Parameters:
Name | Type | Description |
---|---|---|
keywordType |
String | specifies the type of the keyword and therefore the list elements; e.g. "COUNTRY" |
- Source:
Returns:
a 2D array in form of [["id1", "name1"], ["idN", "nameN"]]
- Type
- Array
Example
var kwdUtils, items;
kwdUtils = new KeywordUtils();
items = kwdUtils.getStandardArray("ADDRESS.TYPE");
result.object(items);
getStockCount(pPid)
Delivers the stock
Parameters:
Name | Type | Description |
---|---|---|
pPid |
String | ProductID |
- Source:
Example
productUtils.getStockCount(vars.get("$field.PRODUCTID"))
getTodayUTC()
Delivers the current date at midnight in UTC
- Source:
getViewValue(keywordType, key) → {String}
returns a specific name (translated) - this is normally the view-value - of a given keyword;
if the key could not be found an empty string "" is returned
if the key could not be found an empty string "" is returned
Parameters:
Name | Type | Description |
---|---|---|
keywordType |
String | specifies the type of the keyword and therefore the list elements; e.g. "COUNTRY" |
key |
String | id value of the keyword where the view-value shall be searched |
- Source:
Returns:
representation of the translated name of the keyword-key
- Type
- String
Example
var kwdUtils, histMedium;
histMedium = vars.get("$field.MEDIUM");
if (histMedium){
kwdUtils = new KeywordUtils();
result.string(vars.get("$field.SUBJECT") + " (" + kwdUtils.getViewValue("HISTORY.MEDIUM", histMedium) + ")");
}
KeywordUtils()
provides methods for interactions with keywords
- Source:
ProcessHandlingUtil()
provides somehow static methods for special handling in JDito-Processes
do not create an instance of this
- Source:
setPartStat()
Sets the partstat of the current users as given param state
currentUserUri: string currentUserUri
attendees: MSencoded calendarusers
state: sets partstat
- Source:
SqlCondition()
object for easier handling of conditions;
With this object you do not have to check if the string is empty or not;
you don't need to append a "1=1" condition or similar;
this objects gains most benefit if you have a lot of conditions that are added (or not) depending on tons of conditions
- Source:
Example
//TODO: add missing example
SqlMaskingUtils(aliasopt)
provides functions for masking sql functions
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
alias |
String |
<optional> |
currentAlias | database alias, you can specify null if you have no alias available and you can manually set the dbType property |
- Source:
validateBeginnBeforeEnd(pStart, pEnd)
Validates two date inputs (beginning should always be before the end!)
Parameters:
Name | Type | Description |
---|---|---|
pStart |
Number | |
pEnd |
Number |
- Source:
validateOfferNumber(pOfferNumber)
Checks if the passed offer number is valid (has to be unique)
Parameters:
Name | Type | Description |
---|---|---|
pOfferNumber |
String | offer number to check |
- Source:
validateProjectNumber(pProjectNumber)
Checks if the passed project number is valid (has to be unique)
Parameters:
Name | Type | Description |
---|---|---|
pProjectNumber |
String | project number to check |
- Source: