cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Personas - ignore script

shaun_kitching
Active Contributor
0 Kudos

Hi everyone

We are using SAP Personas and have a script which runs "after page refresh".

This is working perfectly. However, we have one button on our page and we do NOT want this script to run. Is there a way to turn off this script for this one button only?

Thanks
Shaun

Accepted Solutions (1)

Accepted Solutions (1)

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Is this button a script button? If it is, then you can include a statement in the associated script that stores a value using session.utils.put, and your onAfterRefresh script can query this value using session.utils.get - if the value is set, then don't run the rest of the onAfterRefresh script.

Make sure you are resetting (clearing) this stored value at each onAfterRefresh run.

If your button is not a script button, then you can replace it with a script button, doing the session.utils.put step, then pressing the original button.

Answers (2)

Answers (2)

shaun_kitching
Active Contributor
0 Kudos

Thanks guys!

cris_hansen
Advisor
Advisor
0 Kudos

Hi Shaun,


An example of the coding can be found in this wiki (ok, it is for a different event...).

Regards,

Cris