Skip to content
Snippets Groups Projects
Commit 5b8d4dd7 authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1059714][neon.open*** können und...

[Projekt: Entwicklung - Neon][TicketNr.: 1059714][neon.open*** können und dürfen nicht in store-Prozessen(insert, update, delete) des RecordContainers verwendet werden] 
Person - export
parent f3707150
No related branches found
No related tags found
No related merge requests found
Showing with 55 additions and 24 deletions
......@@ -5,13 +5,14 @@
<documentation>%aditoprj%/entity/ExportTemplateSelection_entity/documentation.adoc</documentation>
<title>Exporttempalte Selection</title>
<contentTitleProcess>%aditoprj%/entity/ExportTemplateSelection_entity/contentTitleProcess.js</contentTitleProcess>
<recordContainer>jDito</recordContainer>
<recordContainer>datalessRecordContainer</recordContainer>
<entityFields>
<entityProvider>
<name>#PROVIDER</name>
</entityProvider>
<entityField>
<name>EXPORTTEMPLATESELECTIONID</name>
<state>EDITABLE</state>
<valueProcess>%aditoprj%/entity/ExportTemplateSelection_entity/entityfields/exporttemplateselectionid/valueProcess.js</valueProcess>
</entityField>
<entityField>
......@@ -19,6 +20,7 @@
<title>Exporttemplate</title>
<consumer>ExportTemplateComsumer</consumer>
<mandatory v="true" />
<state>EDITABLE</state>
<displayValueProcess>%aditoprj%/entity/ExportTemplateSelection_entity/entityfields/exporttemplate_id/displayValueProcess.js</displayValueProcess>
</entityField>
<entityParameter>
......@@ -45,14 +47,17 @@
</entityConsumer>
<entityField>
<name>UID</name>
<state>EDITABLE</state>
</entityField>
<entityField>
<name>FILENAME</name>
<title>Filename</title>
<state>EDITABLE</state>
<tooltip>Automatically generates an defaulttitle if left Blank</tooltip>
</entityField>
<entityField>
<name>selection</name>
<state>EDITABLE</state>
<valueProcess>%aditoprj%/entity/ExportTemplateSelection_entity/entityfields/selection/valueProcess.js</valueProcess>
</entityField>
<entityParameter>
......@@ -61,20 +66,21 @@
</entityParameter>
<entityField>
<name>comingfrom</name>
<state>EDITABLE</state>
<valueProcess>%aditoprj%/entity/ExportTemplateSelection_entity/entityfields/comingfrom/valueProcess.js</valueProcess>
</entityField>
<entityActionField>
<name>safeandexport</name>
<title>export using the selected template</title>
<onActionProcess>%aditoprj%/entity/ExportTemplateSelection_entity/entityfields/safeandexport/onActionProcess.js</onActionProcess>
<iconId>NEON:EXPORT</iconId>
<stateProcess>%aditoprj%/entity/ExportTemplateSelection_entity/entityfields/safeandexport/stateProcess.js</stateProcess>
</entityActionField>
</entityFields>
<recordContainers>
<jDitoRecordContainer>
<name>jDito</name>
<jDitoRecordAlias>Data_alias</jDitoRecordAlias>
<contentProcess>%aditoprj%/entity/ExportTemplateSelection_entity/recordcontainers/jdito/contentProcess.js</contentProcess>
<onInsert>%aditoprj%/entity/ExportTemplateSelection_entity/recordcontainers/jdito/onInsert.js</onInsert>
<recordFieldMappings>
<jDitoRecordFieldMapping>
<name>UID.value</name>
</jDitoRecordFieldMapping>
</recordFieldMappings>
</jDitoRecordContainer>
<datalessRecordContainer>
<name>datalessRecordContainer</name>
<alias>Data_alias</alias>
</datalessRecordContainer>
</recordContainers>
</entity>
import("system.neon");
import("system.result");
import("system.vars");
if (vars.get("$sys.validationerrors"))
result.string(neon.COMPONENTSTATE_DISABLED);
else
result.string(neon.COMPONENTSTATE_EDITABLE);
import("system.result");
import("system.vars");
//TODO: This dummy implementation shouldn't be nescessary here. Remove this process eventually. #1051003
var rows = [];
if (vars.get("$local.idvalues"))
rows = vars.get("$local.idvalues").map(function (id) {return [id];});
result.object(rows);
\ No newline at end of file
......@@ -8,7 +8,7 @@ if(sysSelection.length > 0) //if data selected -> use selected data
params = {
"selectedData_param" : JSON.stringify(sysSelection),
"comingFrom_param" : vars.get("$sys.currentcontextname")}
neon.openContext("ExportTemplateSelection", "ExportTemplateSelectionEdit_view", null, neon.OPERATINGSTATE_NEW, params);
neon.openContext("ExportTemplateSelection", "ExportTemplateSelectionEdit_view", null, neon.OPERATINGSTATE_VIEW, params);
}
else //else -> use Filtercondition
{
......@@ -16,5 +16,5 @@ else //else -> use Filtercondition
params = {
"selectedData_param" : JSON.stringify(sysFilter),
"comingFrom_param" : vars.get("$sys.currentcontextname")}
neon.openContext("ExportTemplateSelection", "ExportTemplateSelectionEdit_view", null, neon.OPERATINGSTATE_NEW, params);
neon.openContext("ExportTemplateSelection", "ExportTemplateSelectionEdit_view", null, neon.OPERATINGSTATE_VIEW, params);
}
\ No newline at end of file
......@@ -6821,6 +6821,12 @@
<entry>
<key>and open Report</key>
</entry>
<entry>
<key>export</key>
</entry>
<entry>
<key>export using the selected template</key>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
<sqlModels>
......
......@@ -8741,6 +8741,13 @@ Bitte Datumseingabe prüfen</value>
<key>and open Report</key>
<value>und Report öffnen</value>
</entry>
<entry>
<key>export</key>
</entry>
<entry>
<key>export using the selected template</key>
<value>Mit der ausgewählten Vorlage Exportieren</value>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
</language>
......@@ -6887,6 +6887,12 @@
<entry>
<key>and open Report</key>
</entry>
<entry>
<key>export</key>
</entry>
<entry>
<key>export using the selected template</key>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
</language>
......@@ -3,7 +3,6 @@
<name>ExportTemplateSelectionEdit_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<size>SMALL</size>
<isOverlay v="true" />
<overlayOrientation>PORTRAIT</overlayOrientation>
<layout>
<boxLayout>
......@@ -14,6 +13,7 @@
<genericViewTemplate>
<name>generic</name>
<editMode v="true" />
<hideEmptyFields v="false" />
<entityField>#ENTITY</entityField>
<fields>
<entityFieldLink>
......@@ -26,5 +26,12 @@
</entityFieldLink>
</fields>
</genericViewTemplate>
<actionsViewTemplate>
<name>ContinueActions</name>
<actions>
<element>safeandexport</element>
</actions>
<entityField>#ENTITY</entityField>
</actionsViewTemplate>
</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