The issue involves a JavaScript context problem in a specific UI component.
The issue describes a JavaScript context problem where 'this' is undefined in the frappe.ui.dialogue onchange method, specifically affecting the 'table' fieldtype in the Workorder feature. The fix likely involves ensuring proper context binding in the onchange handler, but the exact scope and impact are not fully clear.
"this" is "undefined" at frappe.ui.dialogue onchange. if we select fieldtype as 'table' then "onchange" defined inside the fields of fieldtype 'table'. then not able to get data.
It is affecting the feature alternate item choose table of Workorder.
Error message browser
utils.js:411 Uncaught (in promise) TypeError: this.get_value is not a function
at onchange (utils.js:411:30)
at o.df.onchange (grid_row.js:1095:33)
at base_control.js:245:50
Available qty will not change but the system has.
Should show the exact qty.
utils.js:411 Uncaught (in promise) TypeError: this.get_value is not a function
at onchange (utils.js:411:30)
at o.df.onchange (grid_row.js:1095:33)
at base_control.js:245:50
![Screenshot from 2024-01-18 17-57-53](https://github.com/frappe/frappe/asse
Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!