Open nev-21 opened 2 years ago
Hello @nev-21 , I'm facing the same issue. Did you find any solution for this?
me too hope to find a solution in v14
Hi @anhlevfx the only solution i found was to make frappe custom pages, but the docs are not well explained on how to achieve this, you have to read a lot of forums, and test some projects etc.
I leave the frappe project in favor of other frameworks for complex enterprise apps. Don't misundestand me, frappe is good, but not for enterprise complex app with high customizations needs.
Hi @nev-21 , hope that you will success with new framework. For now, I'm still using frappe for my project and maybe next versions can handle more complex cases. I try to not use child table of child table for my doctypes.
Any update here, is there anyway we can achieve this?
@stockarea st I think you should change your schema. Child table of child table is not best practise.
If we were to encode Subscriptions inside the Quotation DocType (which I'm doing as there is no direct support for it currently within ERPNext), I fall into this use case:
This would be successfully (and correctly, I'd argue) modeled by nesting child tables such as:
Quotation
└ Quotation Subscription (child table of Quotation)
└ Quotation Subscription Plan (child table of Quotation Subscription)
I do not see a reason to consider this as an antipattern by default, and I hope it will be covered by Frappe soon.
what frame is that? for personal ref.
@rmehta implemented this here but it was never merged maybe you can look into the code and see how it was done and do it in your custom code. #2917
@rmehta said last Frappeverse that never found a strong use case for merge that kind of infinite recursivity.
I think it would be helpful on many cases like :
Description of the issue
Can't use a child doctype inside another child doctype. Inside a parent document I click edit button in boxes grid, and i can’t edit it ( because the child table has a Table field).
Context information (for bug reports)
Frappe 13.34.0 Frappe 14.0.0-beta.4
https://user-images.githubusercontent.com/89469783/178801717-11267424-ec6d-4578-aa3d-59b15a4f37d4.mov
Output of
bench version
Steps to reproduce the issue
Observed result
Cant open sub-form of the child-table when the child-table has another child-table field.
Expected result
allow to open the sub-form and then edit the sub child table field list.
Stacktrace JAVASCRIPT / full error message
Additional information
Discuss: https://discuss.erpnext.com/t/child-table-of-a-child-table/92008?u=nev-21