a month ago
Hello,
I'm using the sap training developpement environement for SAP SCREEN PERSONAS. I have created a flavor for the SMEN and i'm trying to understand how to handle when a script is in error and how to get the hand back on my flavor so i can edit the script back and correct the error.
I have done on purpose an error on the onFinalize event of my flavor by calling a function with one missing parameter.
Even if i close this popup, the system tries de reprocess the script and i'm stuck in a infinite loop.
I'm using Chrome dev tool, i see the script calling onFinalize
Please provide me guidance on this because i'm sure there will be a case in real situation where this will happen...What can i do to to have the hand again on my flavor to edit it?
Thanks a lot for your time.
Regards,
Alexandre
Request clarification before answering.
Everyone,
I didn't found the perfect solution, like excluding the onFinalize event/script in the JS components but i've found ONE solution 🍾. The result of many hours trying things and debugging led me to this :
Check my breakpoint, at one point, you fall in this method when onFinalize is triggered (BE CAREFUL, this method is not triggered only by onFinalize so you have to check if it's the relevant http request you are handling). I've found out the t parameter contains a lot of things but mainly here, the faulty script that the framework try to load and raise each time an error!
You have to modify the t.body in the console of dev chrome tool. Right click on t.body -> copy content as literal then you open an editor like VLC, you paste everything and almost at the end of the file, you will see your script! you delete everything or you correct the anomaly. You put the correction back to t.body and you F8 in debug.
You do this every time (yes it triggers several times) until you reach flavor editor and then REMOVE the d*mn script associated to the onFinalize Event of the screen for you to apply corrections!
This led me to better understand chrome dev tools and how i can see/manipulate things so it's not a total loss of time.
I hope this will help others. Good luck
Alexandre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.