jmix icon indicating copy to clipboard operation
jmix copied to clipboard

Report editor should support loading fetchPlans for custom list property in entity parameter

Open Flaurite opened this issue 2 years ago • 1 comments

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.

Flaurite avatar May 16 '23 06:05 Flaurite

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:

image

But after saving, _base Fetch Plan always remains:

image

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:

image

SergeiAksenov2 avatar Mar 22 '24 14:03 SergeiAksenov2

The first case has been fixed, but the second case is still reproducible.

Target description: image

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)

Test project T1705.zip

Steps to reproduce:

  1. Run Test project
  2. Reports -> Reports
  3. Select report2, click Edit
  4. Select Band1
  5. 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.

SergeiAksenov2 avatar Apr 19 '24 14:04 SergeiAksenov2

Tested on:

  1. Jmix version: 1.6.999-SNAPSHOT Jmix Studio plugin version: 2.3.SNAPSHOT6529-233 IntelliJ version: IntelliJ IDEA 2023.3.7 (Community Edition)
  2. 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.

SergeiAksenov2 avatar Jul 01 '24 09:07 SergeiAksenov2