如何向 Oracle APEX 中报表的每一行添加编辑按钮?

发布于 2024-07-25 23:16:19 字数 113 浏览 3 评论 0原文

我正在使用 Oracle APEX,并且页面中有一个报告区域,用于显示 SQL 查询中的列。 我想将编辑按钮添加到此报告的第一列,以便用户可以单击它并编辑/查看其中一个结果。 如何添加这个编辑按钮? 谢谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

尝蛊 2024-08-01 23:16:19
  1. 向报表的 SELECT 语句添加一列,如下所示:

    SELECT '' edit_link, -- 这是新列 
          ... 
      
  2. 转到“报表属性”选项卡。

  3. 将新列 EDIT_LINK 移至列列表的顶部(如果您希望将其置于第一列)。

  4. 单击 EDIT_LINK 别名左侧的铅笔和纸张图标可打开“列属性”页面。

    单击

  5. 转至“列属性”页面的“列链接”部分。

  6. 选择显示为 [图标 1]、[图标 2]、... 的图标之一(或者,您可以使用自己的图标之一,但这是更高级的)。

    选择

  7. 填写剩余的“链接”字段,以指定按下链接时您想要转到应用程序的哪个页面以及您将传入哪些值。提供的值列表可帮助您完成此操作。 例如,您可以指定:

    • 页数:42
    • 项目 1 名称:P42_EMPNO
    • 第 1 项值:#EMPNO#

      (这将导航到第 42 页,将页面项 P42_EMPNO 设置为当前报告行中的 EMPNO 值。)

  8. 按“应用更改”按钮。

现在运行该页面,每行都会有一个编辑链接。

  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.

你的笑 2024-08-01 23:16:19

您可以使用报告中任何列上的“列链接”部分(根据托尼·安德鲁斯的回答)来添加链接。 例如,“员工姓名”可能链接到员工详细信息,“部门名称”可能链接到部门的详细信息等。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文