Hi,
I need to get the value of the bookmark returned by the standard command SAVE_BOOKMARK. I'm calling this command by the following javascript code, but I can't get the bookmark value (it is shown at the top of the page). Any idea?
Thanks in advance. Regards,
Fabio.
function executeJS_SAVE_BOOKMARK_EAABA( currentState, defaultCommandSequence ){
//Note: information can be extracted using the parameter 'currentState'
// and 'defaultCommandSequence'. In either case create your own object
// of type 'sapbi_CommandSequence' that will be sent to the server.
// To extract specific values of parameters refer to the following
// snippet:
// var key = currentState.getParameter( PARAM_KEY ).getValue();
// alert( "Selected key: " + key );
//
// ('PARAM_KEY' refers to any parameter's name)
//Create a new object of type sapbi_CommandSequence
var commandSequence = new sapbi_CommandSequence();
//Create a new object of type sapbi_Command with the command named "SAVE_BOOKMARK"
var commandSAVE_BOOKMARK_1 = new sapbi_Command( "SAVE_BOOKMARK" );
//End command commandSAVE_BOOKMARK_1
//Add the command to the sequence
commandSequence.addCommand( commandSAVE_BOOKMARK_1 );
//Send the command sequence to the server
if(!(typeof (event) == "undefined")){
event.returnValue = true;
event.cancelBubble = false;
}
return sapbi_page.sendCommand( commandSequence );
}