Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
"this" is "undefined" at frappe.ui.dialogue onchange. | GoodFirstPicks

"this" is "undefined" at frappe.ui.dialogue onchange.

frappe/frappe 0 comments 1mo ago
View on GitHub
mediumopenScope: somewhat clearSkill match: maybeFrappe / ERPNextPython

Why this is a good first issue

The issue involves a JavaScript context problem in a specific UI component.

AI Summary

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.

Issue Description

"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.

Context information (for bug reports)

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

Steps to reproduce the issue

  1. At Workorder click the Alternate Item button.
  2. Select alternate item in the table.

Observed result

Available qty will not change but the system has.

Expected result

Should show the exact qty.

Stacktrace / full error message

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

Additional information

![Screenshot from 2024-01-18 17-57-53](https://github.com/frappe/frappe/asse

GitHub Labels

bug

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!

Risk Flags

  • context-dependent
  • potential cross-cutting impact
Loading labels...

Details

Points20 pts
Difficultymedium
Scopesomewhat clear
Skill Matchmaybe
Test Focusedno