cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Accessing the Session/Personas view in HTML view

mkanungo
Explorer
0 Likes
590

Hi Team,

we have created one HTML viewers in SAP Personas and scripted html to bind that HTML viewers so everything is working as expected but we are not able to access session into that HTML viewer.

By using this session , we want to call Transaction codes.

For example , we have one button in HTML , on click of that button , we want a new Tcode (IW38/IW28) to be called and navigate to another flavor.

Thank you.

Accepted Solutions (0)

Answers (1)

Answers (1)

oskarszandersons
Product and Topic Expert
Product and Topic Expert

Hello,

If I got it right, you want to use Personas Scripting API session.callTransaction method from script which is running inside iFrame container in HTMLViewer control.

In general it is not possible to access parent window resources from inside iFrame.

You might try setting up window.postMessage based communication channel between application inside iFrame and parent window as far as you are developing that application. Check: https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage

Then you could execute session.callTransaction script in parent window, when specific communication message is received from iFrame window.

Regards,

Oskars Zandersons