business partner views

This commit is contained in:
Ralph Soika 2026-05-05 11:56:44 +02:00
parent 6afd6856c2
commit 5b4401bb82
6 changed files with 34 additions and 3 deletions

View file

@ -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;
}
}

View file

@ -6,7 +6,10 @@
<!-- preload view options -->
<h:panelGroup styleClass="imixs-view imixs-search" layout="block" id="dataview_result_id">
<h:panelGroup styleClass="imixs-view imixs-search" layout="block" id="dataview_result_id"
rendered="#{dataViewSectionController.hasDataSet(options)}">
<ui:param name="dataViewDataSet" value="#{dataViewSectionController.loadDataSet(options)}" />
<ui:param name="searchPage"
value="#{(dataViewDataSet.getPageIndex()+1)}/#{(dataViewDataSet.getTotalPages())}" />
@ -91,6 +94,16 @@
</span>
</div>
</h:panelGroup>
<!-- Missing Data View -->
<h:panelGroup styleClass="ui-widget" rendered="#{!dataViewSectionController.hasDataSet(options)}">
<div class="" style="padding: .7em; margin-bottom: .7em; border: solid 1px #ccc;">
<p style="font-size: 1.1em; font-weight: bold"> <span class="typcn typcn-cog-outline"
style="margin-right:5px;"></span>Model
error in #{workitem.modelVersion}:</p>
Data View not defined: #{options}
</div>
</h:panelGroup>
<script type="text/javascript">
/*<![CDATA[*/
function handleSubmit(event) {

Binary file not shown.

Binary file not shown.

View file

@ -275,7 +275,8 @@
</imixs-subform>
<imixs-subform label="Eingangsrechnungen">
<imixs-form-section label="Rechnungen" path="alexander/section_bp_invoices_in" readonly="true" />
<imixs-form-section label="Open Invoices" path="dataview" options="name=invoice.inbound.open" />
<imixs-form-section label="All Invoices" path="dataview" options="name=invoice.inbound.all" />
</imixs-subform>
<imixs-subform label="Stammdaten">

View file

@ -273,7 +273,8 @@
</imixs-subform>
<imixs-subform label="Inbound Invoices">
<imixs-form-section label="Invoices" path="alexander/section_bp_invoices_in" readonly="true" />
<imixs-form-section label="Open Invoices" path="dataview" options="name=invoice.inbound.open" />
<imixs-form-section label="All Invoices" path="dataview" options="name=invoice.inbound.all" />
</imixs-subform>