1
Input Field Crash - "Cannot read properties of undefined (reading focused)"
complete
C
Chris Revell
App: 276942
Pages: 25
Unsure whats changed and cannot see the underlying fault. So any assistance would be appreciated :)
When we pass an app variable back to an input field then selecting the same or another input field the app crashes with the attached.
The page variable/input field is set correctly from the passed app variable its only after when selecting another field that it crashes which is weird.
The fields in question are with the varilables: pageVars.ProductQTY and pageVars.ProductSalePrice and have values returned from page 21 (calculator).
I tried replicating the issue on another test application but was unable.
The error relates to reading focused??? which we arent setting upon return. Just attempting to set focus to as part of the tap to input field.

Log In
T
Timo Kapanen
complete
Mobile has been addressed in 4.7 preview version and web in 4.8 preview version
C
Chris Revell
Timo Kapanen Erkka Virtanen
Hi Guys, I've managed to isolate the underlying issue and have replicated it to another App so that you guys can confirm ID: 471346
The fault is caused by the 'Show Spinner' on Paged Focused event. When there is a 'Show Spinner' the page variables are disconnected from an input field.
Thanks for your persistence, our App is somewhat complex so isolating all the possible variables took some time.
T
Timo Kapanen
Chris Revell: thanks for your effort on isolating the bug and creating a test app. We have added this to our development backlog.
T
Timo Kapanen
in progress
C
Chris Revell
Hi Timo Kapanen there still appears to be an issue with the input fields.
The app no longer crashes which is great, however after returning from from another page the input fields appear to be disconnected from their variables. Changing any value doesn't reflect in the Debugger nor when passed to another page - the value however visibly changes on the mobile preview.
I've isolated the issue to the page focused flow function. It only occurs when the page focus flow is connected - I've troubleshooted it down to page focus and the first 3 'IF conditions' however the issue still occurs - not sure how an if condition could be causing this given it makes no reference to any of the input fields in question??
T
Timo Kapanen
Chris Revell: we'll look into this new issue which surfaced. BR, Timo
T
Timo Kapanen
complete
T
Timo Kapanen
Hi Chris Revell, we have addressed this issue in the new 4.6.11 preview version. BR, Timo
E
Erkka Virtanen
planned
C
Chris Revell
Erkka Virtanen: Hi Erkka, I'm not sure if the latest runtime 4.5.7 was addressing this issue:
"Fixed issue with app crashing when entering an input field"
If so it unfortunately hasn't in this case. Thank you
T
Timo Kapanen
under review
E
Erkka Virtanen
Hi Chris Revell! Would it is possible for me to get some testing credentials for your app to investigate this further? Best Regards, Erkka Virtanen
C
Chris Revell
Erkka Virtanen: Hey Erkka, thanks. I've emailed through credentials and steps. I wasn't sure of your email address so have emailed Timo and cc'd your address as a guess - it bounced so must not be correct :)
I've asked Timo to forward them through if thats okay. Thank you.
C
Chris Revell
The flow is basically:
Tap Calculator Button - Pg25
- Set pageVars.PassedQTY to true
- Set appVars.TempObject1 to data.ProductItem
- Open QTYEntyPage (Calculator) - Pg21
Tap Ok Button - Pg21
- Set appVars.TempQTY to sum of the calculated qty on this page
Pg25 - Page Focused
- If appVars.TempQTY not empty
- If pageVars.PassedQTY = true
- Set pageVars.ProductQTY to appVars.TempQTY
- Set various appVars to blank and hide the spinner
The pageVars is successfully set from the returned value. Then tapping in an input field the app will crash.
E
Erkka Virtanen
Chris Revell: Hi Chris! I got the testing credentials and the step-by-step instructions! Unfortunately, I was still unable to reproduce the issue. After the 7. Step, after using calculator, inputting a qty, pressing 'Add' and then pressing OK, the app doesn’t crash but returns to the Started Orders page. Have you updated the app recently? This needs a bit more investigation. Best Regards, Erkka Virtanen
C
Chris Revell
Erkka Virtanen: Hi Erkka, it sounds like you may be testing from a web browser? If so the flow doesn't work the same and wasn't intended for use.
If you test from a mobile phone after returning it should display the product page to complete the entry and save the product to the order. Ill email through a video showing the issue.
E
Erkka Virtanen
Chris Revell: Hi Chris! Thank you for the clear video! I was now able to reproduce the issue on an android device. Indeed, after using the calculator and clicking on an input, the app crashes. I will now try investigate the root cause and post an update here when I have more information. Best Regards, Erkka Virtanen
E
Erkka Virtanen
Hi! Sorry for the late response, but this issue has now been forwarded to our development team and they are investigating it. Thank you for your report! Best regards, Erkka Virtanen
Load More
→