I’ve tried in many ways and followed the ERPNext tutorial for this field … nothing works, issue is the same.
I’ve done bench build and even upgraded erpnext … issue is the same.
Any idea what’s up ? I’m on a macOS with Safari browser.
UPDATE: Confirming it’s not working on Google Chrome neither… here’s what shows up in google chrome console:
Uncaught TypeError: Cannot read property 'fields' of undefined
at o.get_link_field (table_multiselect.js:137)
at o.set_formatted_input (table_multiselect.js:110)
at o.set_formatted_input (class.js:53)
at o.set_input (data.js:76)
at n (base_input.js:69)
at o.refresh_input (base_input.js:88)
at o.refresh (base_control.js:85)
at init.attach_doc_and_docfields (layout.js:325)
at init.refresh (layout.js:223)
at GridRowForm.render (grid_row_form.js:24)
If I understand correctly, you have a table in a table in a table? You can’t do that and that’s why you’re getting this error.
Nested table aren’t supported yet.
Hmmm … that’s not exactly what I wanted to achieve.
I have doctype “Dive guide” as a Table Multiselect field inside the doctype “Itinerary” - the doctype “Itinerary” is set as a table inside the Event doctype. This is the exact formula…
“Dive guide name” is put in “Dive guide” as a link field. “Dive guide” is put in “Itinerary” as Table Multiselect. “Itinerary” is put in Event doctype as table.
At some times, Editing the itinerary table in the Event doctype works but after saving the event and refreshing the page, the same errors in the browser console appear.
You should try the next solutions:
A) Put a hidden link field to the “Dive guide” doctype in your doctype
And, if that does not work,
B) Put a link field in the “Dive guide” doctype to the multiselect doctype (the one that has the multiselect)
I don’t know how the multiselect works and never saw it in use, but, from the code, i can tell that the error is there because your “Dive guide” doctype is not in the locals from frappe, i think that the A solution should put it there.
Thank you so much for taking the time to look into this… it means a lot.
For the solution, the “Dive guide” doctype has at this moment only one Link field point towards “Dive guide name”
I will try to add another hidden link as you said … trying it out both A and B options.
I can imagine the Table Multiselect is a new feature and it can have a bug the same as I discovered the one in Auto Repeat a few weeks ago… but it’s such an important feature haha