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

Beim hinzufügen einzelner Teilnehmer auf Kampagnen/Stufen Ebene wird ist nun...

Beim hinzufügen einzelner Teilnehmer auf Kampagnen/Stufen Ebene wird ist nun das Lookup zur Auswahl der Kampagne Readonly
Im Kampagnenschritt werden nun ausgesuchte Informationen in einem Score ViewTemplate in der Preview angezeigt
parent bf41b2e3
No related branches found
No related tags found
No related merge requests found
......@@ -67,11 +67,13 @@
<consumer>CampaignsConsumer</consumer>
<mandatory v="true" />
<state>EDITABLE</state>
<stateProcess>%aditoprj%/entity/CampaignParticipant_entity/entityfields/campaign_id/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/CampaignParticipant_entity/entityfields/campaign_id/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/CampaignParticipant_entity/entityfields/campaign_id/displayValueProcess.js</displayValueProcess>
<onValueChange>%aditoprj%/entity/CampaignParticipant_entity/entityfields/campaign_id/onValueChange.js</onValueChange>
<onValueChangeTypes>
<element>MASK</element>
<element>PROCESS</element>
</onValueChangeTypes>
</entityField>
<entityField>
......
import("system.neon");
import("system.result");
import("system.vars");
import("system.logging");
if(vars.exists("$param.CampaignId_param") && vars.get("$param.CampaignId_param") != "")
result.string(neon.COMPONENTSTATE_READONLY);
else
result.string(neon.COMPONENTSTATE_EDITABLE);
\ No newline at end of file
import("system.result");
import("system.vars");
import("Campaign_lib");
result.string(CampaignUtils.getStepCount(vars.get("$field.CAMPAIGNID")));
\ No newline at end of file
......@@ -3,9 +3,11 @@
<name>CampaignStepPreview_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<layout>
<boxLayout>
<headerFooterLayout>
<name>layout</name>
</boxLayout>
<header>CampaignStepCard</header>
<footer>KeyScoreInfos</footer>
</headerFooterLayout>
</layout>
<children>
<cardViewTemplate>
......@@ -19,10 +21,6 @@
<name>CampaignStepInfosGeneric</name>
<entityField>#ENTITY</entityField>
<fields>
<entityFieldLink>
<name>a5754668-2ba8-4c26-b8ab-f74e3c6c1085</name>
<entityField>CAMPAIGN_ID</entityField>
</entityFieldLink>
<entityFieldLink>
<name>4cbf0232-1dab-47f9-b62a-b539d5035c53</name>
<entityField>DATE_START</entityField>
......@@ -32,18 +30,28 @@
<entityField>DATE_END</entityField>
</entityFieldLink>
<entityFieldLink>
<name>1d6cc036-f0db-445f-a614-565a4c509933</name>
<entityField>CurrentMaxParticipantsInfo</entityField>
<name>a4dc1652-1c0c-4ca1-8f53-58e0b0c18177</name>
<entityField>CAMPAIGN_ID</entityField>
</entityFieldLink>
<entityFieldLink>
<name>88fbd366-0107-44b7-8d9c-f4fee89c0637</name>
<name>1a30ddde-aaaf-43c5-ab4c-52581175ff12</name>
<entityField>CampaignStatus</entityField>
</entityFieldLink>
</fields>
</genericViewTemplate>
<scoreCardViewTemplate>
<name>KeyScoreInfos</name>
<entityField>#ENTITY</entityField>
<fields>
<entityFieldLink>
<name>27558e2a-a377-4126-a29d-422d2d5a44b4</name>
<name>0af45fb6-7ce8-493e-bdd8-17c4a06aa4f7</name>
<entityField>COST</entityField>
</entityFieldLink>
<entityFieldLink>
<name>dc39a199-a5c1-4a8e-81cc-a85bfca63a9f</name>
<entityField>CurrentMaxParticipantsInfo</entityField>
</entityFieldLink>
</fields>
</genericViewTemplate>
</scoreCardViewTemplate>
</children>
</neonView>
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