Skip to content
Snippets Groups Projects
Commit 20417481 authored by David Büchler's avatar David Büchler
Browse files

Die erste Stufe einer Kampagne wird nun beim Serien Hinzufügen automatisch vorselektiert

Anzeigeproblem in der Scorecard behoben
parent 504ae2b4
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,6 @@
<consumer>CampaignStepConsumer</consumer>
<mandatory v="true" />
<state>EDITABLE</state>
<valueProcess>%aditoprj%/entity/CampaignAddParticipants_entity/entityfields/campaignstep_id/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/CampaignAddParticipants_entity/entityfields/campaignstep_id/displayValueProcess.js</displayValueProcess>
</entityField>
<entityField>
......
import("system.logging");
import("system.vars");
import("system.neon");
import("Campaign_lib");
//neon.setFieldValue("CAMPAIGNSTEP_ID", "")
\ No newline at end of file
var stepId = CampaignUtils.getDefaultCampaignStep(vars.get("$field.CAMPAIGN_ID"));
neon.setFieldValue("$field.CAMPAIGNSTEP_ID", stepId);
\ No newline at end of file
import("system.logging");
import("system.result");
import("system.neon");
import("system.vars");
if(vars.exists("$param.currentCampaignStepId_param") && vars.get("$param.currentCampaignStepId_param"))
{
// result.string(vars.get("$param.currentCampaignStepId_param"));
}
\ No newline at end of file
import("system.neon");
import("system.logging");
import("Campaign_lib");
import("system.vars");
vars.set("$field.CAMPAIGNSTEP_ID", "");
\ No newline at end of file
var stepId = CampaignUtils.getDefaultCampaignStep(vars.get("$field.CAMPAIGN_ID"));
neon.setFieldValue("$field.CAMPAIGNSTEP_ID", stepId);
\ No newline at end of file
......@@ -186,7 +186,7 @@ _CampaignUtils._openAddParticipantContext = function(pContext, pRowIds, pEntityP
_CampaignUtils._loadSingleValueFromDb = function(pSelectQuery, pConditionField, pConditionValue, pDefaultValue)
{
let res = pDefaultValue;
if (pConditionValue)
if (pConditionValue != null && pConditionValue != "null" && pConditionValue != "")
{
res = db.cell(SqlCondition.begin()
.andPrepare(pConditionField, pConditionValue)
......
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