on 08-13-2014 4:36 PM
Hello everyone,
I am using toolbar buttons on ipad Screen, these buttons will come into popup menu on toolbar.
<Pop Up Menu>
---Button 1
---Button 2
---Button 3
---Button 4
When i am clicking first button it will call an action and there i want to decide which button i clicked...
depending on it next transaction processing will happen..
When i am clicking second button it should call same action and again decide which button i clicked..
...................................................................................................................................................................................
Right now i am using following,
call separate actions for separate buttons---->fill dummy transaction to save button name in object--->process it on next transaction screen
(since "Button1" will always call "Action1" i am saving hardcoded name from transaction and it is working)
But this solution required to create those many number of actions and transactions for number of buttons..
like in above case....4 Buttons--->4 Actions--->4 Transactions
...................................................................................................................................................................................
Is there any better approach to solve this problem..?
AK,
No, you are doing it correctly. There is no way to know which button was pressed if you run the same action for each one. I agree it is labor intensive, but there is no other way.
Jason Latko - Senior Product Developer at SAP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
AK,
Maybe I am missing something, what is the business case for this? If each button will ultimately call a different transaction why not just create actions corresponding to each different transaction and tie them directly to the buttons? Why go though an extra step of determining the button only to in turn use that to call a specific transaction?
--Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Moved Discussion to SAP for Mobile community. Not an SMP related question, but rather application developement in Agentry.
Regards, Mike (Moderator)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.