-
Notifications
You must be signed in to change notification settings - Fork 440
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
Nested widgets #25
Comments
Ok |
Thank you, looking forward to it 👍 |
You could put here of the code of your "view"? |
I tried to implement the nested manner, but couldn't get it to work the way I wanted so I fell back to one level for now. Here's could be hypothetical scenario: I need to be able to add multiple HOUSES to the PERSON on the first level; and then add ROOMS to the added HOUSES on the second level. So basically HOUSES would have a foreign key 'person_id' and ROOMS would have a foreign key 'house_id'. The idea is exactly what you have in the first image "Create Nested Items" I just need to know how to implement that type of logic, how to go "deeper" in levels. |
looking also forward to that example code |
Any updates on this? :) |
also waiting and checking evryday :) |
yeah... same here :D |
Its done? I need to go depeer in levels too... |
Could you post the code where you save the nested widgets in controller (actionCreate/actionUpdate)? That would be greatly appreciated, thank you. 👍 |
will post when I get it working ... |
OK I've posted an example in the Wiki. Please note that the code has changed from the post above. |
@cloudcaptain Thank you very much!!! Working nicely now :) 👍 |
Suggest closing this issue - reference Wiki. |
@cloudcaptain i refer to the link you provide above. still cant solve my problem. i got same index for all dynamic item. i have posted my question here(http://stackoverflow.com/questions/37432267/same-index-for-all-dynamic-items-nested-dynamic-form-yii2/37492882#37492882). wish someone can help me. thanks |
Could you update the "Hypothetical Scenario", "View" and "Controller" to show how to use the nested widget functionality properly?
I'm having trouble figuring out how to save/update nested widget values properly reflecting their relations.
The text was updated successfully, but these errors were encountered: