Всем привет!!!
Как то можно сделать что бы в таблице выводились в том порядке в котором они прописаны в xml?
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<window xmlns="http://schemas.haulmont.com/cuba/screen/window.xsd"
xmlns:c="http://schemas.haulmont.com/cuba/screen/jpql_condition.xsd"
caption="msg://orderBrowse.caption"
focusComponent="ordersTable"
messagesPack="com.company.bulk.web.screens.order">
<data readOnly="true">
<collection id="ordersDc"
class="com.company.bulk.entity.Order">
<view extends="order-browse"/>
<loader id="ordersDl">
<query>
<![CDATA[select e from bulk_Order e where e.isArchive = false]]>
<condition>
<and>
<c:jpql>
<c:where>e.organization = :organization</c:where>
</c:jpql>
<c:jpql>
<c:where>e.branch = :branch</c:where>
</c:jpql>
</and>
</condition>
</query>
</loader>
</collection>
<collection id="shipmentsDc" class="com.company.bulk.entity.Shipment" view="shipment-browse">
<loader id="shipmentsDl">
<query>
<![CDATA[select e from bulk_Shipment e where e.order = :container_ordersDc]]>
</query>
</loader>
</collection>
<collection id="remnantDc" class="com.company.bulk.entity.Balance" view="_local">
<loader id="remnantDl" />
</collection>
</data>
<facets>
<dataLoadCoordinator auto="true"/>
</facets>
<layout spacing="true">
<split id="splitHorizontal" orientation="vertical" pos="50" height="100%" width="100%">
<vbox id="ordersPanel" expand="ordersTable" spacing="true" margin="false;false;false;false;"
height="100%" width="100%">
<filter id="filterOrders"
applyTo="ordersTable"
dataLoader="ordersDl">
<properties include=".*"/>
<!-- Кастомный фильтр по водителям -->
<custom caption="msg://driverFilterCaption"
name="driverFilter"
paramClass="java.lang.String"
join="join {E}.drivers d">
d.fullname like ?
</custom>
</filter>
<groupTable id="ordersTable"
width="100%"
dataContainer="ordersDc">
<actions>
<action id="refresh" type="refresh"/>
<action id="exel" type="excel"/>
</actions>
<columns>
<!-- Интересует данный момент выставил в таком порядке но отображается в экране совсем по другому -->
<column id="organization"/>
<column id="branch"/>
<column id="orderNum"/>
<column id="orderDate"/>
<column id="status"/>
<column id="quant"/>
<column id="producer"/>
<column id="nomenclature"/>
<column id="shipmentType"/>
<column id="distance"/>
<column id="buyer"/>
<column id="phoneNumberConsignee"/>
<column id="consignee"/>
<column id="comment"/>
<column id="initiatorEmail"/>
<column id="consigneeAddress" collapsed="true"/>
<column id="consigneeInfo"/>
<column id="ferryman"/>
<column id="driverSet"/>
<column id="cars"/>
<column id="trailers"/>
</columns>
<rowsCount/>
<buttonsPanel alwaysVisible="true">
<button action="ordersTable.refresh"/>
<button id="addShipmentButton" invoke="addShipment" caption="msg://addShipmentButton"/>
<button action="ordersTable.exel"/>
</buttonsPanel>
</groupTable>
</vbox>
<split id="splitVertical" orientation="horizontal" pos="50" height="100%" width="100%">
<groupBox id="remnantPanel" caption="msg://remnantsPanelName" captionAsHtml="true"
outerMargin="false;false;false;false;" height="100%" width="100%">
<table id="remnantTable" width="100%" dataContainer="remnantDc" editable="false">
<columns>
<column id="storage"/>
<column id="currentEndRemnant" caption="msg://remnant" />
</columns>
<rows/>
</table>
</groupBox>
<groupBox id="shipmentsPanel" caption="msg://shipmentsPanelName" captionAsHtml="true"
expand="shipmentsTable" spacing="true" outerMargin="false;false;false;false;"
height="100%" width="100%">
<groupTable id="shipmentsTable"
width="100%"
dataContainer="shipmentsDc" multiselect="true">
<actions>
<action id="edit" type="edit">
<properties>
<property name="openMode" value="DIALOG"/>
</properties>
</action>
<action id="remove" type="remove"/>
<action id="refresh" type="refresh"/>
<action id="sendError" type="shipmentComments"/>
</actions>
<columns>
<column id="shipNumber"/>
<column id="shipDate"/>
<column id="storage"/>
<column id="car.mark"/>
<column id="car.regnum"/>
<column id="trailer.regnum" caption="msg://reqTrailer"/>
<column id="driver.shortname" caption="msg://shortnameDriver"/>
<column id="quant"/>
<column id="status"/>
<column id="order.consignee"/>
<column id="shipmentSum"/>
<column id="emptyWeight"/>
<column id="driver.licenseNum"/>
<column id="quantBrutto"/>
<column id="approver.shortName" caption="msg://approver"/>
<column id="comments"/>
<column id="timePrintDate"/>
<column id="loadEndDate"/>
</columns>
<rowsCount/>
<buttonsPanel alwaysVisible="true">
<button action="shipmentsTable.edit"/>
<button action="shipmentsTable.remove"/>
<button action="shipmentsTable.refresh"/>
<button id="sending" invoke="changeStatus" caption="msg://sendingButton"/>
<button id="selectAll" invoke="selectAll" caption="msg://selectAll"/>
<button id="printShipmentBtn" caption="msg://printShipment" visible="false"/>
<button id="printPowerBtn" caption="msg://printPowerFile" invoke="printPowerFileDownload" visible="false"/>
<button id="printPowerReflectionBtn" caption="msg://printPowerFileReflection" invoke="printPowerFileDownloadReflection" visible="false"/>
<button id="correctButton" action="shipmentsTable.sendError" caption="msg://sendError" stylename="friendly"/>
<button id="annulButton" action="shipmentsTable.sendError" caption="msg://sendCancel" stylename="danger"/>
</buttonsPanel>
</groupTable>
</groupBox>
</split>
</split>
<hbox id="lookupActions" spacing="true" visible="false">
<button action="lookupSelectAction"/>
<button action="lookupCancelAction"/>
</hbox>
</layout>
</window>