Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to reload domain values on specific events #27

Open
jorgelf opened this issue Oct 28, 2014 · 1 comment
Open

Provide a way to reload domain values on specific events #27

jorgelf opened this issue Oct 28, 2014 · 1 comment

Comments

@jorgelf
Copy link
Member

jorgelf commented Oct 28, 2014

This may be a bit hard to explain: inside the same form you may have two widgets with domain values read from a database that are somehow chained. For example, in the entity A form you have a subform with a list which lets you link A with B entities, and then you have another combobox in which you may choose one of those B entities as something. This can be problematic because the DB domain values are thought as static, you load them when the main form is opened and they are never updated. In the previous example it means you will have inside the combobox the B entities which were linked with A when opening the form, no matter what changes you have made in the subform list.
It would be nice to have some way to reload domain values from database under specific circumstances (e.g. another widget has changed, a subform has been closed).

@fpuga
Copy link
Member

fpuga commented Oct 29, 2014

I agree. It's not a common case but it's an interesting feature. In fact how dependencies are handled in the database is a bit weird and static. You should include the same values several times in the database tables to get the desired result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants