Invalid Button ID - oracle

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

Related

How to create context menus which appear on right clicking in oracle apex report?

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...

Oracle Apex 5.1: Edit link in report not working

I have made an interactive report with a From. My report is made by joining two database tables. After creating the report and the form page I changed my Form Type from "Normal" to "Modal Dialogue" in page designer and also made several changes in the form page.
When I run the report page and click the "Edit" link in the report the form page appears but the form field is not fetching any data to be updated. Also there is no "Delete" button and "Save" button in the from which are supposed to be there.
Could anyone help me correct the edit link so that when I click the edit link I can edit data and save or delete?
When I run the report page and click the "Edit" link in the report the form page appears but the form field is not fetching any data to be updated.
What are the values in session? Did you check those ? After changing Normal page to Modal page make sure you are passing ITEM and Value to you're modal page when user clicks on EDIT link.
Also there is no "Delete" button and "Save" button in the from which are supposed to be there.
This button must be conditional. Lets say for an example i wanted to see Delete and Save button when One of my page item have some value(where by i can make sure i'm editing something in this case) if not then i am creating new stuff so i don't need to see Delete and Save button.

Two quick create forms are opened from Subgrid on "New" button click

I have kind of unusual issue with one of my subgrids in CRM.
On the Main form for an entity i have several subgrids, each of them for records from different entity.
When creating new record from subgrid, all of the forms are opened as expected, except one. It opens two quick create forms.
Forms are not opened normally, one following another. First one looks fine, except there is display name displayed twice. Another form doesn't display any field, just the close button. You can see the issue in the attached images.
I have checked Command for "New" Subgrid button in Ribbon Workbench, and there is nothing more than standard command. I have also tried to do this in several browsers, but the issue continued to appear. I have checked JavaScript functions and none of them is connected with this form.
Now I have lack of ideas what could cause this issue.
I need help for this if anyone had similar issue.

Access 2013 Web App Cascading Combobox

I am trying to create a cascading combobox. I have read on the internet that you should be able to very simply use the "Parent Control" on the combobox's "Data" button. But I don't have that control on the data button. I've also read about using a query built directly on the combobox to run in the browser and not on the web. But I'm uncertain as to what that means. I see no build button or anything in the combobox's data button. Can anyone help? Was this something that came out after the app's release that not everybody has? I'm lost. Please, help if you can. Thank you!
It seems that "Parent Control" is not available in on-premises SharePoint and and only available in SharePoint Online. This may be your issue.
In any case there is a simple 3 minute test to see if you can use cascading combo boxes or not:
Create a new Access Web App;
Open the App in Access;
Create a new blank table and add just one short text column (I called it "Test_name"), save the table as "Test_table";
Edit the List view of Test_table and add a new combo box;
Open the combo box's "Data" menu and select Test_table as the Row Source.
Now the "Parent Control" property should have appeared at the bottom of the list of properties for the "Data" menu (see the image). If it hasn't, it means this feature is not available to you.
See diagram

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