on 09-07-2016 11:44 AM
Hi,
I have a group of buttons that I would like to use the same script for their click event. In order to accomplish that, I need to identify which button was clicked. Is there a way to pass the GUID, or for the script to identify it, so the code can take the appropriate logic path depending on which button was clicked?
Thanks for your help!
Hi Jeff,
you can use something like this:
if (source.id === 'IDOFBUTTON1’){
// Button 1 was pressed
}
else if (source.id === 'IDOFBUTTON2’){
// Button 2 was pressed
}
Available Events for Scripting - SAP Imagineering - SCN Wiki
Good luck!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Merten,
Just what I needed!
By the way, I think I know the answer to this one already, but there is no way to change the Source ID for an object is there? I was a .NET developer before I moved into the SAP arena, so I'm used to a lot more control on naming, events, etc.
Thanks for your help!
User | Count |
---|---|
89 | |
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.