I'm using Oracle APEX and I have a report region in a page that displays columns from a SQL query. I want to add edit buttons to the first column of this report so that the user can click on it and edit/review one of the results. How do I add this edit button? Thanks.
In the pop-up dialogue select the form you just created and remember to add the primary key from the interactive report matching primary key on the form you're going to. Save your work run the IR and click the pencil and it will navigate to the form you just created and will show the correct record to be edited.
Do the right-click on the interactive grid region and select the option Create Button and set the following properties: Button Name: Add. Label: Add. Button Position: Copy.
The Interactive Reporting Region is an innovative new technology that allows end users to customize reports. By putting more power in the hands of users it reduces development time and effort while simultaneously enhancing application functionality.
There are 3 main button types described in material design. The raised button is a standard button that signify actions and seek to give depth to a mostly flat page. The floating circular action button is meant for very important functions.
Add a column to the SELECT statement of the report like this:
SELECT '' edit_link, -- This is the new column
...
Go to the Report Attributes tab.
Move the new column EDIT_LINK to the top of the list of columns (if you want it to be first).
Click on the pencil and paper icon to the left of the EDIT_LINK alias to open the Column Attributes page.
Go to the Column Link section of the Column Attributes page.
Pick one of the icons shown as [Icon 1], [Icon 2], ... (alternatively you can use one of your own but that is more advanced).
Fill out the remaining Link fields to specify which page of your application you want to go to when the link is pressed and what values you will be passing in. Lists of values are supplied to help with this. For example, you might specify:
Item 1 Value: #EMPNO#
(This would navigate to page 42, setting page item P42_EMPNO to the value of EMPNO in the current report row.)
Press the Apply Changes button.
Now run the page and you will have an edit link for each row.
You can use the Column Link section (as per Tony Andrews' answer) on any column in the report to add links. e.g. "Emp Name" might link to the employee details, "Dept Name" might link to the details for the department, etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With