cancel
Showing results for 
Search instead for 
Did you mean: 

DOM Manipulation in SAP Sreen Persona

Former Member
0 Kudos

Hi Experts,

Can i use dom manipulation statements in scripting for SAP Screen Personas. like if i want to style the header in the table in Persona can i put dom manipulation code in various events like Initialize onBeforeRefresh to change the css style.

like document.querySelector(".classname").style.color = "red";

document.querySelector(".classname").style.fontWeight = "bold";

I implemented it in scripting code but it did not work. Can you please guide me.

Accepted Solutions (0)

Answers (2)

Answers (2)

alexandreourth
Active Participant
0 Kudos

Hi Saket,

I'm trying to do the same thing as you. My goal is to use "mouseover" and "mouseout" events on a label field. If i find the good syntax, i'll let you know. If you succeed first, please share on this post.

Regards,

Alexandre

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Technically speaking, DOM manipulation is possible - but it is not recommended because such scripts do not work outside the browser, i.e. if the flavor is running in SAP GUI for Windows or Java. Therefore, we don't have a guide or KBA for doing this.

Former Member
0 Kudos

I tried doing DOM manipulation using scripting and launch the apps in browser but it did not work. Can you please tell me how it's done in persona scripting