on 2023 Jun 26 7:53 AM
Hi experts,
I have created a custom page where the user can create a new entity using a deep insert. (see attached files for "NewScenario...")
The process should now be following:
The first two steps are working but the other two are not.
I know that I could trigger an AJAX call manually for the PUT request. But actually I want to use the implemented methods.
What I tried so far:
But unimportant what I do, I get following error:
Failed to read path /name - TypeError: Cannot read properties of undefined (reading 'split')
Can you guide what is wrong or what I need to change?
regards
René
Request clarification before answering.
Hi René,
Error "Cannot read properties of undefined (reading 'split')" occurs when 'split' method is called on a variable storing an 'undefined' value.
Solution:
We should ensure that we only call the 'split' method on strings; check if the variable is a string before calling 'split'.
typeof operator can be used to check if variable stores a string(before calling 'split').
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
59 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.