How do you add an edit button to each row in a report in Oracle APEX?

让人想犯罪 __ 提交于 2019-11-29 04:06:41
Tony Andrews
  1. Add a column to the SELECT statement of the report like this:

    SELECT '' edit_link, -- This is the new column
        ...
    
  2. Go to the Report Attributes tab.

  3. Move the new column EDIT_LINK to the top of the list of columns (if you want it to be first).

  4. Click on the pencil and paper icon to the left of the EDIT_LINK alias to open the Column Attributes page.

  5. Go to the Column Link section of the Column Attributes page.

  6. Pick one of the icons shown as [Icon 1], [Icon 2], ... (alternatively you can use one of your own but that is more advanced).

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

    • Page: 42
    • Item 1 Name: P42_EMPNO
    • 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.)

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!