Find image in SSRS via Javascript

Hi
I know you can do the following to find any related tags:
var el = document.getElementsByTagName('span');
if (el[nr].innerHTML == "SPAN")
Inserting 'IMG' obviously finds all images but I need to find my image with its name. So if I put an image on my report and named it iMyImage and it's embedded how do I find iMyImage? I need to do a mouseover event on the image. It works perfectly with placeholder
SPAN in textbox but I can't find my image to do the mouseover on.
Thanks
Sunette

Hi Sunette,
Per my understanding that you want to add an mouseover event on the image, and get the image name, right?
Generally, when we add an image to a report, we can type a tooltip with the image name in the "Tooltip text box". The tooltip will be showed when the user hovers a mouse over the image in the rendered report.
As you know we have some limit support of the HTML Tag when creating the placeholder:
Importing HTML into a Report (Report Builder and SSRS)
Following article about "Reporting Services javascript injection" may help you:
http://blogs.infosupport.com/reporting-services-javascript-injection/
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support

Similar Messages

  • Portal is gatewaying image src written by javascript

    I am tyring to display an image in a pop up window (jsp). I have attached the images src to the querystring. That part works fine. I am getting the correct url on the page. The problem is, when I try to write the image src out via javascript, the portal is gatewaying it. Here's the snippet: function getImage() {
         var path = getQuerystring('libFilePath');
         alert("path is " +path);
         this.document.getElementById("image").src = path;
    getQuerystring is another javascript function, and it does work. Do I need to use one of the Plumtree classes to get around this issue. That url worked fine up until this page (no gatewaying).

    Hi,
    Should the image be gatewayed but is going to the wrong path? You could take a look at the Tag library.. If you use the the 'transformer:transformer' tag it allows you to turn on/off transformation. You could also try to use the 'transformer:url' tag. Hope this helps!
    library: http://download.oracle.com/docs/cd/E13174_01/alui/devdoc/docs60/References/API_Libraries/6.1/TagDocs/index.html
    Edited by: DerekH on Oct 28, 2009 8:31 AM

  • I want to find the image tag name from Image layer name InDesign JavaScript?

    I want to find the image tag name from Image layer name InDesign JavaScript?

    Hi,
    You can use following script to fetch image tag name and the layer name on which it lie:
    var imgBox = app.activeDocument.rectangles // fetch all rectangular frames from the active document
    for(var i = 0; i< imgBox.length; i++)
      if(null != imgBox[i].associatedXMLElement )
                var b = imgBox[i]
               alert("Image tag name "+imgBox[i].associatedXMLElement.markupTag.name + "\n exist on layer " + imgBox[i].itemLayer.name)
    Hope this would help you to resolve your problem.

  • How do I find images in LR 2.4 (imported from CS4 Bridge) that have color labels already assigned In CS4 Bridge? I have set both Bridge and LR color labels text to match (eg Green for green, etc).

    How do you find images in LR 2.4 that have been imported from CS4 Bridge and have been assigned a color label in Bridge?  I have set both LR 2.4 and my CS4 Bridge to match the text for each color to be the same (eg. Green for green, etc), and the filter search in LR 2.4 shows that a label has been assigned, but I am unable to identify and locate the specific images in LR 2.4 that have had a color label assigned from CS4 Bridge.  I have tried to search via attribute, metadata, text, etc...Is it necessary to re-assign color labels all over again, image by image, in LR 2.4, or is there a way to automatically have the color labels assigned in CS4 Bridge be assigned and searchable to the images after they have been imported into the LR 2.4 catalogue from the Bridge program?

    JohnM.
    I closed both programs and re-imported photos and re-tried the action of having LR  read the XMP metadata from the CS4 files, and it seems to work now just fine...don't know why now and not before, but thanks much. Is there a way to have LR do this automatically upon import of images from CS4?  I tried to do this with an import metadata preset, but no luck.  It seems as if I can only do this once the images have already been imported into LR, and then to have to have LR read the metadata from the CS4 Bridge files.  thanks gain.

  • Uploading a File with AppleScript via JavaScript

    Hi everybody,
    being new to AppleScripting and JavaScripting I'm faced with the following problem:
    Is it possible to make AppleScript to input the path for a file to be uploaded via JavaScript? If yes, what should be the correct Path Format and how to wrap it up the JavaScript action into AppleScript? I've tried a few comands but to no success.
    On the webpage in question, there's a "Choose" button, that is defined as follows:
    <input type=​"file" class=​"gwt-FileUpload" name=​"swfFile">​
    I've been trying to use the following syntax:
    do JavaScript "document.getElementsByName('swfFile')[0].value('Macintosh HD:Users:myaccount:Desktop:Scrapbook:!动画.swf')" in document 1
    as well as this one, where the Path is definitelly understood by shellscript:
    do JavaScript "document.getElementsByName('swfFile')[0].value('/Users/myaccount/Desktop/Scrap book/!动画.swf')" in document 1
    The name of the file is (and must remain) in chinese, but for testing purposes I have also tried files with english names, without success.
    Currently I'm using a solution with JavaScript comand:
    do JavaScript "document.getElementsByName('swfFile')[0].click()" in document 1
    to click the finder  window to browse for the file, and manipulating  keystrokes by using System Events to find the right file, but it's not  infallible with a number of files and it's hardly an ellegant sollution.
    Any idea what I'm doing wrong?
    Cheers!

    @twtwtw
    the do JavaScript "document.forms[0].submit()" command didn't work, so I kept the original way of submitting by clicking the button. The submitting part works, but not the input file part.
    That's the code I used
        tell application "Safari"
            do JavaScript "document.getElementById('gwt-uid-13').value='on'" in document 1
            do JavaScript "document.forms[0].elements['swfFile'].value=" & "'" & SWFFilePath & "'" in document 1
            do JavaScript "document.getElementsByClassName('gwt-SubmitButton')[0].click()" in document 1  
            delay 1
        end tell
    with SWFFilePath set as the POSIX path as well as the default file format
    Macintosh HD:Users:myaccount:Desktop:Scrapbook:!动画.swf'
    but it did not work.
    If you've got the time, feel free to upload an .swf. The service is free and the server delats uploaded files after 15 min. (if you don't have any, you may try an empty .txt file instead - it won't get converted, but the point is just to get it into the input box).
    In the meantime, I'll have a look at adayzdone's suggestion. It's not perfect (the downside being that it requires the window to be active, so I can't run the script in the background or with my screensaver & password on), but it's still more reliable than my sollution with navigating arrowkeyes.

  • Accessing Properties of Individual Tool Buttons via JavaScript

    Hi all!
    I am new to both this forum and scripting Acrobat so please excuse me if the question sounds naive.
    I am trying to find a way to access the properties of individual tool buttons via JavaScript (if there is one). I could not find it yet in JS API Reference. If anybody can help me or direct me to the right way, I will greatly appreciate that.
    For example, in 'Comment & Markup' toolbar one can right-click and change the 'Tool Default Properties' of various markup tools like Highlighter, Line, Rectangle etc. Is it possible to access these properties through JavaScript so that buttons can be added for dynamically changing these? Hope this makes sense!
    Thanks in advance for your interest and help.
    John.

    Hi Andy, thanks for the answer. It was pretty simple - I just added an authorization scheme to the report column, wehre the javascript is executed. Christof

  • The status bar is blocking my content, is there a way to disable it via Javascript and the likes?

    I'm working on a site that requires a bottom footer in a fixed position, with a control button on the left hand side, my problem is, that the `new` status bar area covers this section for quite some time whilst it's requesting data, or waiting for the server, is there a way to disable it via JavaScript or some sort? It seems kind of silly for a status bar to cover your content (no offence), the old way was much nicer, sure it used more screen space, but atleast it didn't assume things. I just couldn't find a solution anywhere else, other than to move the button. :)

    You can use this extension to hide the pop-up that shows the URL of a link on hover and other data that previously appeared on the Status bar.
    *Status-4-Evar: https://addons.mozilla.org/en-US/firefox/addon/status-4-evar/
    Add code to userChrome.css below the @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    *http://kb.mozillazine.org/Editing_configuration
    <br />
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #statusbar-display { display:none!important; }
    </nowiki></pre>

  • Setting client acrobat resolution settings via javascript?

    hi,
    i have this long lasting problem with acrobat since cs2/cs3.
    we use pdfs as container format for our screen design presentations. our screen designs are 72 ppi bitmaps.
    now the problem:
    since acrobat cs2/cs3, these images looks blurry in acrobat even in 100% view. this is because acrobat has this new preference setting under "page display" called "resolution". here the default is set to "use system setting", which in my case is 99 ppi.
    the result is that our 72 ppi screen designs got interpolated to 99 ppi by acrobat even at 100% view. since most users have different system settings, there is no way to control the appearance of our 72 ppi bitmaps.
    do you guys know of a way to circumvent this problem?
    one way i can think of is to use javascript to set the clients acrobat software to "custom resolution" with 72 ppi. but i have no idea how to do that.
    any ideas?
    best regards,
    marc

    Acrobat 6 add the application object 'monitors' method and the 'Monitor' object with a number of properties. See Finding user screen resolution with JavaScript by Chris Dahl for instruction and an example of how to use this method and object.

  • Hide show button and textual area via Javascript or jQuery

    Hi folks am Apex newbie using 4.0.1 on Vista laptop running OracleXE (for dev purposes)
    A quick desc of what items are on the page of my Helpdesk appkication and what I want to achieve ..
    I have a Progress region defined on the page - with textual areas and some region buttons.
    Details are have 2 textual areas in my region - 1st textual area shows current progress (this is read only).
    Second textual region is where IT person will type latest progress on Helpdesk prob (ticket).
    There is a region button Save Progress Text which when pressed will append text from textual area 2 into textual area 1 and
    also appends text e.g date / time / userid etc of progress text added.
    This all works fine.
    Have added a new region button - call it Enter Progress Text - which I would like when pressed will make textual area 2 and the Save Progress Text buttons visible.
    I can hide and show the textual area 2 via $X_show / hide but cannot for life of me hide the Save Progress Text button.
    I also tried to make a subregion holding textual area 2 and the Svae Progress Text button but again via Javascript / jQuery could not hide the subregion.
    Can someone please tell me the syntax of how to hide via Javascript / jquery as can't find anything much at all in the Apex online documentation.
    Many, many thanks as always.
    P.S Don't want to use dynamic actions or hide / show region as want there to be buttons on screen to make things explicit for user hence my desire to use Javascript.
    Wiggywig

    Hi,
    If its a page item then you can use below script to hide it.
    <script type="text/javascript">
        $x_HideItemRow('Put your item name');
    </script>*Put this code in page footer..                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Printing a slide in Captivate 6 HTML5 output via javascript

    I have been googling for the past 3 work days trying to figure this out.
    I had some limited success with printing a div via javascript and pointing it at the slide div (I know it happens to be Slide16952).
    Which is fine, except it doesn't keep the CSS elements of the slide which is what makes it a pretty completion certificate.  Print widgets won't work because I have to publish to HTML5 and not flash (no, no choice in this).  I am struggling to get any javascript working.
    I have this right now which I just picked up as a generic to try and get me going
    function PrintElem(elem)
            Popup($('<div/>').append($(elem).clone()).html());
        function Popup(data)
            var mywindow;      
            mywindow = window.open('', 'mydiv','height=1280,width=720,scrollbars=no','');           
            mywindow.document.write('<html><head><title>my div</title>');
            mywindow.document.write('<style type="text/css" media="print,screen">.hideMe{display:none;}.NoPrintClass{display:none;}</style>');               
            mywindow.document.write('</head><body>');
            mywindow.document.write('drop down selected value in parent: '+mywindow.opener.document.getElementById('testSelect').options[mywindow.opener.document. getElementById('testSelect').selectedIndex].text+'<br/>');
            mywindow.document.write('contentStarts<br/>');
            mywindow.document.write('  using jquery:  '+data);
            mywindow.document.write(' using javascript: '+mywindow.opener.document.getElementById('mydiv').innerHTML);
            mywindow.document.write('<br/>contentEnds');
            mywindow.document.write('<br/>');                                    
            mywindow.document.write('</body></html>');       
            mywindow.document.focus();
            mywindow.document.close();     
            mywindow.print();            
            return true;
    I then point my print button at PrintElem('Slide16952') via a javascript window.
    obviously I haven't written this to fit my particular project yet, but the part I am having the most issue with is trying to get the captivate CSS stuff to come through.  mydiv should = Slide16952 I think.  The CSS form that captivate creates has several block visible elements, but I believe the one I am trying to make sure I get is .cp-shape in CPLibrary.css, but there could be others I want too and I am not sure which.
    has anyone had any luck getting a single slide printed in HTML?  window.print() only gets me like 95% of the slide and a loft of white space around it.

    function printPartofPage() {
        var DocumentContainer = document.getElementById('Slide16952');
        var WindowObject = window.open('', 'PrintWindow', 'width=1280,height=720,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=no') ;
        WindowObject.document.writeln('<!DOCTYPE html>');
        WindowObject.document.writeln('<html><head><title></title>');
        WindowObject.document.writeln('<link rel="stylesheet" type="text/css" href="assets/css/CPLibrary.css">');
        WindowObject.document.writeln('</head><body>');
        WindowObject.document.writeln('<body style="background-image:url(dr/CertBorder.png);">');
        WindowObject.document.writeln('<h1 style="text-align:center; top: 30px;">Certificate of Completion</h1>');
        WindowObject.document.writeln(DocumentContainer.innerHTML);
        WindowObject.document.writeln('<img src="dr/17170_271_44.png" style="position:absolute; left: 896px; top: 464px; width: 294px; height: 73px;"></img>');
        WindowObjext.document.writeln('<p style="text-decoration:overline; position:absolute; left: 908px; top: 494px;">Authorized Signature</p>');
        WindowObject.document.writeln('</body></html>');
        WindowObject.document.close();
        WindowObject.focus();
        //WindowObject.print();
        //WindowObject.close();
    latest code update.  Almost everything is working now.  I am going to get rid of the h1 line because I am going to redesign the certificate image and incorporate the Certificate of Completion part in the image file CertBorder.  I may also do that for the image (which is a signature) and the <p></p> portion, so that I am pulling all of that into the image template and aligning it where it needs to be and just grabbing the image.
    I have the WindowObject.print and .close commented out so I can get it all working.  Once I know it works I will uncomment those for final testing.
    This isn't a great solution, but it's the only one I can seem to make work at this point and it will be pretty transparent to the user once it's done.  So far it doesn't set off the pop-up blocker for me, but I am doing this all locally on my hard drive so I suspect that may become an issue once published.
    also, all credit where credit is due (here is where I got my baseline code ideas http://jsfiddle.net/Zmqzb/)

  • Targetting elements via javascript... how?

    The following is code for a navigation menu where only one option appears lit at a time (based on code sent to me by the amazing Jon Fritz II).
    CSS:
    a#button0, a#button1 {
        display:block;
        float:left;
        width:55px;
        height:67px;
        margin:0;
    a#button0.inactive
    { background:url(/carousel_home.png) -55 0 no-repeat }
    a#button0.active
    { background:url(/carousel_home.png) 0 0 no-repeat }
    a#button1.inactive
    { background:url(/carousel_vip.png) -55px 0 no-repeat }
    a#button1.active
    { background:url(/carousel_vip.png) 0 0 no-repeat }
    HTML:
    <a href="#" onclick="changeClass(this)" class="inactive menu" id="button0"> </a>
    <a href="#" onclick="changeClass(this)" class="inactive menu" id="button1"> </a>
    JSCRIPT:
    <script>
    function changeClass(elClass) {
      var divsLength =  document.getElementsByClassName("menu").length;
      for (i = 0; i < divsLength; i++) {
        document.getElementsByClassName("menu")[i].className = "inactive menu";
      elClass.className = "active menu"; 
    </script>
    What this does is swap the class of a clicked button (in a menu) while reverting all the other buttons back to their original state, so only 1 button appears "lit" at a time. The A tags are used as block elements that simply shift the background image so as to produce a "lit" and "unlit" state.
    My question is... via javascript (or anything else), is it possible to trigger class changes for the buttons from an area OUTSIDE the menu? In other words, can we make a text link on the page itself trigger which button in the menu to "light up". Something like <a href="javascript:slide('div1'); javascript:(go light up button1)">Example</a>
    The reason is that this menu is not the ONLY way to get from one section to another. So if I click on a link in another DIV on the same page that takes me to another area, ideally, I'd like to see the button representing that area in the nav menu light up like it's been clicked on -- even if it hasn't. And of course, the other buttons would NOT be lit.
    Thanks!

    I hadn't even noticed you changed the name of the function from changeClass to setClass, which of course who immediately explain why it started working on those elements that were still calling changeClass... except that when I changed the individual calls to setClass, they still wouldn't work.
    Was I supposed to leave the former changeClass function in the javascript? Is your setClass function supposed to be used in conjuction with the other one? Because I replaced one with the other, and ever since then, the new behavior works but the old one (clicking directly on the icon) does not.
    Here is my menu :
    <a href="javascript:slide('div-home')" onclick="setClass(this)" class="inactive menu" id="button0"> </a>
    <a href="javascript:slide('div-vip1')" onclick="setClass(this)" class="inactive menu" id="button1"> </a>
    <a href="javascript:slide('div-vip2')" onclick="setClass(this)" class="inactive menu" id="button2"> </a>
    <a href="javascript:slide('div-vip4')" onclick="setClass(this)" class="inactive menu" id="button4"> </a>
    <a href="javascript:slide('div-vip5')" onclick="setClass(this)" class="inactive menu" id="button5"> </a>
    <a href="javascript:slide('div-done')" onclick="setClass(this)" class="inactive menu" id="button6"> </a>

  • [AS] Batch find images with attributes

    Hi!
    I've done some applescripting with Indesign but scripting photoshop is new to me.
    Problem:
    Thousands of grayscale images in a folder. Some of them are not adjusted for print so i need to find images that has light values below 5% an dark values above 95% and move those images to another folder for later processing.
    Also some of the images are too wide or too high so those should be moved to another folder for later use.
    Can this be done with applescripting Photoshop or is there some other ways (application?)to do it?
    Any ideas?
    thanks
    jukka

    What kind of file types do you have? AppleScript has access to SIPS via 'Image Events' a GUI-less app this can check some attributes of files without you opening them (no .eps though). For your below 5% above 95% the only method I can think of at the moment would be to open in Photoshop and read the first and last 12-ish items of the histogram. Something like this would tell you if you have pixels in those ranges. Assuming an open grayscale image.
    tell application "Adobe Photoshop CS2"
    activate
    set docRef to the current document
    tell docRef
    set docWidth to width
    set docHeight to height
    set docHistogram to histogram of channel "Gray"
    set above95 to 0
    repeat with i from 1 to 12
    set above95 to above95 + (item i of docHistogram)
    end repeat
    set below5 to 0
    repeat with i from 244 to 256
    set below5 to below5 + (item i of docHistogram)
    end repeat
    if (above95 > 0) and (below5 > 0) then
    display dialog "NOT OK Image"
    else
    display dialog "OK Image"
    end if
    end tell
    end tell

  • Resize an Object via javascript

    Resize an Object via javascript
    How do I...
    I want to select an object in my document, onscreen, (an image, or text) then run a script that will discern the object selected, and show a dialog box that will allow me to input a sizing percentage for that object (with anchor corner/center)(Press enter and object resizes).

    No they don't.
    Acrobat may be bundled with Creative Suite collections but the APIs has nothing in common other than the use of JavaScript. CS apps use the ExtendScript system, Acrobat has its own internal API and an SDK for inter-application control.
    PDF is an end-destination format - the page content is not designed to be edited, so while there are tools in the user interface to allow touchups and corrections to page objects those features are not available for automation. The JavaScript engine does not have access to the low-level document structure, it can only see markup (comments and form elements) and a limited range of document properties.
    bdmasha wrote:
    They are all part of a suite of tools that share a common access to internal api's via scripting/programming languages.
    InDesign is not Photoshop is not Illustrator, but they have much in common when accessing their api's that Acrobat does not allow--and Acrobat is part of that Adobe suite.
    Thanks again.

  • Manipulating a cubequery via javascript

    Hi all,
    I'm trying to manipulate a cubequery section via javascript within an interactive reporting document (version 11.1.1.2).
    Docs are quite terse and I wasn't able to find an Object Model Map, the snippets of code are one line long and quite useless as a guide.
    I have a cube with a Scenario dimension with 2006,2007 etc as children.
    I can add Scenario to rows or columns of the query, but I have not found the right instruction to add a single children of the top level member to rows or columns.
    Has anyone a working piece of code or, even better, a detailed description of the CubeQuery object (and of his components)?
    TIA & best wishes
    Gianluca

    SOLVED
    to add 3 members from the scenario dimension in the columns of the cubequery you can use:
    ActiveDocument.Sections["Q personalizzata"].Columns.RemoveAll();
    ActiveDocument.Sections["Q personalizzata"].Columns.Add("Scenario");
    ActiveDocument.Sections["Q personalizzata"].Columns["Scenario"].FindAndAdd("2006",1,true,true);
    ActiveDocument.Sections["Q personalizzata"].Columns["Scenario"].FindAndAdd("2007",1,true,true);
    ActiveDocument.Sections["Q personalizzata"].Columns["Scenario"].FindAndAdd("2008",1,true,true);
    ActiveDocument.Sections["Q personalizzata"].Columns["Scenario"].MemberSelectors["Scenario"].DisableSelection = true;
    for the rows substitutes Columns with Rows
    2006,2007 and 2008 are children of Scenario
    apparently the top level member of the dimension has to be always present in the QueryLabel, but can be disabled if you don't need it in the results
    BTW the second parameter in the FindAndAdd method could be substituted by the constant bqOlapMemberSelector, unfortunately if you use the constant instead of the value 1, you get an error message stating that the constant is not defined
    Gianluca

  • Retreiving the content created with the Note Tool via Javascript??

    Hey guys, is it possible to retrieve the text content created with the Note Tool from the tool palette  in a photoshop document via Javascript? Basically, I wanted to store some text inside the Photoshop psd document, and then later on I can use scripting to access the content to be use as variables.
    I have search the Javascript scripting reference pdf and the forum here, and I can't find any info the Note Tool. Much appreciated.

    Ok, so I am using the activeDocument.info.keywords property to store my text content. The content is basically a chunk of text that contains some parameters that the user can modify to save out a document. In my script, I am using a variable to store the content from the info.keywords property. But my next hurdle is how can I extract specific part of that variable into other variables, like storing the C:\projects\Textures\ into another variable? I've done some research and got a sense that the "match" method in javascript along with the use of regular expressions might do the job. But I am stuck. Any suggestions?
    info.keywords property has the follow chunk of text:
    // file path to save 
    path(C:\projects\Textures\)  
    // save file format (psd or tga, etc)
    format (tga) 
    // include a single alpha channel with the file y/n 
    alpha(n) 
    // alpha name - default should be "alpha1" 
    alphaName(alpha1) 
    // scale from the original size 
    scale(.5) 
    //sharpening
    sharpen(.5)
    script code:
    var saveDoc = activeDocument.info.keywords;
    var savePath = saveDoc[0].match(regular expression goes here); // how to grab C:\projects\Textures\ from the saveDoc variable???
    alert(savePath);

Maybe you are looking for

  • Amount of days in a month

    Hi. How do I retrieve the amount of days in a month? Thanks.

  • My macbook pro will not go to sleep immediately.

    Whether I choose sleep manually or close it, it takes at least 30 seconds before it actually goes to sleep. Anyone have ideas as to why this happens or how to fix it? yes my power saving preferences are set

  • [ANN] JSF/Spring integration solution

    We developed a solution for integrating JSF with the Spring framework (http://www.springframework.org/), a well-designed, extensible and easy-to-use Java framework built around an Inversion of Control container (see http://martinfowler.com/articles/i

  • Trying to add 1 to db cell, but instead it adds 14million!

    HI, I am trying to add "1" to a cell in a db, but instead, it adds like a million.... I'm confused, here is the code which does it, it would be awesome if anyone can help! Thanks String sql2 = "SELECT * FROM users WHERE ID = "+jnum+""; upd = stmt.exe

  • Image not drawn for a JComponent

    Hi I've got a JComponent which I use as a TableCellRenderer. The problem is that the Image is not drawn to the Graphics object of the paint method. Only when the form is resized is the Image shown. If the image change it is not shown at all. (remove