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

When having a select inside a CRUD_field it only fetches select items if there's another select with the same query in the main form (not inside the CRUD_field). #9

Open
kingmatusevich opened this issue Jan 12, 2016 · 5 comments

Comments

@kingmatusevich
Copy link

Without a pointless Select in the main form with the same query:
(a) the main form
screen shot 2016-01-12 at 02 40 28
(b) the CRUD with a select that doesn't show options.
screen shot 2016-01-12 at 02 40 36

With a pointless Select in the main form with the same query:
(a) the main form
screen shot 2016-01-12 at 02 42 35
(b) the CRUD with a select that now actually shows options.
screen shot 2016-01-12 at 02 42 41

Also, I'm pretty sure the joins don't work in a CRUD_field, even with the useless select.
Thank you for your great work! 😊

@kingmatusevich
Copy link
Author

screen shot 2016-01-12 at 02 50 41
Here you can see what I meant when I said the joins don't work.

@perak
Copy link
Owner

perak commented Jan 22, 2016

@kingmatusevich

OK, this is two issues:

First one is because "kitchen" didn't automatically created subscription for "product" required by CRUD's insert form. Workaround is to refer that query in your page (page that contains CRUD) in related_queries. For example:

  "related_queries": [
    { "name": "product_query_name", "params": [ ] }
  ]

Second issue: CRUD currently cannot do what you are trying to implement - it's purpose is to enter simple data (not data from another collection) into array. However, it will be great to have this feature and I'll try to implement it.

@kingmatusevich
Copy link
Author

Great, glad to hear you are on top of it, I obviously think this is an awesome feature to have as well. Let me know if I can help you somehow.
Good work 👍

@kingmatusevich
Copy link
Author

I can confirm the workaround you posted (related_queries) does fix my issue with the subscription.

@kingmatusevich
Copy link
Author

Of course, the CRUD doesn't traverse the Join I defined with the productId and the rest of the product fields.

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

No branches or pull requests

2 participants