Hello!
In our project we have categorized entity named "Document"
I wanna make report parameter with “Category” type to allow users choose Category instance before running report.
The problem is that “Category” is annotated with @SystemLevel and I cannot create such parameter.
What would be the best solution for this issue?
Hi Rushan,
You can override @SystemLevel
annotation for Category
entity using metadata.xml
in your project. See in documentation A.metadata.xml - CUBA Platform. Developer’s Manual
Use the following snippet for disabling @SystemLevel
annotation:
<annotations>
<entity class="com.haulmont.cuba.core.entity.Category">
<annotation name="com.haulmont.cuba.core.entity.annotation.SystemLevel">
<attribute name="value" value="false" datatype="boolean"/>
</annotation>
</entity>
</annotations>
Thank you,
Subbotin Andrey