Skip to content
Snippets Groups Projects
Commit d647f6ab authored by Johannes Goderbauer's avatar Johannes Goderbauer Committed by Benjamin Ulrich
Browse files

Campaign: new action for adding additional (following) steps

parent dce088c4
No related branches found
No related tags found
No related merge requests found
......@@ -335,6 +335,7 @@
<consumer>CampaignStepsConsumer</consumer>
<textInputAllowed v="true" />
<stateProcess>%aditoprj%/entity/CampaignStep_entity/entityfields/predecessorstep_id/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/CampaignStep_entity/entityfields/predecessorstep_id/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/CampaignStep_entity/entityfields/predecessorstep_id/displayValueProcess.js</displayValueProcess>
<onValueChange>%aditoprj%/entity/CampaignStep_entity/entityfields/predecessorstep_id/onValueChange.js</onValueChange>
<onValueChangeTypes>
......@@ -402,6 +403,17 @@
<name>maxSort_param</name>
<expose v="true" />
</entityParameter>
<entityActionField>
<name>newCampaignStep</name>
<title>New step</title>
<onActionProcess>%aditoprj%/entity/CampaignStep_entity/entityfields/newcampaignstep/onActionProcess.js</onActionProcess>
<iconId>NEON:GROUP_APPOINTMENT</iconId>
</entityActionField>
<entityParameter>
<name>predecessorstepId_param</name>
<expose v="true" />
<documentation>%aditoprj%/entity/CampaignStep_entity/entityfields/predecessorstepid_param/documentation.adoc</documentation>
</entityParameter>
</entityFields>
<recordContainers>
<dbRecordContainer>
......
import("system.vars");
import("system.neon");
neon.openContext("CampaignStep", "CampaignStepEdit_view", null, neon.OPERATINGSTATE_NEW, {
campaignId_param: vars.get("$param.campaignId_param"),
predecessorstepId_param: vars.get("$field.CAMPAIGNSTEPID")
});
\ No newline at end of file
import("system.neon");
import("system.result");
import("system.vars");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$param.predecessorstepId_param"))
result.string(vars.get("$param.predecessorstepId_param"));
\ No newline at end of file
An optional CAMPAIGNSTEP.PREDECESSOR_ID which is used as presetValue for the predecessor-step-field.
\ No newline at end of file
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