Skip to content
Snippets Groups Projects
Commit ace7d86c authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

Scan Service fixes

parent 074eae24
No related branches found
No related tags found
No related merge requests found
import("Entity_lib");
import("system.util");
import("system.result");
import("system.neon");
import("system.vars");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
result.string(vars.get("$sys.date"));
"$field.Attributes.deletedRows";
EntityConsumerRowsHelper.getCurrentConsumerRows("Attributes", ["VALUE"])
\ No newline at end of file
result.string(vars.get("$sys.date"));
\ No newline at end of file
......@@ -19,7 +19,7 @@
<entityField>#ENTITY</entityField>
<fields>
<entityFieldLink>
<name>ca781b9b-9e93-41c3-9373-cb559c347194</name>
<name>041a6ded-06b3-4d84-be29-d89d01df6dec</name>
<entityField>INFO</entityField>
</entityFieldLink>
</fields>
......
......@@ -3,6 +3,25 @@
<name>TurnoverChart_view</name>
<title></title>
<majorModelMode>DISTRIBUTED</majorModelMode>
<dashletConfigurations>
<neonDashletConfiguration>
<name>TurnoverDashlet</name>
<title>Turnover</title>
<fragment>Turnover/full</fragment>
<singleton v="true" />
<storeRoles>
<element>INTERNAL_ADMINISTRATOR</element>
<element>INTERNAL_DASHBOARDSTOREADMIN</element>
</storeRoles>
<icon>VAADIN:CHART</icon>
<categories>
<neonDashletCategory>
<name>turnover</name>
<title>Turnover</title>
</neonDashletCategory>
</categories>
</neonDashletConfiguration>
</dashletConfigurations>
<layout>
<groupLayout>
<name>layout</name>
......
......@@ -11,14 +11,14 @@ import("AI_lib");
function AIUtil(){}
function NBClassifier(options) {
options = options || {};
this.applyInverse = options.applyInverse || false;
this.probabilityThreshold = options.probabilityThreshold || 0.5;
this.defaultCategory = options.defaultCategory || null;
this.tokens = options.tokens || {};
this.categoryCounts = options.categoryCounts || {};
this.probabilities = options.probabilities || {};
function NBClassifier(pOptions) {
pOptions = pOptions || {};
this.applyInverse = pOptions.applyInverse || false;
this.probabilityThreshold = pOptions.probabilityThreshold || 0.5;
this.defaultCategory = pOptions.defaultCategory || null;
this.tokens = pOptions.tokens || {};
this.categoryCounts = pOptions.categoryCounts || {};
this.probabilities = pOptions.probabilities || {};
}
......
......@@ -106,8 +106,6 @@ PlaceholderUtils.getPlaceholders = function (pLocale, pIsExportTemplateField)
/**
* Returns the placeholder with the required prefix and postfix added.
*
* @deprecated
*/
PlaceholderUtils.formatPlaceholder = function (pPlaceholder)
{
......
......@@ -621,9 +621,11 @@ SqlCondition.prototype._init = function() {
* @param {String} [pAlias=the current alias] the database alias where the condition shall be executed later (important for column types of preparedStatements)
*
* @return {Array[][][]} Prepared condition with [condition, [[field, type]]]
*
* @deprecated
*/
SqlCondition.equals = function(pField, pValue, pAlternativeCond, pAlias) {
return SqlCondition.begin(pAlias).andPrepare(pField, pValue).build(pAlternativeCond);
return SqlCondition["begin"](pAlias).andPrepare(pField, pValue).build(pAlternativeCond);
}
/**
......@@ -634,9 +636,11 @@ SqlCondition.equals = function(pField, pValue, pAlternativeCond, pAlias) {
* @param {String} [pAlias=the current alias] the database alias where the condition shall be executed later (important for column types of preparedStatements)
*
* @return {Array[][][]} Prepared condition with [condition, [[field, type]]]
*
* @deprecated
*/
SqlCondition.equalsNot = function(pField, pValue, pAlternativeCond, pAlias) {
return SqlCondition.begin(pAlias).andPrepare(pField, pValue, "# <> ?").build(pAlternativeCond);
return SqlCondition["begin"](pAlias).andPrepare(pField, pValue, "# <> ?").build(pAlternativeCond);
}
// see Documentation property of this lib for further explanation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment