Skip to content
Snippets Groups Projects
Commit 07dd1dae authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon: Committed by Johannes Goderbauer
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1057236][Dokumentation der Export-Fields]

parent da7ef0d5
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@
</entityField>
<entityField>
<name>FIELD</name>
<documentation>%aditoprj%/entity/ExportTemplateField_entity/entityfields/field/documentation.adoc</documentation>
<title>Field</title>
<mandatory v="true" />
<dropDownProcess>%aditoprj%/entity/ExportTemplateField_entity/entityfields/field/dropDownProcess.js</dropDownProcess>
......
= ExportTemplateField_entity
Entity to store all the Fields from the ExportTemplates, linked to the Template via the ExportTemplateId.
The selection of Exportfields is created by using the Placeholder function "PlaceholderUtils.getPlaceholders()".
If you want to add more fields, you just have to add the function "CustomPlaceholderUtils.getPlaceholders()" to the dropDownProcess
and add the desired Fields as placeholders in the CustomPlaceholder_lib.
Own dbTable Entity is needed to make it possible to store multiple fields for one template
\ No newline at end of file
= FIELD
The selection of Exportfields is created by using the Placeholder function "PlaceholderUtils.getPlaceholders()".
If you want to add more fields, you just have to add the function "CustomPlaceholderUtils.getPlaceholders()" to the dropDownProcess
and add the desired Fields as placeholders in the CustomPlaceholder_lib.
......@@ -2,6 +2,12 @@ import("system.result");
import("Placeholder_lib");
import("system.text")
//The current selection of Exportfields is created by using the Placeholder function "PlaceholderUtils.getPlaceholders()".
//if you want to add more fields, you just have to add the function "CustomPlaceholderUtils.getPlaceholders()" to the dropDownProcess
//and add the desired Fields as placeholders in the CustomPlaceholder_lib.
var placeholders = PlaceholderUtils.getPlaceholders(null, true).map(function (placeholder){
return [placeholder.placeholderName, placeholder.title || placeholder.placeholderName];
})
......
......@@ -24,6 +24,7 @@
</entityField>
<entityField>
<name>PLACEOFUSE</name>
<documentation>%aditoprj%/entity/ExportTemplatePlaceOfUse_entity/entityfields/placeofuse/documentation.adoc</documentation>
<title>Place of use</title>
<consumer>ContextExportTemplatePlaceOfUse</consumer>
<mandatory v="true" />
......
= ExportTemplatePlaceOfUse_entity
Entity to select all Modules where the created template should be useable (to limit the availability in the modules).
Linked via the ExportTemplateID
Own dbTable and Entity are to make it possible to store multiple fields for one template.
\ No newline at end of file
The selection of Places Of usage is created via the link to the context_entity and limiting it
by the Blacklist_param (which is being inverted to an whitelist thanks to the invertBlacklist_param).
Linked via the ExportTemplateID to ExportTemplates.
Own dbTable and Entity are to make it possible to store multiple fields for one template.
= PlaceOfuse
The selection of Places Of usage is created via the link to the context_entity and limiting it
by the Blacklist_param (which is being inverted to an whitelist thanks to the invertBlacklist_param).
\ No newline at end of file
= ExportTemplate_entity
Entity to store all the ExportTemplates.
Exporttemplates are used to give the user an easy way to export Data from an table.
Entity to store all the Export templates.
Export templates are used to give the user an easy way to export Data from an table.
The template gets configured once (by an system-admin) and the user can easily use these template
via the action without having to worry about the fields and their sorting.
linked via the ExportTemplateId to:
Process:
1. The System-admin configures a Export template with the desired specification (title, description,
places of use, separators, language, fields and sorting)
2. The User is located in the Filterview of the context specified in the place of use of the template.
3. Selects the records manually or uses the filter function to limit the data he wants to export
4. And presses on the action (Located at the top of the Table)
5. Selects the desired template and an fitting Name for the exported Data (If none: "templateTitle_dd.MM.yyyy.HH:mm:ss")
6. Download of the CSV-file starts automatically
Appendix: The CSV is arranged like this: every field gets one column, which has the translated columntitle
at the top and the data in the cells underneath in the same sorting as the filterview.
fields which don't have any data to show are just left blank.
PlaceOfUse is used to configure where the template can be used. (Only Options at the moment are the Contact and the Organisation Context)
ISOLanguage is used to translate the columntitles in the correct language. (Not the data itself!)
Linked via the ExportTemplateId to:
-ExportTemplateField_entity to make it possible to store multiple fields for one template
-ExportTemplatePlaceOfUse_entity to make it possible to store multiple places of usage for one template
-ExportTemplateSelection_entity entity for the selection of the template
\ No newline at end of file
-ExportTemplateSelection_entity entity for the selection of the template you want to use to export the table.
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