Skip to content
Snippets Groups Projects
Commit 562cf0e5 authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon: Committed by Sebastian Listl
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1066768][Klassifizierung -...

[Projekt: Entwicklung - Neon][TicketNr.: 1066768][Klassifizierung - Nachträgliche Änderung der Werte - Hardcodierte Texte werden nicht aktualisiert und können sehr irritieren]
parent f7723960
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ try
var table = ["CLASSIFICATIONGRADING"];
var multiplicand = maxScore/gradingTable[0][1];
var update = newWhere("CLASSIFICATIONGRADING.CLASSIFICATIONGRADINGID", gradingTable[0][0])
.updateData(true, table, column, null, column, db.getCurrentAlias()), [maxScore]);
.updateData(true, table, column, null, column, db.getCurrentAlias(), [maxScore]);
for (let i = 1; i < gradingTable.length; i++)
{
......
......@@ -39,6 +39,7 @@
</entityField>
<entityConsumer>
<name>ClassificationScores</name>
<refreshParent v="true" />
<dependency>
<name>dependency</name>
<entityName>ClassificationScore_entity</entityName>
......
import("system.neon");
import("system.translate");
import("Entity_lib");
import("system.result");
......@@ -16,7 +17,7 @@ var maxScore = 0;
var i;
var randomScoreId;
result.string(translate.text("Keep in Mind that changes to the Value with the greatest score directly affect the Classification Gradings of the Classification!"))
var res = ClassificationUtils.getTranslatedInfo();
if(rows.length > 0)
{
for (i = 0; i < rows.length; i++)
......@@ -54,7 +55,7 @@ if(rows.length > 0)
for (i = 0; i < gradingTable.length; i++)
{
oldToNewValueString += gradingTable[i][2] + ": " + gradingTable[i][1] + "->" + parseInt(gradingTable[i][1] * multiplicand) + "\n\
";
";
}
}
else
......@@ -67,9 +68,9 @@ if(rows.length > 0)
";
}
}
var resString = translate.text("This is how the Classification Gradings of the Classification will get affected by these changes:") + "\n\
res = translate.text("This is how the Classification Gradings of the Classification will get affected by these changes:") + "\n\
"+ oldToNewValueString;
result.string(resString);
}
}
}
\ No newline at end of file
}
result.string(res);
\ No newline at end of file
......@@ -440,6 +440,18 @@ ClassificationUtils.decode = function (pEncodedString)
return res
};
/**
* gets the translated Info text for the ClassificationtypePreview
*
* @return {String} <p/> the translated InfoText
* @static
*/
ClassificationUtils.getTranslatedInfo = function ()
{
return translate.text("Keep in Mind that changes to the Value with the greatest score directly affect the Classification Gradings of the Classification!");
};
/*this is right now (2020-08-15) the only way to get something like a constant with
- a prober name
- autocomplete support within the ADITO Designer
......@@ -453,4 +465,4 @@ $ClassificationRecordCategories.CLASSIFICATION_GROUP_EXISTS = functio
$ClassificationRecordCategories.CLASSIFICATION_GROUP_DOESNT_EXIST = function(){return "ClassificationGroupDoesntExist"};
function $ClassificationPlaceholder(){}
$ClassificationPlaceholder.TOPSECRETPLACEHOLDER = function(){return "T0PS3CR3TPL4CEH0LD3R"};
\ No newline at end of file
$ClassificationPlaceholder.TOPSECRETPLACEHOLDER = function(){return "T0PS3CR3TPL4CEH0LD3R"};
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