[英]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:
我希望这能让情况更清楚:
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.