Dynamic image display (based on variable attribute) in Web application?

Hi experts,
I am using a Web Template (from the Web application designer) based on a BEx Query.
This web template displays a logo (jpg image) and the report. 
Is there a way to add another image to my web app and having the right logo displayed depending on a characteristic (sales organization for example) chosen in the variable screen (before the first rendering)?
Thanks for your help.
Points will be given to useful answers.
Cheers,
Olivier

Thanks for your helpful answers guys.
Andrey's tutorial helped me to catch the sales org variable value in a variable named salesorg (Script Item in the web template as well as Data Provider Info Item).
Now could you explain how/where to use this variable to swith images? Is this still in the same Script_item where i should be able to "hide" / "show" the following XHTML tag?:
<img   etc .......     img<
Thanks for your help, I'm a bit confused on this last point (and not so comfortable with Java Script).
Olivier
Edited by: SAP_BW_USER_49 on Nov 23, 2011 3:32 PM

Similar Messages

  • Dynamic image displays depending on yes / no value

    Dynamic image displays depending on yes / no value    
    I´d like to have a image showing, depending on a specific value (y/n)
    ..sorry need some help.
    I can´t get it workin.....
    <img <?php $status="n";
    if ($status == "y") {
      echo 'src="stecker_on.png" alt="yes"';
    } else {
      echo 'src="stecker_off.png" alt="no"';
    } ?> height="71" width="101" />
    The image ist not showing... ideas ?
    All I get ist some text showing:
      height="71" width="101" />
    MANY THANKS !!!!

    Presumably you mean this -
    http://mediaconsults.de/1test/steckertest.php
    And it's not clear what that is going to show me.  Looking at the code on the page -
    <html>
    <head>
    <title>Unbenanntes Dokument</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    MM_reloadPage(true);
    //-->
    </script>
    </head>
    <body background="test%20png.png">
    <div id="Layer1" style="position:absolute; left:1290px; top:246px; width:95px; height:112px; z-index:1"><img src="stecker_off.png" alt="no"height="101" width="71" /></div>
    </body>
    </html>
    I would advise you the following:
    1.  Put a valid and complete doctype on that page!
    2.  Get rid of the resize if NN4 javascript - it hasn't been needed for nearly a decade.
    3.  Fix your image code (note the missing space after "no"!
    4.  1290px is way too wide unless you want lots of people scrolling right to see things.

  • Can you enable both Windows Based Authentication and Forms Based Authenication for the same web application?

    Hello Community
        In WS2012 and SharePoint 2013 Server is it possible when creating a
    web application to enable both Windows Based Authentication/Negotiate
    (Kerberos) and enable Forms Based Authentication or does the web application
    use either one or the other?
        Thank you
        Shabeaut 

    Yes , you can use dual authentication on same web application. You can use same web application , at OOB login page you will have option to use windows or form login.
    Or you can extend your web application to a new web app and configure extended web application to use Form Based Authentication(Note extended web application will also show same content database , so the content will same only url will be different)
    http://blogs.technet.com/b/ptsblog/archive/2013/09/20/configuring-sharepoint-2013-forms-based-authentication-with-sqlmembershipprovider.aspx
    http://gj80blogtech.blogspot.in/2013/11/forms-based-authentication-fba-in.html
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • Dynamic Image Displays Blank When Using In Visual Studio Project

    I am trying to simply display a dynamic image in a report. I am using Crystal Reports XI Release 2.
    I have two different environments: Local via Progress where reports are called using Crystal Viewer ActiveX, and over the web where reports are called from Open Laszlo and Visual Studio project.
    The image is set to a blank image as default, and Graphic Location Forumla loads the image from the database (site.logo_location + site.logo_filename) which results in an image http:
    www.vetinfo3.com\a.jpg.
    When I run the reports locally using the ActiveX control, it works just fine and displays the image.
    When I run over the web using OpenLaszlo, it displays a blank.
    Troubleshooting
    We are using Visual Studio 2005, which is bundled with an older version of Crystal that doesn't support dynamic images.
    To address this, I loaded Crystal XI Release 2, which updated the version in Visual Studio and enabled the Graphic Location formula field on the dev machine.
    I verified the Graphic Location field was set correctly.
    This caused a Version error, so we loaded cr_net_2005_mm_mlb_x86.zip on server and specified the Version in web.Config.
    No errors now, but when I build and publish the code, the image still displays as blank.
                From Fiddler
                   GET http://www.vetinfo3.com/mdsol1/CrystalImageHandler.aspx?dynamicimage=cr_tmp_image_c5d6a923-293b-4f1e-8739-4e698f83b087.png
                   Creates C:\Documents and Settings\Curtis\Local Settings\Temporary Internet Files\Content.IE5\PWRUX2XW\CrystalImageHandler[1].png
                   Blank Image
    According to issues within Visual Studio, they say the fix to this is to add the <httpHandler> in web.Config, but it is already there; added when we add the viewer to the project:
    In web.Config I have some questions about this line:
        <httpHandlers>
          <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        </httpHandlers>
    There are more service packs for Crystal XI Release 2:
    crXIr2sp2_net_server_install.zip
    crXIr2sp3_net_server_install.zip
    crXIr2sp4_net_server_install.zip
    I have not loaded these yet, but the readme files do not indicate they fix any dynamic image issues.
    I am out of ideas on this; does anyone have any ideas?

    What about if you take OpenLaszlo out of the picture? E.g.; use one of our samples from here;
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    I'd recommend vbnet_web_simplepreviewreport
    Also, see [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0437ea8-97d2-2b10-2795-c202a76a5e80] article.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Dynamic images display issues in FF and Opera

    Dreamweaver 8
    http://daylily.net/polytepals/results.asp?CultivarName=Carolina%20Octopus
    Can someone please help me correct the following problem. The
    dynamic image
    on this page displays properly in Explorer but it will not
    display in Opera
    or Firefox. It works correctly in Netscape when Netscape is
    set to display
    as Explorer.
    This is affecting all my dynamic images.
    Thank you,
    Bobby

    <img src="\polytepals\PolyPhoto\carolina_octopus.jpg">
    there are no backslashes in urls.
    <img src="/polytepals/PolyPhoto/carolina_octopus.jpg">
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Problem displaying WebHelp in firefox called from web application

    We're using RoboHelp 7.03. When the WebHelp is generated, it seems that the navigation topics all immediately begin with a few illegal characters. This isn't a problem in IE -- it ignores these characters and displays our help pages fine. In Firefox, however, the WebHelp loops when trying to open the main topic page and does not display the "Show TOC" link for the sub-pages. (The navigation pages I'm referring to are the skin files, whgdata files, whdata, etc.)
    I should note, this occurs only for the project that we're calling from within a web-based application we offer our customers. Firefox displays the WebHelp correctly when opened regularly from the browser.
    I did a search-and-replace operation on the WebHelp published for the web application. Removing the illegal characters took care of the problem, but I'm wondering if there is any way to remove these characters from the output so we don't have to remember to do the search and replace each time we publish the project? (It's in beta stage right now; we're going to be republishing the help fairly often.)
    I'm not sure if these will display properly, but the illegal characters look like this: 
    Thank you,
    Sasha M.

    Those characters are known as the BOM characters. See item 22 in http://www.grainge.org/pages/authoring/rh7/using_rh7.htm.
    You say the behaviour is different when you run the help independently and when the developers call the help. Could it be that you are viewing it from a different location? What if the help is run from the location the developer's use but independently of the application?
    Visit www.grainge.org for RoboHelp and Authoring tips

  • Query regarding attributes in web application

    Hi Forum,
    1. We have Session Attributes which are available through out the session for an user in web application. These can be set by session.setAttributes and can be accessible by session.getAttributes in application either in JSP or Java Class
    2. Then we have request paramaters which are available in request just like session variables they are accessible.
    I wanted to know that ,is there any method through which the attributes can be set or retrieved through out the application(in JSP and Java class both) for every user?Unlike session variables, they disappear after session invalidates.
    Nitin

    Please don't repost/crosspost the same question over all places. That question is already answered before: [http://forum.java.sun.com/thread.jspa?threadID=5309515]. I also already answered your doubleposted question before: [http://forum.java.sun.com/thread.jspa?threadID=5309848]. If you don't understand it, please respond so instead of brainlessly posting a new topic. Your crosspost is also already answered: [http://forum.java.sun.com/thread.jspa?threadID=5310907].

  • Where to store "global variable" for a web application

    There are some "global" variables in my portal web application. e.g. email server
    name, admin email address etc. Will web.xml context-param a good place to store these
    kind of information?
    If so, how do I retrieve it back from a java class? It is easy in a jsp file: appalication.getAttribute(),
    but how about a pipeline component or input processor which are all java file.
    Please help!
    Thank you very much
    Ellen

    I still believe that the information like connectivity parameters to remote
    servers in the distributed environments would be best stored in the JNDI
    tree. I agree, that it is not a "general storage area", but I am not talking
    about storing application run-time data either.
    In the clustered environments it would provide additional benefits of
    centralizing this kind information across the cluster.
    Regards,
    Mike
    "Subrahmanyam Allamaraju" <[email protected]> wrote in message
    news:[email protected]..
    >
    JNDI is not a general-purpose storage area, although you could bind data
    in a JNDI tree. A better (and simpler) way is to store them as context
    parameters. You could read the initial values for these variables from a
    servlet init parameters.
    Subbu
    Michael Goldverg wrote:
    Ellen,
    I would advise to put you global variable in JNDI tree.
    You can use jndi.properties file to store name-value pairs, which will
    get
    loaded into jndi tree at the server startup. Just put this file in your
    application class path.
    The other method would be to code a startup class to store the global
    variable in the jndi tree.
    Regards,
    Mike
    "ellen" <[email protected]> wrote in message
    news:[email protected]..
    There are some "global" variables in my portal web application. e.g.
    email
    >>
    server
    name, admin email address etc. Will web.xml context-param a good place
    to
    >>
    store these
    kind of information?
    If so, how do I retrieve it back from a java class? It is easy in a jspfile: appalication.getAttribute(),
    but how about a pipeline component or input processor which are all javafile.
    Please help!
    Thank you very much
    Ellen

  • Forcing Variable Entry with Web Application Designer Bookmark

    Hello All,
    We have users that are creating bookmarks in a Web Application report.  They want to change their dates every time they open the bookmark, but the variable entry screen is not showing up even with the "Force Variable Entry Screen" option checked.  Is this how a bookmark is suppossed to funciton or is there anyway to make the variable entry screen appeear with a saved bookmark.
    ***the purpose of the bookmark is for users to save the format of the report as they see fit
    Any help would be appreciated!!
    Thanks!
    Tina
    Edited by: Tina Gatto on Jun 3, 2009 4:10 PM

    when you save yorru personalization, you dont save it to internet explorer favourites. its a different code to save personilization.
    try these posts they might help
    SAP Business Explorer (SAP BEx)
    SAP Business Explorer (SAP BEx)
    search sdn for 
    how to "personalize".
    hope this helps

  • Dynamic image display Problem

    Hi
    I am trying to display images in 2 ways static and dynamic
    unfortunately the dynamic display the last 2 doesn't show
    anything
    <mx:Image height="35" width="35" styleName="MediumIcon"
    visible="{r.currentItem.extramedicine=='true'?true:false}"
    source="@Embed('images/icon_extra-medicine.gif')"/> ->
    Display Image
    <mx:Image height="35" width="35" source="@Embed
    ('{r.currentItem.mood}')"/> -> Don't display image
    <mx:Image height="35" width="35" source="@Embed
    (source='{r.currentItem.mood}')"/> -> Don't display
    image
    mordsm

    "mordsm" <[email protected]> wrote in
    message
    news:gl6nqm$sso$[email protected]..
    > Hi
    >
    > I am trying to display images in 2 ways static and
    dynamic
    > unfortunately the dynamic display the last 2 doesn't
    show anything
    >
    >
    > <mx:Image height="35" width="35"
    styleName="MediumIcon"
    >
    visible="{r.currentItem.extramedicine=='true'?true:false}"
    > source="@Embed('images/icon_extra-medicine.gif')"/>
    -> Display Image
    >
    > <mx:Image height="35" width="35" source="@Embed
    > ('{r.currentItem.mood}')"/> -> Don't display image
    >
    > <mx:Image height="35" width="35" source="@Embed
    > (source='{r.currentItem.mood}')"/> -> Don't
    display image
    >
    When you use @Embed the image is...embedded. That means it is
    compiled into
    the file, when it's not running. The compiler has _no_ idea
    what the value
    of your variable is expected to be at runtime.
    Try
    <mx:Image height="35" width="35"
    source="{r.currentItem.mood}"/>
    HTH;
    Amy

  • Controlling Rollover Image displayed based upon URL

    Using CS5 and have a template set up with rollovers for navigation:
    Does anyone knows how to change the rollover image to display the "mouseover" image when you're on that specific page?
    Example: Pages 1 thru 6 have rollover navigation on the left side of a template (so same coding used thoughout the site).   Standard image changes with mouseover for selecting the new page.   What I would like is to have the "mouseover image" for page 4 displayed when you're actually on page 4 ... etc for other pages.
    Can that be done using a template?   I know I can do it if I create "non template based" pages.

    I never use MouseOver behaviors for navigation.  There is no reason to when CSS can perform the same effects with less code.
    http://alt-web.com/DEMOS/CSS-Horiz-menu-3.shtml
    Persistent Page Indicator "you are here" on Site Wide CSS Menus
    http://alt-web.com/Articles/Persistent-Page-Indicator.shtml
    (='.'=)
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • Dynamic Image Display

    I'm trying to display an image in a report region based on external table information and I'm unable to figure out how to make the image render. I've looked at previous threads and I'm still confused!
    Situation:
    I am display a report about an object selected by the viewer; I've successfully displayed the various textual entries about the object. Now I'm trying to add an image to the report. I have a table containing the textual entries and two columns about the image: a BFILE column and a FILE_NAME column. The file is a jpeg image of the object described by the report. I've examined the sample code in the HTMLDB sample application which deals with "direct images"; I've tried to adapt the code to work for a BFILE entry. However, I don't understand how to "translate" a BFILE & FILE NAME combination into a "src=" entry for display.
    A couple of threads indicated it was a simple matter to adapt to a BFILE entry, but evidently I'm out to lunch! Would appreciate some basic help.
    George

    Hi George,
    Sounds like an interesting one....
    You could certainly use a BFILE, the thing to remember (as Vikas mentioned) is that the filename used for the file is not necesarily the same as the URL that should be used for accessing the file over the internet.
    What I mean by this, is you will store the files on the filesystem somewhere (say for example '/work/images') you will need to make sure that this directory is accesible by the webserver (so, for example 'http://myserver/workimages'), then using the filename for the file you will append that to the base URL used for accessing the images (e.g. 'http://myserver/workimages/myfile.jpg')
    So in your SRC parameter you would use the URL (and not the actual filesystem path), you could use either a full URL (e.g. 'http://myserver/workimages/myfile.jpg') or a relative path (e.g. '/myimages/myfile.jpg').
    The key is to make sure that the directory your images are stored in is accessible by the webserver, once you manage to do that then the rest is (relatively) easy.
    Also since you mention versioning and archives of the images, I'd be tempted to investigate storing the images in the database (therefore you can easily maintain the 'history' for the image) and you could also write an upload/download routine so that the image can be downloaded for editting with Photoshop etc, then uploaded once the user is happy with the results. This would also have the benefit that it would be relatively easy for the image to be 'checked out' by a user ensuring that no two people were working on editting the same image at the same time (if that was a business rule).
    Hope this helps,
    John

  • Dynamic Image Display - How?

    I have an application which retrieves rows from a database, and also images.
    The images are retrieved as JPG files to a specific directory on the WebAS machine, and I have the full path to the file.
    I cannot find any way in Web Dynpro to display these images.  Is there a way to do it?
    Walter

    Hello Walter,
    i just had that Problem and it was solved in the followuing way:
    - Create an HTTP Alias for the directory containing your images
    - Set the image-source to http://<host>:<port>/<HTTP-Alias>/<filename>
    IWDImage image11 = (IWDImage) view.createElement(IWDImage.class, "Test" + i);
    image11.setWidth("80");
    image11.setBorder(1);
    image11.setAlt("http://netweaver:50000/ZPROT/" + otherImage.substring(offsetfilename));
    image11.setSource("http://netweaver:50000/ZPROT/" + aktuellesImage.substring(offsetfilename));          
    Group2.addChild(image11);
    To set an HTTPalias, search the 'Weblogs'

  • Display Longtext in variable selection screen (web)

    Hi Guys,
    I wanted to know if there is a way of having the long text displayed in variable selection screen instead of text in a web report?
    Thanks,
    Doniv

    Hi Doniv,
    This might help:
    Re: No Text displayed in the Input help in WEB

  • Web graphics / images display in low resolution on any web browser

    Hi everyone.
    This issue has had me stumped for a few months now. I never noticed this issue with Snow Leopard but now with Lion I have noticed that web graphics display at a significantly lower resolution. I switch between Google Chrome and Safari and the issue is present on both browsers.
    Basically any website with graphics, or images will be pixelated and lacking in fine detail. It is painfully obvious when browsing sites like Flickr and 500px. In these cases, my own personal images look terrible online, but look absolutely normal in my Lightroom library, so I know it's not a strange display issue on my Mac.
    I'm just curious if anyone has had a similar issue, and if you have figured out how to resolve it.
    Thank you very much!
    - Abram

    i have the same issue with safari on my mac. i'm not sure if i have snow leopard or not. all i know is i am on a G4 with mac os 10.5.8 and have safari 5.0.1. last week, i could not watch certain video clips online, because {as it stated in my browser where the video should be} i did not have the most recent flash player. but when i went to download the most recent version, it told me it would not work on a power pc mac. so i researched and found out i had to use the flash 10.1.102.64 player... it's the most recent version that will work on a power pc mac. so i uninstalled the flash player i had on my mac and installed this player. all well and good... now i can see the videos.
    but what's not well and good is that i no longer have hi-res images in my browser. all images are pixelated and unclear. i posted on the adobe forum to see if i could get an answer as to why.
    here was my post/inquiry...
    "I recently upgraded my Flash Player so that I could view internet content (such as videos) that were not available to me before I upgraded. Ever since, the images on most web sites that I visit are now pixelated (look very low-resolution). I had not made any other changes to any settings on my computer or software. The browser I use is Safari 5.0.1. I had to upgrade to the Flash Player 10.1.102.64 because I am on a PowerPC Mac G4, and that is the most recent version of Flash Player that will work with Power PCs.
    Anyway, now that I have upgraded (which included first uninstalling the old Flash Player), my images look pixelated... most do, anyway. For some reason images I post to flickr appear okay on screen. But normal 72dpi images on standard web sites (like Yahoo) appear very lo-res.
    Does this have to do with whether or not my Mac's operating system is 64-bit or 32-bit... or the Safari software... in relation to the Flash Player's... whether or not they are compatible? If not, I have no idea why this would have changed since upgrading my Flash Player. And if so, what can I do to get around it? I'm somewhat computer savvy... but not this much. Can someone please help me so that I don't have to pay $39 to call Support and ask them?"
    here was their reply...
    "Sounds like the installation went pear-shaped somewhere. Try it again using the method described here:https://discussions.apple.com/thread/2805854?start=0&tstart=0
    Or maybe they'll know what the cause of your pixelated images is."
    but the discussion link they gave me did not help. i had already done what it suggested. and i tried it again... still no luck.
    help.... anyone!!!! please?

Maybe you are looking for