Script text not working in birt frameset - birt

I am currently working to make a server side pagination in BIRT report.
For that I have embed my own html buttons and a scripts where on onclick event ,the script gets called and it reload the page with the required parameters so that query can be filtered.
But strangely my script text works in the preview mode but when i switch it to frameset It simply stops working and I am not able to reach my script on onclick event of my button
Thanks

Related

How do I view last pages output in debugger

I have events set to fire throughout the website on button and link clicks etc.
For this particular button, on click, the page loads, displays for a second the GA Debugg output and then redirects to a new page before I've had a chance to read the output from the button click event.
Is there a way in GA Debugger to view the last pages output?
I'd suggest installing the ObservePoint plugin - you can enable a "persistent" mode that won't clear the console on page refresh.
https://lh6.googleusercontent.com/lKLkVzXtUv5vKaUkGr7XcuDp4fPfKpjd9vS7xl0Ci9N7WUY1Jvt6t4CNfxWLqYn6pOMG1j9F=s640-h400-e365-rw
ObservePoint doesn't format the GA params as nicely as the debugger, but it's serviceable.

Displaying a .pdf in WebBroser WP7

I have an application which has a listbox. When an item in the list is clicked the app takes us to a new page with a web browser which displays the contents of that particular item (we get these from a particular list which is previously parsed xml data) in a web browser (because they also contain html elements). This all works perfectly fine.
Now, there are a few items in the list which contain a link. The link displays in the browser and when clicked it takes us to a .pdf file (still in the webbrowser) which is not being displayed.
What I now wonder is:
How to check if the link is being clicked? Is there an event for that?
How can I display the .pdf within the webbrowser control without the aid of other application?
Thank you,
Should you need any code that's currently working and written just ask.
To know if the link is clicked, you can use the Navigating event of the webbrowser.
Unfortunately, you can't use the webbrowser to display the PDF. You'll have to use a WebBrowserTask instead.
To sum it up, in your case you can use the Navigating event to detect the click on the link (since it's apparently important from you), then cancel the navigation (by setting e.Cancel = true in the event handler), then call the WebBrowserTask to display the PDF document.

Loading inline content from an iframe

First of all, I had all my buttons which opened the Colorbox using the "ajax" class. That class however caused me many problems:
1-When I open one window, it will appear, when I close it and re-click the same button, it will be loaded twice (so I need to click twice to close)
Is there a fix for this?
What I have done for the moment:
Use iframes; my only problem now is I cant load the other colorboxes that are linked in that iframe. I am using the inline class.
Let me re-phrase that: I click on button "generate" it opens first colorbox with the iframe class. Inside that iframe I have a "generate_2" button which has inline content. Once I click that second button nothing happens. This used to work when I had the first button set to ajax.
What can I do?
thanks!
I had the same problem before. Since JavaScript cannot affect iframes, you must add the JavaScript code inside a script tag in the iframe page itself.
when I close it and re-click the same button, it will be loaded twice (so I need to click twice to close) Is there a fix for this?
I'd wager you are using ajax to open a complete HTML document, aren't you? You shouldn't be doing that. It's not valid HTML to nest one HTML document inside another, and you are causing the scripts from both to be applied to the original document. Each time you load that content, those scripts are being loaded and executed all over again.

ASP CascadingDropDown control does not reload on postback

I have a web form page that contains two modes: View and Edit. When in view mode, I do not load the CascadingDropDown control. When in edit mode, I do load the CascadingDropDown control.
When in edit mode, the user also has the ability to click another edit button to enable a set of checkboxes and then click update. Clicking these buttons while in edit mode causes the web form to be posted back to the server for process. When the form is redisplayed (still in edit mode) some dropdowns have values to choose and others have nothing. I programatically create the cascading drop down controls in the pre-render phase ever time the page is loaded. I noticed the AjaxControlToolkit script code is not in the output HTML when the user posts back but it is the first time they come into this page.
Seems like I need a way to get the Toolkit to load its scripts after postback? I cannot use update panels either because new dropdowns are added after postback.

Calling reports from forms without displaying the form

As the title says, I would like to call the reports from forms without actually displaying the form. I am very new to Oracle forms. I tried to do the following but it didn't work:
1)Inserted the code to call the reports in WHEN-NEW-FORM-INSTANCE trigger.
2)Removed the canvas so that the form won't be displayed.
But I got the error
RM-30173: Module contains no canvases
Is it possible to do this?. I am trying to display the report when a menu item in an oracle forms application is clicked which in turn would call the above form but directly displaying
the report instead of displaying an UI.
Update:
I am using Forms Builder 10.1.2.
As for why I don't want to do this directly in the menu(MMB), the menu doesn't have an option to attach a report and I've already got a working form that generates an report but the code to call the report is written in a button-pressed trigger.
In,
http://forums.oracle.com/forums/thread.jspa?threadID=1107427&tstart=45, I am trying to do what Andreas Weiden, suggested in that thread.
I think your problem may be in limiting your menu options to only opening forms.
For example, you could instead have the menu in your form execute a form trigger which would call the report. Or a web.show_document to the url for the Report.
What version of Forms are you on? It's been a while since I did much with Forms, but this may give you a start.
I am only familiar with Reports 6i, and it was simple to just run the report from the menu.
We created a menu item that was PL/SQL Command Type, dropped the code to run the report module in the Menu Item Code box, and all was good. I'd be surprised if you couldn't do something similar in 10g reports.
Move the code from the form's button into a procedure in a common library. Attach the library to the form and to the menu module. Call the procedure from both the form button as well as the menu.
I solved the problem by creating a blank canvas in the 'dummy form' as 'FRM-30173: Module contains no canvases' was returned when no canvas was found in the form.
The approach suggested by Andreas Weiden here: http://forums.oracle.com/forums/thread.jspa?threadID=1107427&tstart=45 works well.
You could have also just created the report and just call it behind the menu option but hiding the report parameter form and the report would automatically begin to generate. In the menu option just before you call the report name just set the report paramform to hide and destype to screen. This would have save the trouble of creating a blank canvas and maybe having to suppress error messages if any was thrown.

Resources