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

#1064055 use afterSave instead of saveActions

parent 4e033e31
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@
<majorModelMode>DISTRIBUTED</majorModelMode>
<documentation>%aditoprj%/entity/DSGVOInfo_entity/documentation.adoc</documentation>
<onValidation>%aditoprj%/entity/DSGVOInfo_entity/onValidation.js</onValidation>
<afterSave>%aditoprj%/entity/DSGVOInfo_entity/afterSave.js</afterSave>
<recordContainer>db</recordContainer>
<entityFields>
<entityProvider>
......@@ -151,12 +152,6 @@
</entityParameter>
</children>
</entityConsumer>
<entityActionField>
<name>SafeAndOpenReport</name>
<title>and open Report</title>
<onActionProcess>%aditoprj%/entity/DSGVOInfo_entity/entityfields/safeandopenreport/onActionProcess.js</onActionProcess>
<isSaveAction v="true" />
</entityActionField>
</entityFields>
<recordContainers>
<dbRecordContainer>
......
import("system.result");
import("system.vars");
import("DataPrivacy_lib");
......@@ -17,4 +18,6 @@ var contactId = entityData["param.ContactId_param"];
var reportType = entityData["param.ReportType_param"];
if (reportType)
DataPrivacyUtils.openReport(contactId, reportType, params);
\ No newline at end of file
DataPrivacyUtils.openReport(contactId, reportType, params);
result.string(true);
\ No newline at end of file
......@@ -5,17 +5,12 @@
<documentation>%aditoprj%/entity/WorkflowModel_entity/documentation.adoc</documentation>
<title>Workflow Model</title>
<contentTitleProcess>%aditoprj%/entity/WorkflowModel_entity/contentTitleProcess.js</contentTitleProcess>
<afterSave>%aditoprj%/entity/WorkflowModel_entity/afterSave.js</afterSave>
<recordContainer>jdito</recordContainer>
<entityFields>
<entityProvider>
<name>#PROVIDER</name>
</entityProvider>
<entityActionField>
<name>openModelEditor</name>
<title>and open modeler</title>
<onActionProcess>%aditoprj%/entity/WorkflowModel_entity/entityfields/openmodeleditor/onActionProcess.js</onActionProcess>
<isSaveAction v="true" />
</entityActionField>
<entityField>
<name>KEY</name>
<title>Key</title>
......
import("system.vars");
import("system.neon");
import("system.result");
import("Workflow_lib");
var createdModelId = vars.exists("$context.createdModelId") ? vars.get("$context.createdModelId") : null;
......@@ -7,4 +8,5 @@ if (createdModelId)
{
vars.set("$context.createdModelId", null);
neon.openUrl(WorkflowUtils.getModelerUrl(createdModelId, true), false);
result.string(true);
}
\ 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