cancel
Showing results for 
Search instead for 
Did you mean: 

OnStatusMessage - Throwing error

0 Kudos

We have just assigned an empty script to OnStatusMessage event in our flavor. Now when we try to navigate to that flavor we are getting the below error.

Cannot read properties of undefined (reading 'cs').

Please check the screenshot below.

Please help me how to resolve this error.

I am using SAP Personas 3.0 SP-13.

Accepted Solutions (1)

Accepted Solutions (1)

kmagons
Advisor
Advisor
0 Kudos

Good day!

Please see my comment on the other question: https://answers.sap.com/questions/13474752/standard-error-messages-are-not-displayed-in-new-f.html#

Thank you!

Best regards,

Krists Magons

Answers (1)

Answers (1)

kmagons
Advisor
Advisor
0 Kudos

1) Please make sure your SAP Screen Personas SP13 installation is fully up-to-date. Got to /PERSONAS/ADMIN transaction > Health Tool > Notes and make sure all the relevant notes are implemented.

2) Then please clear the flavor and MIME caches /PERSONAS/ADMIN transaction > Health Tool, From the Application menu select: Health Check > Cleanup > Clear all caches

3) If the issue still persists, please create new BC-PER incident ticket, consider opening an HTTP support connection and attach exact steps on how to reproduce the issue. We will have a look.

Thank you!
Best regards,

Krists Magons

0 Kudos

HI,

We have raised an incident to SAP and SAP have provided us with a note after analysis and now its not throwing the previous error. But still I am not able to collect the standard error messages which are getting cleared due to tab merging.My currentscript attached to OnStatusMessage is below:

Could you please let me know if w are missing anything.

var message ;
message = "";
session.sendCommand("IW31");
message = session.findById("wnd[0]/sbar").text;
if(message === ""){
    session.utils.alert("empty");
}
else{
session.utils.alert(message);}