jmix icon indicating copy to clipboard operation
jmix copied to clipboard

"Entity selection view" parameter of dynamic attribute with "Entity" type contains only hardcode options

Open fractal3000 opened this issue 6 months ago • 0 comments

Environment

Jmix version: 2.3.2

Bug Description

"Entity selection view" parameter contains only two options with ".list" and ".lookup" suffixes in any way. It doesn't support not stantart screen ids.

There are two possible problems:

  1. If you select not existing screen id you have error
  2. You can't select screen with custom id

Steps To Reproduce

Create project

  1. Add Dynamics attribute add-on
  2. Create an entity (e.g. FirstEntity) and views for it
  3. Modify value of the @ViewController annotation of a list screen of the FirstEntity. Set up the "FirstEntity.modifiedList"
  4. Create SecondEntity
  5. Run application
  6. Go to dynamic attributes adinistrative console
  7. Create dynamic attribute for SecondEntity of the "Entity" type
  8. Select FirstEntity of its class
  9. Select a view(list view)

Current Behavior

There are two options with incorrect views' names image

Expected Behavior

The text "FirstEntity.modifiedList" should be dysplayed as an option.

fractal3000 avatar Aug 21 '24 14:08 fractal3000