Idea Summary
Adding html buttons to classic reports is way too complicated. It needs to be simpler. Too many steps for something that should be much easier and less time consuming.
Currently you have to:
1. Add the html button code to the query
2.Disable Escaping (Render HTML) in the Report Column - make changes to the column to allow the display of html
3. Create a Hidden Item for the ID
4. Add a Dynamic Action on Button Click
- Event: Click
- Selection jQuery Selector Type
- Add a jQuery Selector
5. Add True Action to Execute JavaScript Code
6. Add True Action to Execute PL/SQL Code
7. Make sure that the delete ID is submitted
8. Add a third True Action to Refresh the report
This is way too complicated, providing a number of places where errors could occur, and is really difficult to figure out by the average user doing this for their first time, or remembered by experienced user.
And YES, sometimes developers want the flexibility to use a Classic Report with a delete button….I know that there are other ways of doing this.
Use Case
There are many times that we use classic reports inside of popup pages, to add or delete data that is not necessarily part of the data table that is represented by the master page. Example: displaying a list of emails, that are in another db table, where the user can add more emails or delete from the classic report displaying the email addresses,
Preferred Solution (Optional)
1. Add a column,
2. Add a button / Style the button, etc…,
3. Link the button to a PL/SQL, SQL, Or Javascript action, tell it what ID column from the report to use
4. And…done