I am trying to make a fairly complex dashboard, and have found that the purehtml tags aren't sufficient for my needs. I'd like to layout the dashboard structure in a standard html/css page, and then embed the report images within their appropriate sections. One of our web developers showed me how to "screen scrape" the report page to get the image link, and at worked when I put my first report item into the dashboard page. However, when I added a second item, the first report was erased and replaced with the newly added on. So, it looks like these img links are not persistent. How do I go about achieving my goal of embedding the report images into another web page?
Direct Access To Report Images Within Another Web Page
(6 posts) (2 voices)-
-
Could you give an example how are you trying to embed the images into another web page? What is the method you use when you "screen scrape"?
--
myDBR Team -
<table style="margin: auto; text-align: center; width: 1000px;"> <tr> <td style="width: 800; border: 1px solid #000000;"> IMG REMOVED </td> <td style="width: 200; border: 1px solid #000000;"> IMG REMOVED </td> </tr> </table>
So that's how I want to make use of the report images...
I got the img links by hitting the report URL, then doing an inspect element in Chrome and copying out the HTML (yeah, I know that's now real "screen scraping"... I thought I was going to have to do that each time the report ran, but then it looked like I could just copy the img tag and reuse it each time.
?
-
Um, those images weren't supposed to show up...
here's the first one...
<imgNOSHOW class="dbrResultSet " style="height:400px; width:800px;" src="IMG REMOVED" alt="">and here's the second one...
<imgNOSHOW class="dbrResultSet " style="height:250px; width:250px;" src="IMG REMOVED" alt=""> -
In order to embed images to external web-page, do following:
- Create a report that returns a single image-chart (you can use parameters to choose chart) you wish to embed
- Access the report normally with myDBR to get it's URL
- Add
&getchart=1
to the end of the report
As a result you will get an URL you can put into your img-tags href-field.
See documentation at http://mydbr.com/doc/?manage.directurl.html
--
myDBR Team -
Thanks! Didn't realize that there was a section on that in the help files :-\ Exactly what I needed, though! :)
-
PS - no one else can see those report images since they reside on a web-server that's inside our firewall, right? If for whatever reason they are viewable, can you please remove them? I don't want our customer counts etc being published on the web
Reply
You must log in to post.