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.
Related
In Maximo, using the BIRT ide to develop/modify reports, there is a section to allow the developer to add and modify parameters for the report. These parameters are usually entered by the user at runtime in a dialog. In the ide there are fields for 'prompt text' which appears next to the parameter, but this prompt text does not show up in Maximo. Is there a way to get this to show up in Maximo at runtime, instead of just in the ide at development time? Maximo 7.6.1.0 is being used.
From what you describe, I suspect you haven't generated a request page for your report. Select your desired report from the Report Administration app and use the button name "Generate Request page" to the bottom right of the table in the List tab of said app.
This should fix your problem.
Example screenshot in a related question:
how to generate request pages for multiple reports
I need to display a context menu when a user right clicks on a report
and the user can perform an action on the rows selected. How to achieve this?
I can see there is already an action button on top of an interactive report. Can we customize that?
There's no built in way to do this. I see a few options:
You could hack together your own actions. You would add a Dynamic Event on mousedown on your report, then some Javascript to handle the action.
If it doesn't have to be a right click option, you can add a custom menu to a report. Here's one way of doing it. http://hardlikesoftware.com/weblog/2015/07/13/apex-5-0-custom-menus/
Also, if using the Interactive Grid is an option, that menu can also be customized. See: http://hardlikesoftware.com/weblog/2017/01/24/how-to-hack-apex-interactive-grid-part-2/
If you're willing to use a commercial Apex add-on product, I have used the FOEX add-ons with great success. However, it's not cheap and it would require changing your report to use their report-style (which we like). Then you can add a context menu that's maintained via the Shared Components -> Lists.
https://www.foex.at/home/
I'm just a user, not a shill or employee...
I am using Oracle Application Express 5.1.
In my apex application some Page Processes, Branches or Valdiations lost the "When Button Pressed" linking.
The buttons work so far.
But if the application is exported and imported again, the buttons do not work anymore. (In the export file, the non-existent Button-ID is referenced)
Thanks in advance.
This happens also when duplicating pages. the solution is to search for references of the old button ID, and manually replace it with the right select list item of the button.
as I understand it, apex gives a randInt ID to each button that doesn't have a specified "static ID", so if this really bugs you it is possible to define the button click as a dynamic action on the jQuery selector defined by the static ID of the button.
Hopefully they will fix the problem by Apex 18.3, cause this also happened with Apex 18.2
Iam using a Breezing forms component of joomla on a newly developed website, but the problem is wen i create a Contact us form from quick mode with all the fields, textboxes, text areas etc............but after all the things are done and i try to save the form it is not saving, like after clicking save and navigate away from the page and again i go to quick mode forms
there is no form saved............i tried this on my local version of the website it is working fine there but cant understand why it is not saving on the online version of it.......am i missing something.
any help will be much appreciated thanks.
I had the same problem. The solution I found was so simple so that I was a little bit ashamed.
Just under the menu line in beezingforms - managing forms page, there is a pulldown menu named Package. Select Quickmodeforms of easymodeformsfrom from the pull down and all the forms I thought where not made are showing on the screen.
I am trying to do something which I would've thought was very simple, but it's causing me a huge headache. I am using Grails ui plugin to get a dialog box. I have a number of instances - some where dialog boxes need to appear when a button is clicked. This I have got working. But I also need to have some that appear when the page is loaded... for information / warning purposes. But I'm struggling with this.. What should I put as the trigger? I don't want the user to have to click anything before the dialog appears.
Also - has anyone successfully managed to change the style of the gui:dialog ? Mine was originally appearing as text with an invisible background before I added the class=yui-skin-sam to the main.gsp body, but that's had to replace the existing style class I already had on the body! how frustrating !!
Had the exact same problem... got it working by adding "visible=show" to the dialog's attributes. Example:
<gui:dialog title="Modal Dialog" modal="true" visible="show">
This message will appear in a modal dialog when the page loads.
</gui:dialog>