I have a use case . A pallet can have many boxes, a box have many products.
Pallet Box: Child Doctype of Pallet
Box Product: Child Doctype of PalletBox
Inside a pallet document (record) I click edit button in boxes grid, and i can’t edit it.
Pallet box has a Table field (that points to Box Product) when I delete that field it allow me to click on edit and form opens.
Is there a way to view a child doctype inside a form of another child doctype?
@nev-21 Based on the JS trace that you posted on github, I can see that the error is about bulk edit. So try to edit Box doctype, edit products table, scroll to the bottom and check Allow Bulk Edit option then give it another try.
This is not supported.
Maintainers will tell you it is a bad design (which I wholeheartedly disagree with).
But they come up with even worse design to overcome this lack of feature; like having to duplicate stock entry line when consuming multiple different item batch. Or setup sibling lists in BOM to define Operations and Items, when it would be so much more user friendly to see Items required underneath each Operations…
Thanks for your reply @guimorin, I understand now.
I achive to connect to one-to-many doctypes ( withouth child table checkbox) using Link field, and connections, but the UX is bad because user has to make too much clicks to se the content of boxes and return to see what was the pallet he was seeing.
So I think I will not use frappe frontend (maybe the backend) this is a basic need for any system specially CRUD based ones. Appart from the fact that doctypes layouts have bugs and the lack of documentation of how to use them, and how to develop custom pages.
@nev-21 There is a way to do what you want and view the products of each box when you click on edit but you can’t modify the box products.
To do that you will need to create on doctype, besides the 3 you already have, to use as the child table for the Pallet doctype and you will also need a client script for this child table that gets the Box you have selected and list down the products in that box.
If that is OK with you, please let me know so I provide you with the child table doctype fields and the related client script.