Yes.
For example, in the doctype, I want to store different type of documents, like shipment documents, POD documents etc etc.
I can have a field called category or type in the document table, but I was thinking if their could be some other way to get it done.
But yes, I need 2 different docfields, linking the same child table in the parent. Frappe can have this feature by adding ‘parentdoc’, ‘parenttype’ and ‘parentfield’ also maybe to get which field is mapped to this doc for better linking.
In this case if you are using same child table for more than one fields in parent than you can differentiate between child entry using parent field
But I guess you can also add a select field with type of attachments within a child table their is no need for 2 seperate child tables
As I told, I want to have inside the same parent only.
I really don’t understand how will your solution work. How will I differentiate them when both the fields belong to the same parent?
Type of attachment I also know but that is not the correct solution for it.