I have a Child Table with a field I would like to use to create connections on to another Doctype. However, I can’t figure out how to get it to work properly.
Here is the relevant part of my Child Table, which highlights the
store field (the field I want to link on):
I have another Doctype called “Dividers Store”, and I want to add a “Connections” category to this field, like so:
However, I can’t get it to work (the above screenshot was taken before I placed the field in a Child Table).
When I edit the “Dividers Store” Doctype and scroll down to “Linked Documents”, I can add connections to Link fields here. However, I can’t get Child Tables to work, even though the interface appears to be designed to handle them. Here is my attempt:
The field in the “Dividers Store Waiting List” is called
stores; it contains a Child Table called “Dividers Store Waiting List Stores”, with the field
stores - the field I want to create connections on. When I attempt to save this, I get the following error:
AttributeError: ‘DocType’ object has no attribute ‘get_field’
If I switch the “Link Fieldname” and “Table Fieldname” field values, I get the following error:
Row #2: Could not find field stores in Dividers Store Waiting List Stores DocType
What am I doing wrong?