How to disable/enable image property in Web Dynpro?

Hi,
I was trying to find a help about "How to disable/enable property of an image in Web Dynpro?" but never find it. Let me explain what I'm trying to do:
I need to show three different status (Released, Rejected and Approved) each one is an image ... <b>How do I do to disable images property before a process and enable them after it?</b>
Thanks in Advance, and waiting an answer As Soon As Possible !!!
Tokio

Your question is not completely clear to me. An image cannot trigger an event, so disabling it has no effect.
To display different images in a Image element depending on some condition, you can use a calculated context attribute <i>imageSource </i>of type "string" that returns the URL of the image, something like
public String getImageSource(IWDNodeElement element)
  if (...)
    return "image_for_status1";
  else if (...)
    return "image_for_status2";
  else if (...)
    return "image_for_status3";
  return ""; /* no image will appear */
Bind property Image.<i>source </i>to attribute <i>imageSource</i>.
If you put the three image files inside folder src/mimes/components/<componentName>, your method can simply return the file name without calculating an URL.
Armin

Similar Messages

  • How to create a custom property for web dynpro iView - please respond

    Hi,
    I have to create a custom iView property for a web dynpro Java Application.  I am searching forums and sap help and not able to find any documentation on this. Please post your thoughts here...
    Thanks
    Srini
    Edited by: Srinibapati on Sep 5, 2009 3:56 PM

    No One replied and closing this thread...........I still don't have answer for this.
    Thanks.
    Srini

  • How to import an image icon into Web Dynpro for Java project

    Dear Experts,
    I would like to have a "select all" button which has an image of a standard "Select ALL" icon in SAP R/3. Where do I store the icon in my Web Dynpro for Java Project? 
    Any help would be very appreciated.
    regards,
    Shoira

    Hi Shoira!<br>
    <br>
    You have to use the following path:<br>
    <your workspace>\LocalDevelopment\DCs\demo.sap.com\<your UI component>\_comp\src\mimes\Components\<your component><br>
    <br>
    Best regards,<br>
    <br>
    Christoph

  • How to disable calculator value help in Web Dynpro Java

    Hello ,
    Does anyone know if it's possible in CE 7.2 to disable the automatic help calculator when using input fields of the type integer or decimal?
    I ve done SAP Note 1406153 in server. But it doesnt work.. value help is still appear..
    Best Regards,
    Rasim

    1. Create a smart form in the R/3 side
    2. Now create a function module with the corresponding export parameter:
    3. Make sure that the function module is marked remote enabled. 
    4. In NWDS  create an Adaptive RFC model which points to the FM created in R/3 under the webdynpro application
    5. Now create an application and view inside it to display the PDF and Insert a frame inside the view
    6. Create a  value node and an attribute say url of type string inside that node and bind it to the source
    7. In the doInit() method place the following code
    >    ZTest_Pdf_1_Input input = new ZTest_Pdf_Input();
    >    wdContext.nodeZTest_Pdf_Input().bind(input);      
    >    try {                       
    >            wdContext.currentZTest_Pdf_InputElement().modelObject().execute();
    >            }
    >  catch (Exception e) {
    >                        e.printStackTrace();
    >            }          
    >  wdContext.currentInternalElement().setUrl(convert(wdContext.currentOutputElement().getBin_File()));       
    Inside that view create a method to convert the string to url so that it can be passed as a string to the setUrl method of the currentContextElement() , say convet(byte[] doc_content) which return a string.
    Inside that methos write the following code,
    >         String url = "";
    >           WDWebResourceType webResType = WDWebResourceType.PDF;
    >            IWDWebResource webResource = WDWebResource.getWebResource(doc_content, webResType);
    >            try {
    >                        url = webResource.getURL();
    >            }
    >  catch (Exception e) {
    >                        e.printStackTrace();
    >            }          
    >            return url;
    Hope It will be helpful
    Regards,
    Sam Charles J.

  • How do I add image upload to web app edit template?

    How do I add image upload to web app edit template. When creating fields I am selecting image from the field type. But the only way to upload and image is when I create the web app item within the admin. The option to upload an image is not available when the user submit web form opens.
    Wont send any of these questions through this email anymore but really needed assistance.
    Thanks,
    Gordon

    On the Details tab of the Web App setup, under Web App Item Options; have you ticked "Allow File Upload" and specified a Default Upload Folder?

  • How to disable 'Enable JavaScript' and 'Display PDF in browser' in Adobe Reader 9.1 msi?

    I'd like to how to disable 'Enable JavaScript' and 'Display PDF in browser' in Adobe Reader 9.1 msi.
    Any help would be appreciated.

    NeoChang:
    You can modify the installation package using the Adobe Customization Wizard to toggle the "Display PDF in Browser" but I have not found a setting to disable JavaScript from the Wizard. I have created a script which makes the changes, but it has to be run for every user since that info is stored in the User hive of the Windows registry.
    Disable JavaScript:
    REG ADD "HKCU\SOFTWARE\Adobe\Acrobat Reader\9.0\JSPrefs" /v bEnableJS /d 0 /t REG_DWORD /f
    Disable Browser Integration:
    REG ADD "HKCU\Software\Adobe\Acrobat Reader\9.0\Originals" /v bBrowserIntegration /d 0 /t REG_DWORD /f
    Michael
    ~Simplicity of Character is a Natural Result of Profound Thought~

  • How do i copy images from the web?

    How do I copy images on the web for use in a powerpoint presentation?

    Drag them to the desktop or control-click them and choose to copy them to the clipboard.
    (61484)

  • How to disable dragging selected text to web search?

    How to disable dragging selected text to web search?

    Hmm, I haven't heard of that before. It's a new tab page with no relation to what you were dragging?
    I wonder whether this might be a feature of one of your extensions. You can review them, and disable/remove any that are nonessential or unrecognized, here:
    orange Firefox button (or Tools menu) > Add-ons > Extensions category
    If you disable extensions, usually a link will appear above at least one of them to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    If that makes no difference, you could test in Firefox's Safe Mode -- that's a standard diagnostic tool to bypass interference by extensions (and some custom settings). More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode" (''not'' Reset)
    Any difference?

  • How to change color of label in web dynpro?

    All,
    I was wondering how could be change the color of web dynpro tag label.
    I tried using html tag font in the text, but it does not work out.
    Does the label tag in webdynpro have a encode property, if so how can we set that to false.
    If there are any docs regarding the same please do forwrd me the docs
    thanks,
    Paul

    Hi,
    U can color the lable by applying the themes in webdynpro
    Go through this link.
    Make your WebDynpro application theme specific
    /people/lisha.peter/blog/2005/07/07/make-your-webdynpro-application-theme-specific
    Colourful webdynpro :
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/colourful webdynpro applications.pdf
    Download of Themes;
    Theme Editor files for SP13
    Hope this helps u
    Regards,
    Vijayakhanna Raman

  • Creating Client-side Image Map in Web Dynpro

    Hi,
    How can I create a client-side Image Map in Web Dynpro application?
    My application consists of a screen-size image in which several areas will have to link to URLs and actions. I have browsed through the "Web Dynpro UI Element Reference Guide," but could not find anything appropriate.
    Can someone give me an advice? Thanks.
    Teecheu

    It doesn't, there is no corresponding UI control for this.
    There is only onAction event on BusinessGraphics (have not working with them since SP5, eventing did not work at that time) and onObjectAction in GeoMap (never see it in action, probably an option for you if your map is geographic map
    WBR,
    VS

  • How to create a OTR Text in Web Dynpro ?

    Hi All,
    Please help, How to create a OTR Text in Web Dynpro ?
    Urgent.
    Thanks in advance.
    Kaleem.

    Hi Kaleemullah,
    To create OTR Text, T-Code is SOTR_EDIT. If you run this transaction then one screen will appear. There you can choose Long Text or Short Text based on your
    Text. You can choose language also. In Text field you can enter your text. You can put WDYV in your Object Type field. In Text block Length can be increased to 25 as it may be problem if language conversion of Text happens. You must fill your package field and save the OTR.
    I hope you can be able to create OTR Text now.
    Best Regards,
    bansidhar

  • How we can done background job in web dynpro abap

    Hi expert,
    my requriment is how i can set background job in web dynpro .
    regard's
    vikash

    The same way you do it in normal ABAP. There is nothing Web Dynpro ABAP specific about starting a background job.
    There are API Function modules that begin with the name JOB_*.  Have a look at the online help for samples:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096d40543b11d1898e0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096d4d543b11d1898e0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096d67543b11d1898e0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096d74543b11d1898e0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096d8e543b11d1898e0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096ce5543b11d1898e0000e8322d00/frameset.htm

  • Help- how do I make images ready for web gallery??

    Hi,
    I am trying to create a photo gallery of images within Bridge using the Adobe Web Gallery feature. I have the images I want to use in a folder.What steps do I need to take to get the images saved in the correct format and file size? Also, what files sizes do you recommend for a web gallery? I need to make medium to large thumbnails & large images (when clicked). Here's what I am thinking I need in terms of getting this right:
    use Adobe Photoshop/Bridge to create the gallery
    jpg for photos
    gif for solid colors
    file size under 2MB (full image), under 20-30K for (thumbnails), total size of all images under 50K (no more than 50 sec. to download)
    screen size: 984x728
    screen resolution: 72dpi
    If you could help me in any way, shape or form concerning making my images ready for a web gallery that would be most helpful. And if you can refer me to any resources on making a web gallery that'd be awesome. Thank you!
    ashmic19

    Thanks for the link Curt Y that video is really helpful. After looking through some materials I had I figured out how to optimize my images. So I don't need any help anymore. But thanks to all who viewed this and thanks Curt Y for the video!
    ashmic19

  • How to disable/enable the cells for editing column wise in JTable in java?

    Hi All,
    Can any one tell me how to disable the cells for editing by column wise in JTable?
    Here depending upon the radio button selected, I need 2 disable some columns for editing
    and enable some columns for editing?
    how can I do tat using JAVA?
    Any sample code is of great help to me.
    Thanks in Advance

    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
    ~

  • How to disable sender images in Gmail app?

    Hi all,
    The recent update made a change in the Gmail app where it'll display an image for the sender in the main window. If you don't have an image for the sender (which is 100% the case for me), it displays the first letter of the sender's name in a big colored box.
    A quick Google search shows there's a way of disabling this through the settings: http://www.androidcentral.com/how-turn-and-contact-images-new-gmail
    However, the Gmail app on my Verizon Galaxy S3 doesn't have the "three dots" icon which opens the menu. Was this something Verizon removed for some reason? Any hints on how to turn off the big colored boxes? I find them annoying and they take up space for no reason.
    Thanks, Rich

    The three dots is the overflow menu. The Galaxy S3 has a menu button. Overflow menu (three dots) equals menu button. >Comment deleted<
    Message was edited by: Verizon Moderator><

Maybe you are looking for

  • MDB Container Managed Transaction and Log4J

    Hi, I'm programming and MDB that reads and updates a database then sends out an HTTP Post and logs using log4j. I've read that when an MDB is configured as CMT or container managed transaction and the OnMessage method executes without errors, the tra

  • Preview Problem: PDF file:Adobe livecycle designer ES 10.0

    Hallo. How do I fix  preview problem of a .pdf file that was created with Adobe livecycle designer es 10.0.  version 1.7 ( show on the properties of the file). The file opens normally. No preview in explorer preview pane and change to printing proble

  • New tabs will not open despite installing the add on

    Hey! Have I disabled new tab opening somehow? Have looked throughly through menu bars, also installed the suggested add on (new tabs at the end), but the + button to the right of open tabs won't open a new one, nor will ctrl+t or right click new tab.

  • What does Spotlight omit from its search?

    Disturbingly, Spotlight does not find everything. For example, it does not find the folders in /Library/Preferences. What is it defined to search?

  • Paralells help please

    Hello I am using paralells to run Windows XP on my Macbook Pro. I have the latest version and can't get my bluetooth to work in windows. How do I release it from the mac and use it in windows. I even tried and external usb dongle. Also I use my razr