платформа 5.5.5 сервер 1.5.2
При открытии окна просмотра “деревья” отображаются простым списком без узлов.
После редактирования ребенка - появляется свернутый узел родителя и ребенок туда “прячется”, хотя фокус не теряет.
Refresh - узлы пропадают, опять список.
Для Tree в xml не работает.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<window xmlns="http://schemas.haulmont.com/cuba/5.5/window.xsd"
caption="msg://browseCaption"
class="com.company.magazin.gui.workcalendar.WorkCalendarBrowse"
messagesPack="com.company.magazin.gui.workcalendar">
<dsContext>
<hierarchicalDatasource id="workCalendarsTreeDs"
class="com.company.magazin.entity.WorkCalendar"
hierarchyProperty="parent_period"
view="_minimal">
<query>
<![CDATA[select e from magazin$WorkCalendar e]]>
</query>
</hierarchicalDatasource>
<collectionDatasource id="childDs"
class="com.company.magazin.entity.WorkCalendar"
view="_minimal">
<query>
<![CDATA[select e from magazin$WorkCalendar e where e.parent_period.id = :ds$workCalendarsTreeDs]]>
</query>
</collectionDatasource>
<hierarchicalDatasource id="workCalendarsTreeTableDs"
class="com.company.magazin.entity.WorkCalendar"
hierarchyProperty="parent_period"
view="_local">
<query>
<![CDATA[select e from magazin$WorkCalendar e]]>
</query>
</hierarchicalDatasource>
</dsContext>
<layout expand="workCalendarSpit"
spacing="true">
<treeTable id="workCalendarsTreeTable"
height="300px"
width="100%">
<actions>
<action id="create"
openType="DIALOG"/>
<action id="edit"
openType="DIALOG"/>
<action id="remove"/>
<action id="refresh"/>
</actions>
<columns>
<column id="period_name"/>
<column id="start_period_date"/>
<column id="end_period_date"/>
</columns>
<rows datasource="workCalendarsTreeTableDs"/>
<buttonsPanel alwaysVisible="true">
<button id="refreshBtn"
action="workCalendarsTreeTable.refresh"/>
<button id="button_1"
action="workCalendarsTreeTable.create"/>
<button id="button_2"
action="workCalendarsTreeTable.edit"/>
<button id="button_3"
action="workCalendarsTreeTable.remove"/>
</buttonsPanel>
</treeTable>
<split id="workCalendarSpit"
orientation="horizontal"
width="100%">
<tree id="workCalendarsTree"
height="100%"
width="100%">
<actions>
<action id="refresh"/>
<action id="create"
openType="DIALOG"/>
<action id="edit"
openType="DIALOG"/>
<action id="remove"/>
</actions>
<treechildren captionProperty="period_name"
datasource="workCalendarsTreeDs"/>
</tree>
<table id="childrenTable"
height="100%"
width="100%">
<columns>
<column id="period_name"/>
</columns>
<rows datasource="childDs"/>
</table>
</split>
</layout>
</window>