Hi
I have notived that in 2004s that the new Button Group web Item allows the user to assign commands. eg: Bookmark. It does however not allow the user to assign an image instead of a Button. Yes, my client wants an image rather than a button.
It is also possible to insert an image however I have not been able to assign a command to an image. One of the configurable attributes of the Image is "onclick"
I was wondering if it is possible to assign a command to this attribute?
I have tried unsuccessfully to generate the code for bookmarking using the "script" menu item and then assigned this javascript to the image "onclick" attribute however this has not worked.
If anyone has used this functionality I would appreciate your input.
The following code is generated from the script meu item for Bookmark.
function Bookmark(currentState, defaultCommandSequence)
{
var commandSequence = new sapbi_CommandSequence();
//Create a new object of type sapbi_Command with the command named "EXPORT"
var commandEXPORT_1 = new sapbi_Command( "EXPORT" );
//End command commandEXPORT_1
//Add the command to the sequence
commandSequence.addCommand( commandEXPORT_1 );
//Create a new object of type sapbi_Command with the command named "SAVE_BOOKMARK"
var commandSAVE_BOOKMARK_2 = new sapbi_Command( "SAVE_BOOKMARK" );
//End command commandSAVE_BOOKMARK_2
//Add the command to the sequence
commandSequence.addCommand( commandSAVE_BOOKMARK_2 );
//Send the command sequence to the server
return sapbi_page.sendCommand( commandSequence );
}
I have assigned the javascript function to the onclick attribute and it is not currently working?
Does anyone have any ideas on how I can realise my clients business requirement?
Thanks in advance!