Pointer
Pointer

Reputation: 2186

Redirect to url in new tab from plsql code

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;

Upvotes: 2

Views: 12178

Answers (1)

Koen Lostrie
Koen Lostrie

Reputation: 18665

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;

Upvotes: 5

Related Questions