-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I am using the ExitIntent widget on a form that has a Reference Selector that opens a Page and when clicking the selector to open the page the following exception occurs:
TypeError: Cannot read properties of undefined (reading 'listen')
at mxui.js?637722670870517337:formatted:14534
(anonymous) @ mxui.js?637722670870…337:formatted:43480
(anonymous) @ mxui.js?637722670870…337:formatted:43448
log @ mxui.js?637722670870…337:formatted:43448
error @ mxui.js?637722670870…337:formatted:43442
(anonymous) @ mxui.js?637722670870…337:formatted:43424
In Chrome Developer Tools the code in mxui.js where the exception occurs is the e.listen line below:
1636: (e,t,n)=>{
Object.defineProperty(t, "__esModule", {
value: !0
}),
t.openSelectPage = function({selectionMode: e, initialSelection: t, pageSettings: n, datasourceConfig: o, currentObjectId: a, constrainedBy: s, onSelectionChange: c}) {
const l = (o.constraint || "").replace(/\[%CurrentObject%\]/g, a)
, u = (0,
r.createPageSelectionTopic)();
window.mx.data.getBacktrack(a, s, ((a,s)=>{
(0,
i.openPage)(n, {
abortOnClientValidations: !1,
abortOnServerValidations: !1,
currentForm: null,
formParams: {
initialSelection: t,
pageSelectionTopic: u,
listViewSelectionMode: e,
dataSourceMixin: {
extra: {
constraint: s ? a + l : "[0=1]",
offlineConstraints: o.offlineConstraints
}
}
}
}, {}).then((e=>{
e.listen("commit", (e=>{
const t = (0,
r.readTopic)(u);
(0,
r.removeTopic)(u),
void 0 !== t && c(t),
e()
}
))
}
), window.mx.onError)
}
))
}
;
var i = n(4204)
, r = n(245)
}
I have tried debugging it but in the obfuscated JavaScript it's pretty tough to figure out what is happening but I presume the way that the page for the Reference Selector is opened by the widget handler is not passing the required object parameter.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels