Commands assignment to Images

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!

Fortunately I have found the solution:
The XHTML is as follows:
<!--
<p >
                <img onclick="executeJS_SAVE_BOOKMARK_XSLT120( )" alt="Bookmark" src="bwmimerep:///sap/bw/Mime/BEx/Icons/bookmark.gif" border="0" />
            </p>
            <p >
                <bi:SCRIPT_ITEM name="SAVEBOOKMARK" designwidth="300" designheight="70" >
                    <bi:SCRIPT value="biLargeData:3OPOSR8V8QD28TPCWD4GII60G" />
                </bi:SCRIPT_ITEM>
            </p>
        </body>
    </html>
</bi:bisp>
-->
<b>Please note that the executeJS_SAVE_BOOKMARK_XSLT120( ) is taken from the javascrript generated from the script item:</b>
The javascript from my script item is as follows:
function executeJS_SAVE_BOOKMARK_XSLT120( 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
    return sapbi_page.sendCommand( commandSequence );
Message was edited by:
        Ian Carbonel
Message was edited by:
        Ian Carbonel

Similar Messages

  • How to assign dynamic image at runtime or on Button Action to a Image UI

    Hi,
         Please let me know is it possible to assign Dynamic Images to Image UI element in a Visual Composer applications. Using Image Manager it is possible, but in my case Image Source i.e URL comes from ABAP RFC, so is it possible to assign Image at runtime.
        Please do let me know is it possible or not, If yes please do share your opinions.
    I am able to show image using HTML Page by passing URL at runtime to HTML page but here, I cant control the Image width & height.
       I am checking for possibility of using some script to manage width & height.
       Thanks a Ton.
    Regards
    Tushar

    Hi,
         Any inputs for the Query? Atleast, If I get some hint, will do to proceed....
    Regards
    Tushar Shinde

  • Script to Assign an image to an image object

    Hi,
    I am using FormCalc and and created an image object in my form to which I would like to assign an image based on a user selection in another drop down field. In other words, a script is attached to the drop down field that selects (perhapse using file location) the image that is displayed in the image object based on the user selection. I would greatly appreciate help on the FormCalc syntax to achieve this. Thanks

    You might want to ask this in the LiveCycle Designer forum here, if you haven't already.

  • Will the assignment of image to a parked document trigger event FIPP.Change

    Hi All,
    We are developing a workflow that has some integration with SAP ArchiveLink. The workflow waits for a scanned image to be assinged before the Parked Document can be released. For this i'm using a wait for event step that waits till the event FIPP.Assigned is raised. And once the event is received the release process is carried out.
    Will the assignment of image trigger event FIPP.Changed? If yes, how do I determine whether an image is assigned or not to a Parked Document? Can I determine by looking at the link table TOA01?
    Please let me know your thougths.
    Thanks,
    Mustajab

    I would think it will not - but why don't you turn on the event trace (SWELS) and find out (SWEL). Image.Assigned is more likely to be triggered.

  • Preprocessor command, assigned the variable and then compare the variable to int. How can I get around this?

    #define ON 1
    #define OFF 0
    in seperate code
    int variable = ON;
    variable is globally define for that module.
    in seperate code
    if (variable == ON)
    the complier errors off on the if (variable==ON)
    My guess variable is variable in of type int and ON is a preprocessor command. Therefore it is a mismatch and complier doesn't like it. How can I get around this.
    thank
    Mahen

    Mahen
    What is the exact message of the compiler?
    I think the error is, that the compiler does not find the definition of ON
    and OFF. Is it in the same source file?
    If not, try to put it into an .h file and include it where you need it.
    Stephan
    "Mahen" schrieb im Newsbeitrag
    news:[email protected]..
    > Preprocessor command, assigned the variable and then compare the
    > variable to int.
    >
    > How can I get around this?
    >
    > #define ON 1
    > #define OFF 0
    > in seperate code
    >
    > int variable = ON;
    > variable is globally define for that module.
    > in seperate code
    > if (variable == ON)
    > {
    >
    >
    > }
    >
    > the complier errors off on the if (variable==ON)
    > My guess variable is variable in of type int and ON is a preprocessor
    > c
    ommand. Therefore it is a mismatch and complier doesn't like it. How
    > can I get around this.
    > thank
    > Mahen

  • GUI Command Assignment

    I read the article about Java ME Guideline: GUI Command Assignment at this url:
    http://developers.sun.com/mobility/reference/techart/design_guidelines/command_assignment.html
    However, at solution description, it is suggested that "ad-hoc GUI library implemented on top of a standard Canvas object". I do not understand why "on top of Canvas object"? Since the problem roots from the implementation of MIDP high level UI components like Items or Screen, the ad-hoc GUI library should reside on top of the MIDPhigh level GUI components like ALert, List,Form, or Textbox, instead of low level component like Canvas object.
    Please correct me if i am wrong, and thanks a lot for your help.

    The problem is that the high level GUI cannot be customized to look exactly like you would want it to, and there's no way to change this.
    So, in order to create an application that will look the same on many different devices, you have to write your own GUI library which will be customizable and exactly to your liking. To ensure this, you have to draw all the components yourself, using only the standard drawing methods of the Graphics class.
    Unlike the high level screens, the Canvas class gives you a way to draw directly on the display, using an instance of Graphics.

  • WAD BI commands on an Image

    Hello everyone,
    I have a WAD template with a report including several queries. These queries take an initial value for calendar year/month, so that when you try to access the report, you are taken first to a screen where you give the year/month value you wish to see, and then you are taken to the report. I also have inserted an image on this template. I am looking for the following functionality: whenever a user clicks on the image, a popup window opens in which he can change the year/month value, thus affecting many (or all) of the elements found on the report.
    I know how to do this using Web Items from WAD, and the command I use when using these is called "OPEN_VARIABLE_DIALOG". But since this is a BI command, I was wondering if it was possible to assign it to the image or if there is a workaround for this. I tried simply writing the command on the "onclick" property on the image, but it did not work. Looking at the forums, I could not find much about this, except for someone who wanted to do this same thing but then replied to his own thread saying that it was working already, without giving details of how he had done this.
    Any suggestions?

    Display first your image on an invisible label. Once displayed you can get the size of the image and you can redimension it as you want.
    Bye Alessio

  • Key Commands - Assignment not working?

    I'm trying to add key commands to have everything 'at hand' but they get listed and don't work.
    Example:
    I open key commands, search for 'automation', select "View Track Automation" and assign it 'Control + T'. It's in there, it is also in the arrange window's view menu. But when I type 'Control + T' nothing happens.
    Still works in the pull down menu.
    Am I missing something?

    Im having a similar problem. i assign apple space to the 'play from beginning' command but it doesnt work. im following the instructions in a the martin sitter logic pro book so i dont believe im doing it wrong.
    if it was already assigned to something else then why would it let you assign it to a different command?
    anyhow, its clearly not in my case - when i press the keys all that happens is the cursors toggles to scissors. in fact it does that when only press the apple key. So its just ignoring my assignment, is it?
    of course, i know it doesnt 'ignore' it in the irrational sense i imply - there must be a reason. i want to know what it is.

  • My iPhone caller image is still appearing full screen instead of in the right-hand corner,even though I've assigned the images to them on my mac.

    I had originally assigned images to my contacts through my iPhone which made them appear full screen when recieving/making a call, but now I want the images to appear in the top-right corner. I've assigned all new photos to override the old photos through my Address Book on my Mac, but they still continue to be full screen. Can anybody please explain to me what's going on? I'm an intermediate-advanced user. Thanks!

    You did not try what I provided. There is a difference between syncing and replacing.
    As with MobileMe, there should be an option with iCloud to replace info on cloud with what is available in the Address Book - all at once. This may not make any difference in this regard.

  • Edge Animate command - not exporting images

    I've installed the Edge Animate command extra for Fireworks and have a series of png's each in it's own state - set to 'include when exporting.'
    When I use this extra (using any of the export options) either only one png is created or none are. All the other relevant html, edge and js files are created. Even an image folder is created, but no series of images. Therefore, my animation isn't exactly an animation with only one image.
    What could I be doing wrong?

    These images are all 404 not found on server:
    http://www.ivanrowe.co.uk/images/lily.png
    http://www.ivanrowe.co.uk/images/facebook.png
    http://www.ivanrowe.co.uk/images/flower.png
    http://www.ivanrowe.co.uk/images/grass.png
    Try uploading your images folder again.
    Nancy O.

  • Windows Image Deployment - WinPE - Execute Command After Server Image Deployment but Before WinPE Reboot

    Simplified version: Execute command in WinPE after server image deployment but before WinPE reboots.
    I have a custom ISO with a boot.wim and install.wim for deploying Windows Server to our environment. Our environment does not allow DHCP and we have no static IPs available at build time so this will all be done with no internet connection during all phases
    of deployment.
    We have a custom HTA form that generates an XML file based on user input and stores it on the RAMDisk during WinPE. How can we move this XML file from the RAMDisk to the deployed Windows Server image?
    Thanks in advance, Tim

    I believe you should be able to do this during the offlineServicing configuration pass.  You would just need to add into your answer file a command or script to copy from the XML file over to the newly created C:\ drive.  
    I don't have System Image Manager installed on the computer I'm using but if I recall there is a spot during the offlineServicing pass to execute custom commands. You would just add your script path there, the WinPE system drive letter is
    X:\ , and I think the target drive letter Windows is installed to might change depending on how many devices you have hooked up so do a test install and hit SHIFT-F10 , from there you can run diskpart > list volume to see where the new Windows
    install is located. 
    Another alternative could be using a USB drive as your install media, then you can run a script during offlineServicing to copy that XML over to the USB drive.

  • Assigning different images for textures

    Hi everyone.
    I was wondering if it's possible to assign different textures at the start of my program and use a random number generator to select which image gets loaded onto the object i'm creating.
    I'm using the TextureLoader facility to load the textures and call it by saying
    Texture tex1 = new TextureLoader( "image.jpg", applet ).getTexture();
    Is it possible to do this.
    I need help please.
    Thanks a lot.
    Sharon

    String[] selImage, images = {"Image1.jpg", "Image2.jpg", "Image3.jpg"};
    selImage = images[ (Math.random * 3) - 1 ];
    Texture tex1 = new TextureLoader( selImage, applet ).getTexture();Does this help?

  • Assign signature image to imported digital signature

    I have a user who needs to be able to digitally sign documents for the State while using either his desktop or his laptop.  We have the desktop Acrobat X configured properly, where when he digitally signs a document, the signature image is included in his digital certificate.  To set up the signing on the laptop, I imported the .pfx file into Acrobat X on the laptop under Tools -> Sign & Certify -> More Sign & Certify ->Security Settings -> Digital IDs->Add ID-> from a file, where I browsed to the .pfx file.  I added the signature image under Edit->Preferences->Security->New where I imported the .bmp signature image exactly as I did on the desktop.  However, when he digitally signs a .pdf on the laptop, it just has a generic image of his name, not the signature image.  Where am I failing?

    When you sign, you should see where you can select the signature appearance name from a dropdown in the dialog.

  • Apple Script command on background image

    Hello,
    So the thing is.
    I want to creat this apple script that would react only when i switch to a certain space.
    I searched in the interent and found out that the Mac has no easy way of finding out, on which space it is on, so my questions is.
    Would it know what background image is on that space, so that if I changed to a certain space, it would recognise the background image file, and run my script.
    I have just thought of this my self, so I will be testing too.
    But I wanted to know if anyone one els out there has thought of it first and found an answer.
    Thank you

    Please consider submitting an enhancement request to Apple, requesting that information on the spaces be made available to applications and scripts.

  • Command for Images in the WAD 2004s

    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.
    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 );

    Hi Ian,
    please tell us why you marked this question as answered. If found a way to do what you wanted to do, please post it, as it may help others who have the same question. Like me, for example, I want an image to show a popup window similar to the one shown when you create a button group and assign one of the buttons the command "OPEN_VARIABLE_DIALOG". This should happen when you click on the image.

Maybe you are looking for

  • J2SE5.0 - what's wrong with JDK1.5?

    In the world of programming, everythings to do with making things as simple as possible. Then why-oh-why is the successor to JDK1.4 called J2SE5.0 AND JDK1.5 - apparently it has two version numbers?!?! Sun have even gone to the trouble of making both

  • Error in proxy servlet implementation

    Hi all, I have implemented a simple proxy servlet. My requirement is whenever a call is made to the servlet , the servlet must make a http call to the particular site, make a request for the content and then display the same in the browser. At presen

  • Adobe CS 6 Design Premium Update.

    Hello, We have installed Adobe CS 6 Design premium in our organization, when ever i try to update it says " The update server is not responding. The server might be offline temporarily, or the internet or firewall settings may be incorrect. Hardware

  • Stock Level over time

    I would like to build a query that reports the stock level for each posting period over time.  I found these two tables that appear to have a structure for this data, but when I look at these tables I see that they are empty: S197 Periodic storage lo

  • Officejet K60 - can I use JUST as a fax?

    I recently got an Officejet K60 that I only want to use as a fax machine. Do I have to hook it up to my computer, or will it perform only as a fax machine? I can't find this in the manual and don't want to spend money on ink if it's not going to work