From 5b4401bb82681b90308774d5eb8e1c648dc78afc Mon Sep 17 00:00:00 2001 From: Ralph Soika Date: Tue, 5 May 2026 11:56:44 +0200 Subject: [PATCH] business partner views --- .../office/forms/DataViewSectionController.java | 16 ++++++++++++++++ .../webapp/pages/workitems/forms/dataview.xhtml | 15 ++++++++++++++- templates/invoice_inbound_en_template.xlsx | Bin 0 -> 40288 bytes templates/payments_inbound_en_template.xlsx | Bin 0 -> 40214 bytes workflow/businesspartner-de-1.0.4.bpmn | 3 ++- workflow/businesspartner-en-1.0.4.bpmn | 3 ++- 6 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 templates/invoice_inbound_en_template.xlsx create mode 100644 templates/payments_inbound_en_template.xlsx diff --git a/office-alexander-logistics-app/src/main/java/org/imixs/workflow/office/forms/DataViewSectionController.java b/office-alexander-logistics-app/src/main/java/org/imixs/workflow/office/forms/DataViewSectionController.java index 3c0b525..e1ccbb6 100644 --- a/office-alexander-logistics-app/src/main/java/org/imixs/workflow/office/forms/DataViewSectionController.java +++ b/office-alexander-logistics-app/src/main/java/org/imixs/workflow/office/forms/DataViewSectionController.java @@ -153,4 +153,20 @@ public class DataViewSectionController implements Serializable { return dataSet; } + public boolean hasDataSet(String options) { + DataViewSectionDataSet dataSet = dataSets.get(options); + // Extract and set dataViewName from options + if (dataSet != null) { + return true; + } + + // test if view exists.. + String _dataViewName = getOptionValue(options, "name"); + if (dataViewService.loadDataViewDefinition(_dataViewName) != null) { + return true; + } + + return false; + } + } diff --git a/office-alexander-logistics-app/src/main/webapp/pages/workitems/forms/dataview.xhtml b/office-alexander-logistics-app/src/main/webapp/pages/workitems/forms/dataview.xhtml index aae15cf..346958d 100644 --- a/office-alexander-logistics-app/src/main/webapp/pages/workitems/forms/dataview.xhtml +++ b/office-alexander-logistics-app/src/main/webapp/pages/workitems/forms/dataview.xhtml @@ -6,7 +6,10 @@ - + + + @@ -91,6 +94,16 @@ + + + +
+

Model + error in #{workitem.modelVersion}:

+ Data View not defined: #{options} +
+