Report editor should support loading fetchPlans for custom list property in entity parameter
Description
Also see RU support forum discussion.
If we select "List of entities" type for DataSet we can use existing InputParameter with "Entity" type. Also we able selecting existing FetchPlan for this parameter.
However, if we specify custom property from this parameter like entity#departments, the field does not load available FetchPlans. We can only write FetchPlan manually to the field.
Tested on: Jmix version: 1.6.999-SNAPSHOT Jmix Studio plugin version: 2.2.SNAPSHOT6195-233 IntelliJ version: IntelliJ IDEA 2023.3.3 (Ultimate Edition)
While checking the ticket, was founded two cases that show that there is an error in the report.
The first case - when select List of Entities directly, the Fetch Plans are visible, you can select one:
But after saving, _base Fetch Plan always remains:
And the second case - if set the parameter as n2#newEntities (similar to entity#departments from the ticket description), then Fetch Plans cannot be selected, an empty list appears:
The first case has been fixed, but the second case is still reproducible.
Target description:
After typing 'entity2#newEntities' to the field 'List of entities parameter name' and press Enter, all available fetchplans should be visible in the second field 'Fetch plan name' (_local, _base, _instance_name and custom fetchplan 'customFetchPlan' from Test project)
Steps to reproduce:
- Run Test project
- Reports -> Reports
- Select report2, click Edit
- Select Band1
- In the field 'List of entities parameter name' add to 'entity2' string '#newEntities' , the fiel should contain 'entity2#newEntities', and press Enter
Current Behavior: The field 'Fetch plan name' combobox is empty.
Expected Behavior: The field 'Fetch plan name' combobox should contain all fetchplans.
Tested on:
- Jmix version: 1.6.999-SNAPSHOT Jmix Studio plugin version: 2.3.SNAPSHOT6529-233 IntelliJ version: IntelliJ IDEA 2023.3.7 (Community Edition)
- Jmix version: 1.6.999-SNAPSHOT Jmix Studio plugin version: 2.3.0-241 IntelliJ version: IntelliJ IDEA 2024.1.4 (Community Edition)
Fetch plans are displayed, they can be changed, they are can be saved in the project - Ok.