Hello,
I am trying to create a dashboard for my proyect, with the dashboard add-on, and everything was working ok until I decide to include a list from an entity. The thing is the windget is loading, but data doesn’t appears. I already chekc the query and this one is fine. I think I am using last version of the addon, but I am sure I have previous version of CUBA.
This is my XML:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<fragment xmlns="http://schemas.haulmont.com/cuba/screen/fragment.xsd">
<data readOnly="true">
<collection id="oTAvisosDc"
class="com.haulmont.app.entity.OTAviso"
view="oTAviso-view-all">
<loader id="oTAvisosDl">
<query>
<![CDATA[select e from pg_OTAviso e]]>
</query>
</loader>
</collection>
</data>
<layout expand="oTAvisosTable"
spacing="true">
<table id="oTAvisosTable"
width="100%"
dataContainer="oTAvisosDc">
<columns>
<column id="dtype" caption="Tipo"/>
<column id="estado" caption="Estado"/>
</columns>
</table>
</layout>
</fragment>
There is any limitation with screen-fragments that avoid correct work with this?, because I am not getting errors. I am also checking in the controler with:
public void onInit(InitEvent event) {
System.out.println("Is loaded");
}
But I am not getting response neither. I also try with dl.load(), and nothing.
I open to other ways of getting this list updated.