on 09-05-2013 4:30 PM
Hi All,
I have created different flavours for the same transaction and would like to access each one of them from a click of a different button on the same screen.
I understand I can have only one default flavour. How can I specify which flavour to call for the same transaction when I am clicking a particular button? I checked the button properties. Couldn't relate anything to specific flavour.
Regards,
Manu
There is currently no way to associate a flavour with a button, or to choose one from a script, unfortunately. I think it would be a useful ability to add, but it isn't there right now.
Steve.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, that should work and is a nice workaround. I might use the idea myself! It isn't foolproof, though, if users can switch flavours themselves and/or set a different default from the one you want. I'd still like to be able to select a flavour in a script.
It also has implications for security roles and their maintenance and for GRC if you use that. Those aren't necessarily trivial.
Steve.
Try this JS to open the URL in the same window.
window.open("www.youraddress.com","_self")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manu,
thanks for your solution, we tried it and it works fine!
But using this JS another problem is raising. The flavor is starting in the same window, thats fine, but there is no more possibility to navigate back (to the starting flavor). Obviously the "stack" is lost due to a new session is starting (in the same window). I think this is a perfect solution if your use case requires just this behavior described above.
But if you need the "normal" back button to navigate back to the calling application, this JS won't work.
WBR
Tibor
Thats true Tibor. It completely refreshes the memory of the session.
A Back button with previous transaction might be useful in some scenarios, but again it's a work around. I believe if you are using the latest version of Personas, use the property Switch Flavor.
SAP has provided it now. The above solution was something I tried because of the limitations in the product earlier.
I hope it helps.
Regards,
Manu
Hi Steve,
Found another way to open another flavour for the same transaction. We can generate shortlinks for each flavours we want, in the admin transaction and use a script button with the URL to open the particular flavor. To open in the same window, used Javascript.
Regards,
Manu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The current Personas, 2.0, doesn't use Javascript for scripting (mostly), so not knowing it isn't a problem! There's lots of information here on SCN about Personas and its capabilities. Start with document and my blog and go from there. If you have any specific questions, don't hesitate to ask - create separate discussions here for your questions so that others can find them and the answers more easily.
Knowing Javascript will be more important with Personas 3.0 but that's not generally available just yet so you have a while to learn.
Steve.
Hi Parvez,
please have a look here...
http://scn.sap.com/message/15346101#15346101
There I posted a simple solution for your problem.
WBR
Tibor
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.