Home
Analytics
Popup or Alert window
TheRealDea
I have a user that is wanting, what I'd call popup. The window should be on top of the report without the report contents disappearing. Purpose of te popup is to be informational in nature. Nothing of thee *alert* nature. I can get the alert() to work, but it looks generic and it is not customizable. Can someone help me create this informational popup?
Thanks in advance.
Find more posts tagged with
Comments
mwilliams
Hi TheRealDea,
When would cause this popup to come up?
TheRealDea
I was hoping to have a hyperlink. For example, if I have 50 cars, I want to be able to click the 50 and then see 25 Fords, 15 Chevrolets, 10 Plymouths in a sizable window. I am able to make an Alert() work, but it seems very 'cluncky'. I figured if I could understand how to make a regular window dynamically appear, that would be perfect.
TheRealDea
Just to clarify my prior posting, the 50 would be the hyperlink and then when I click he 50, I would see the subsequent details.
mwilliams
TheRealDea,
Would building a detail report that you hyperlink to in a pop up window not work for you in this case?
TheRealDea
The alert window(popup) appears by the following code:
<A HREF='javascript:onClick=alert("Fords: " + <VALUE-OF>row["fordCnt"]</VALUE-OF> + "n" + "Chevrolets: " + <VALUE-OF>row["chevroletCnt"]</VALUE-OF> + "n" + "Plymouths: " + <VALUE-OF>row["plymouthCnt"]</VALUE-OF>)'><VALUE-OF>row["Vehicles"]</VALUE-OF></A>
However, I can not change the windows size, message, icon, etc... .
TheRealDea
Michael,
You have my attention. What would you be proposing?
mwilliams
TheRealDea,
If I'm understanding correctly, you essentially want a detail report when you click on a value in the main report. You can create a separate BIRT report with all the formatting, etc. that you want that uses a parameter passed from your hyperlink to show the correct detail information. You would be opening a detail report from the main report. This may not be what you're looking for as this is actually another report to show the detail and not just a pop up of information from your current report.
TheRealDea
Michael,
I guess functionally speaking, you are correct. One main report and a subsequent report. However, the spin on the second report is that the end-user does not want another report appearing. They just want a popup. They have kinda locked me into this option and are not very negotiable, especially once they saw the Alert() window consept. I have also be able to utilize the 'this.helpText' to display the required details when they passed the mouse over the cell, but again they wanted something that would be 'clicked' to determine what/when they see details supporting a figure.
Thank you for assitance you can offer.
TheRealDea
Any thoughts? Anyone...
TheRealDea
Would anyone have any suggestions on how to create an informational window?
donepudi
Hi,
I have a requirement to open the URL from BIRT generated PDF in a new browser window, please let me know how to achieve this.
Thank you
mwilliams
Where do your links currently open? Maybe I'm not understanding. Can you explain more? What is your BIRT version?
donepudi
Thanks Williams for the reply.
After generating the PDF we are loading that PDF in a web browser where in we can preview(we are loading that in html iframe) before delivering it to the customer.
when we open the PDF in web browser window, after clicking the URL in the PDF it is opening the specified URL in the same page instead of opening in new tab/window.
app.launchURL('
http://www.google.com',true)
; is suppose to open the link in new tab. please advise the solution on click on PDF URL in new tab when the PDF loaded in Web page
we are using BIRT 3.7.1
Thank you.
<label id="224">
<property name="style">NewStyle</property>
<method name="onRender"><![CDATA[if(reportContext.getOutputFormat()=="pdf")
this.action = app.launchURL('
http://www.google.com',true);]]></method>
;
<text-property name="text">www.google.com</text-property>
<structure name="action">
<property name="linkType">hyperlink</property>
<expression name="uri">"
http://www.google.com"</expression>
;
<property name="targetWindow">_blank</property>
</structure>
</label>
mwilliams
It works for me, when viewing the PDF in the browser. That obviously takes us to it being caused by being embedded in the iframe. Can you attach your html page, to show me how you're embedding the pdf, so I can test? Thanks.