Skip to Content

SAP Personas 3.0 SP06 - onAfterRefresh script no longer working

We've upgraded Personas from SP05 to SP06 and I have a flavour that is hanging on execution. I've narrowed it down to a script attached to Screen Events>onAfterRefresh. The script skips the hidden active tab within Transaction IW32>Operations>General:

if (session.findById("wnd[0]/usr/subSUB_ALL:SAPLCOIH:*/ssubSUB_LEVEL:SAPLCOIH:*/subSUB_AVO_KOMP:SAPLCOIH:1206/tabsTS_1206").selectedTab.id === "wnd[0]/usr/subSUB_ALL:SAPLCOIH:*/ssubSUB_LEVEL:SAPLCOIH:*/subSUB_AVO_KOMP:SAPLCOIH:1206/tabsTS_1206/tabpKPVG") { session.findById("wnd[0]/usr/subSUB_ALL:SAPLCOIH:*/ssubSUB_LEVEL:SAPLCOIH:*/subSUB_AVO_KOMP:SAPLCOIH:1206/tabsTS_1206/tabpBDZO").select(); }

This helpful tip was provided as per below link:

https://wiki.scn.sap.com/wiki/display/Img/Hiding+the+default+%28active%29+tab+in+a+tab+strip

It has been working without issue with SP03 & SP05 however SP06 seems to have changed something and it is no longer working.

The script also works fine when executing manually however once it has been attached to a Screen Event the issue starts.

Any help would be greatly appreciated.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Feb 20, 2018 at 02:02 AM

    There may be an issue with onAfterRefresh - but in this situation, why did you use this event instead of onLoad like the KBA suggests?

    onAfterRefresh is executed after each roundtrip, and this is unnecessary to hide the default tab. It only hampers performance when done repeatedly.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.