on ‎2022 Jan 31 9:29 AM
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.
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.