Hello
On the Salesforce platform, we are trying to dynamically add entries to combos in editors for various components (Scheduler/Taskboard/Calendar). I've added a picture to show what we're trying to do (ie when a user types in the letters 'an', we want to dynamically add other options on the dropdown by adding these options to the store. We've already gotten it working for our Grid - but we've hit problems when trying to adopt the same solution for the other components (all of which use event editors).
However in doing so we are getting a crash from the Bryntum bundle we use (all.lwc.js). The error is TypeError: Cannot read properties of undefined (reading 'get')
I've added a picture of the stack trace. Specifically it crashes on line 35242 on
existingItem = idIndex.get(id)
. It crashes because idIndex is undefined and idIndex comes from me.idProperty which is declared at the top of the splice method.
The code we're trying to write is very simple - we just want to add a record to the combo box store dynamically. ie
config.listeners = {
input: ({ source, value }) => {
source.store.add([{ name: 'testy' }]);
};
Unfortunately we've not been able to yet replicate this on the Bryntum forums - but we will keep trying and we were wondering if anyone here had any immediate ideas as to what was going wrong (AKA - why would the 'me.idProperty' inside the splice method suddenly be undefined when we try adding new records to this store).
Thanks!
Philip