Redirect to url in new tab from plsql code

↘锁芯ラ 提交于 2019-12-14 03:44:03

问题


On button click action "Redirect to URL" I call below script:

javascript:var a = window.open('f?p=300:99:&APP_SESSION.::NO:105:PARAM_1,PARAM_2,PARAM_3:&P99_PARAM_1.,P99_PARAM_2,&P99_PARAM_3.');

Is it possible call this from PLSQL in oracle apex application eg.

begin
   //call here
   //htp.p(??
end;

回答1:


You can use APEX_UTIL.REDIRECT_URL for this. Check the documentation. Your pl/sql would then be (bind var syntax :P1_ITEM because it is pl/sql):

BEGIN
  apex_util.redirect_url(p_url => 'f?p=300:99:'||:APP_SESSION||'::NO:105:PARAM_1,PARAM_2,PARAM_3:'||:P99_PARAM_1||','||:P99_PARAM_2||','||:P99_PARAM_3);
END;


来源:https://stackoverflow.com/questions/58835837/redirect-to-url-in-new-tab-from-plsql-code

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