简体   繁体   English

如何根据项目创建 URL 并保存以供复制到 Oracle Apex 20.1

[英]How to create a URL based on Item and save if afterwards for copy in Oracle Apex 20.1

I am working with Oracle Apex 20.1 and looking for a workaroung to create URLs based on the value of an item.我正在使用 Oracle Apex 20.1 并寻找一种工作方法来根据项目的值创建 URL。 The created URL should than be used to forward to other team members to visit the page with the created URL.创建的 URL 应该用于转发给其他团队成员以访问具有创建的 URL 的页面。 In addition, the creator of the URL should have the option to copy the created URL and forward it to his team.此外,URL 的创建者应该可以选择复制创建的 URL 并将其转发给他的团队。

For example:例如:

Item value: My Team 2020 Prepare URL and get URL afterwards URL should be: apex.somewhere.com/pls/apex/f?p=AppID:SessionID/MyTeam2020 After creation URL forward/open page with new URL My current approach looks like this: Item value: My Team 2020 Prepare URL and get URL afterwards URL should be: apex.somewhere.com/pls/apex/f?p=AppID:SessionID/MyTeam2020 After creation URL forward/open page with new URL My current approach looks like这个:

DECLARE

 l_url varchar2(2000);

l_app number := v('APP_ID');

l_session number := v('APP_SESSION');

BEGIN

l_url := APEX_UTIL.PREPARE_URL(

p_url => 'f?p=' || l_app || ':4:'||l_session||'::NO::P90_URL',

p_checksum_type => 'SESSION');

END;

What I exactly to achieve is the following.我到底要实现的是以下几点。 I hope this makes the situtation more clear:我希望这能让情况更清楚:

  • I have one page (lets say Page 10) which is used to give reviews or assessments for a defined team我有一页(假设是第 10 页),用于为已定义的团队提供评论或评估
  • I have multiple teams with each one having a team owner我有多个团队,每个团队都有一个团队所有者
  • When starting the application for the first time the team owner selects a name for his team (Page Item to be submitted) and creates a "restricted / confidential page" by creating a shared URL (also needs to be submitted in a table)首次启动申请时,团队所有者为其团队选择一个名称(要提交的页面项目)并通过创建共享 URL 来创建“受限/机密页面”(也需要在表格中提交)
  • This restricted page should be automatically redirects to the page 10 for giving the reviews此受限页面应自动重定向到第 10 页以提供评论
  • To get access to this restricted page the team owner needs to create an unique url and provide it to his team要访问此受限页面,团队所有者需要创建一个唯一的 url 并将其提供给他的团队
  • Now everyone within the team should have access to the page with the created URL to give reviews现在团队中的每个人都应该可以访问带有创建的 URL 的页面以进行评论
  • So the view for each team changes and they can only see the results of the given reviews within in the team and not from the other teams.因此,每个团队的视图都会发生变化,他们只能在团队内部看到给定评论的结果,而不能从其他团队看到。

Any idea how to tackle this problem or this is any best-practice solution for that.任何想法如何解决这个问题,或者这是任何最佳实践解决方案。

Thanks.谢谢。

As you created the URL and stored it into a variable ( l_url ), in order to "save" it, store it into a table:当您创建 URL 并将其存储到变量 ( l_url ) 中时,为了“保存”它,将其存储到表中:

insert into urls (url) values (l_url);

(add additional columns, such as description, timestamp, whatever). (添加其他列,例如描述、时间戳等)。

How to call it?怎么称呼它? Create a report page which will retrieve that value.创建一个将检索该值的报告页面。 Share its (report's) URL with colleagues so that the could access it and view URLs you saved.与同事分享其(报告)URL,以便他们可以访问它并查看您保存的 URL。 If you turn the saved value into a link column (in the report), even better - users will just click on it and open the page immediately.如果您将保存的值转换为链接列(在报告中),那就更好了 - 用户只需单击它并立即打开页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM