Apex popup URL on branch
Hi,
I'm trying to generate a popup page by inserting:
javascript:popupURL('f?p=&APP_ID.:79:&SESSION.')
in the "URL target" field of a BRANCH (target page: 79)
It works fine on buttons, but I'd like to apply it on a branch because Button Items haven't the "Optional URL Redirect" settings.
Any idea?
Thank you!
Mark
In your branch enter a request - POPUP
On your branch target page create a conditional region with this in the footer:
javascript:popupURL('f?p=&APP_ID.:79:&SESSION.')
and a PL/SQL Expression as a condition:
:REQUEST IN ('POPUP')
This will open a popup whenever you branch to that page using that particular branching process.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------------------
Similar Messages
-
Hi,
I created a Feedback page using the apex feedback feature, not a customized page. The link to the Feedback page calls the apex.navigation.popup.url using javascript to open a popup window. Does anyone know the proper syntax for adjusting the width and height of the popup window?
I have tried the following, but the window width/height does not adjust:
javascript:apex.navigation.popup.url('f?p=&APP_ID.:102:&SESSION.:::102:P102_APPLICATION_ID,P102_PAGE_ID:&APP_ID.,&APP_PAGE_ID.',width=350,height=400);
javascript:apex.navigation.popup.url('f?p=&APP_ID.:102:&SESSION.:::102:P102_APPLICATION_ID,P102_PAGE_ID:&APP_ID.,&APP_PAGE_ID.',350,400)
Version: APEX 4.2
Thanks,
MakeishaWhy not call navigation.popup instead of navigation.popup.url then? popup.url does have the hardcoded values, but it just calls popup anyway. Nothing stops you from doing the same:
javascript:apex.navigation.popup({"url":'f?p=&APP_ID.:102:&SESSION.:::102:P102_APPLICATION_ID,P102_PAGE_ID:&APP_ID.,&APP_PAGE_ID.',"name":"winLov","width":350,"height":400});
Use "winLov" if you want to keep that same popup.url functionality of overriding the same opened window. If you do not provide name the url will open in a new window every time.
The width and height values are hardcoded in popup.url, but they are not in .popup. There are only defaults in a default object there, and will be overridden when you provide an object with these parameters to the function. -
How to open URL as a popup window through BRANCH in APEX reports
Hi
I am using APEX 4.0
I have a branch with a target type of URL. The branch is triggered by pressing a button. There is also a plsql process on the same button which fires at the process point of "On Submit-After Computations and Validations". I want to open the branch URL as the popup Window. I tried doing it with javascript, but then the plsql process doesn't execute. Any pointers will be helpful.
Thanks
HinaYou can use the apex.submit javascript function. This function allows to store some item value from session scope to database scope. So that a page process picks the correct item value. Not sure if it works with computations thou.
See the docs: JavaScript APIs
Example
Submits the current page with a REQUEST value of 'DELETE'.
apex.submit({ request:"DELETE", set:{"P1_DEPTNO":10, "P1_EMPNO":5433});
Then add a branch with type "branch to function returning URL" This page branch can be made conditional on the same request as the page process.
The returned url would be either include the javascript popup or window.open function or simply be the url. Important thing here would be to use a function that reads the url item from database state, since at that moment the computation or page process will have set the item on database level, but it is not directly available on page level.
meaning ":p2_item" or v('P2_ITEM') should work. &P2_ITEM. in the url will probably not work. -
Hi,
I am using this to create a pop-up on a window in Apex. Can I set up to make all the pop-ups in the same window? Thank you for your help.
javascript:popUp2('f?p=&APP_ID.:300:&SESSION.:::::',450,450)Yes.
Lets say on clicking link1 you are opening this ==> javascript:popUp2('f?p=&APP_ID.:300:&SESSION.:::::',450,450)
You are also opening same popup by clicking link 2 ==> javascript:popUp2('f?p=&APP_ID.:300:&SESSION.:::::',450,450)
But you need to show content in popup window conditionally based on what URL is clicked. -
Flash contents not being displayed on the published Apex application URL
I've had to publish one of my apex application through an bluecoat proxy to reach my Oracle HTTP server. It works fantastic for everything - except my flash charts. Flash contents are not getting loaded.Issue is only in the published application URL,the same application is working fine internally without proxy.
Does anyone have any idea why this is failing and how I might fix this?.The bluecoat support enginner is having the following findings
I am seeing some strange behavior when the browser goes through the
proxy vs when it does not.
When the browser uses the proxy the last thing it requests is the
following(packet 354):
GET /i/themes/theme_20/btn-bg.gif HTTP/1.1 Via: 1.1 GITS6ISA Cookie:
WWV_CUSTOM-F_941005998277888_193=7DE31ABFD8D9E680 User-Agent:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.19)
Gecko/2010031422 Firefox/3.0.19 GTB7.1 (.NET CLR 3.5.30729) Host:
ithelpdesk.anupcomp.ae Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5 Accept-Charset:
ISO-8859-1,utf-8;q=0.7,*;q=0.7 Referer:
http://ithelpdesk.anupcomp.ae/i/themes/theme_20/theme_3_1.css
X-Forwarded-For: 86.98.85.117 Cache-Control: max-stale=0 Connection:
Keep-Alive X-BlueCoat-Via: E2DE37912594ECAA
HTTP/1.1 200 OK ETag: "1a887e1-92-4c2c5105" Content-Type: image/gif
Last-Modified: Thu, 01 Jul 2010 08:25:41 GMT Server:
Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server
OracleAS-Web-Cache-10g/10.1.2.0.2
(G;max-age=3600+360;age=0;ecid=121853469393,0) Date: Tue, 25 Jan 2011
07:52:55 GMT Accept-Ranges: bytes Content-Length: 146 Connection:
Keep-Alive Age: 0
That is the browser requests
http://ithelpdesk.anupcomp.ae/i/themes/theme_20/btn-bg.gif and gets a
200 ok from the proxy/server.
When the browser does not use the proxy I see the following
behavior(packet 2783):
The browser requests
http://anupserver:7777/i/themes/theme_20/btn-bg.gif 2 times, each time
the server responds with a 304 not modified status, this means the
browser has the most recent copy of the .gif file. The browser finally
does a post to http://anupserver:7777/pls/apex/wwv_flow.accept. Given
that the browser gets a 200 ok response from the proxy when requesting
http://ithelpdesk.anupcomp.ae/i/themes/theme_20/btn-bg.gif and then
stops requesting data, we need to understand why the browser is behaving
differently without the proxy(i.e. why does it request the content 2
times and why is it doing the post). The interaction between the
browser and the proxy appears normal, a 200 ok response with content is
normal, why does the browser stop requesting content?
GET /i/themes/theme_20/btn-bg.gif HTTP/1.1 Accept: */* Referer:
http://anupserver:7777/pls/apex/f?p=193:1 Accept-Language:
en-us,ar-ae;q=0.5 Accept-Encoding: gzip, deflate If-Modified-Since: Thu,
01 Jul 2010 08:25:41 GMT If-None-Match: "1a887e1-92-4c2c5105"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152;
.NET CLR 3.5.30729) Host: anupserver:7777 Connection: Keep-Alive
HTTP/1.1 304 Not Modified Date: Sun, 13 Feb 2011 12:42:01 GMT Server:
OracleAS-Web-Cache-10g/10.1.2.0.2 Content-Type: text/html Connection:
Keep-Alive Keep-Alive: timeout=5, max=999 Content-Length: 0
GET /i/themes/theme_20/btn-bg.gif HTTP/1.1 Accept: */* Referer:
http://anupserver:7777/pls/apex/f?p=193:1 Accept-Language:
en-us,ar-ae;q=0.5 Accept-Encoding: gzip, deflate If-Modified-Since: Thu,
01 Jul 2010 08:25:41 GMT If-None-Match: "1a887e1-92-4c2c5105"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152;
.NET CLR 3.5.30729) Host: anupserver:7777 Connection: Keep-Alive
HTTP/1.1 304 Not Modified Date: Sun, 13 Feb 2011 12:42:02 GMT Server:
OracleAS-Web-Cache-10g/10.1.2.0.2 Content-Type: text/html Connection:
Keep-Alive Keep-Alive: timeout=5, max=999 Content-Length: 0
POST /pls/apex/wwv_flow.accept HTTP/1.1 Accept: image/gif,
image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, application/x-ms-application, application/x-ms-xbap,
application/vnd.ms-xpsdocument, application/xaml+xml, */* Referer:
http://anupserver:7777/pls/apex/f?p=193:1 Accept-Language:
en-us,ar-ae;q=0.5 Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE
6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR
2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Host:
anupserver:7777 Content-Length: 262 Connection: Keep-Alive
Cache-Control: no-cacheHello Orton,
I think this has something to do with network access, may be a firewall restricting access to the server.
Thanks,
Machaan -
Apex 4.1 Grid branching two pages from a field
Apex 4.1,how create two branches inside the GRID
Hello,
I'm using Apex 4.1, as per the functionality, I need to use interactive report to "SEARCH records", the same will be shown in the GRID. GRID should look like as below,
| Col 1 | Col 2 | Col 3 |Col 4| Col 5 |
|Bradley, Eugene|Schoephoester Road|Windsor Locks|CT |<Details> <Confirmation>|
However there is one requirement, as the last column should have two different branch pages, under Column 5,as below,
1. Details
2. Confirmation
Please guide me on this, as how to achieve this task.
Thanks,
GirishHi,
As I got, you want to link two column into two different pages:
edit your page
edit the report region
at the top of the page, click report attribute
click edit on the column that you would like to add a link to.
go to Column Link
and fill the data that you would like ...
However, check this :
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/bldapp_rpt.htm#BABEAFDA
When I clicked reply, there was not any reply
Regards,
FAteh
Edited by: Fateh on Mar 6, 2012 11:23 PM -
How can I redirect APEX(EPG) URL with afrindly one
Hi All,
I am using APEX with EPG on oracle 11g, and I would to redirect the URL http://localhost:8080/apex/f?p=122:1:43920293912715::NO with a friendly one like this
http://project_name.mydomain.com
Is there any one can help me know; how to do this redirection where I would to hide the port no 8080 within the URL
Thank you in advance
YassinYasen® wrote:
hi is this solution working for Apex on 11g with EPG? whrere to run this code?Yes, it should work on 11g with EPG.
Using SqlPlus, log in as SYS and run the code posted by "user7449726" to change the path name and default home page of the DAD.
To change the port from 8080 (the default) to 80, run the following as SYS using SqlPlus:
CALL DBMS_XDB.SETHTTPPORT(80);
ALTER SYSTEM REGISTER;
Make sure you don't have anything else running on port 80 (such as Microsoft's Internet Information Server) or you will obviously get a conflict.
- Morten -
APEX popup from another web-application
Hello,
In an existing web-app (not developed using APEX, but using Oracle as underlying db), we are planning to add lot of APEX based pages. To start with this is what we need.
We want to write one APEX page which we want to show as POP-UP page on click of some button in the existing application.
How can this be achieved?
regards, YoraWill you have these popup pages under any authentication or as public pages? Why exactly are you doing this mixing APEX and another web based tool??
Thank you,
Tony Miller
Webster, TX -
Hi,
I have built a popup to show help to the user. When I click on help button, it shows me the help window for selection. I am facing a strange problem. Popup window opens correctly 2 times. If I click on the button to open it 3rd time, Apex application hangs.
I have few other columns as well with popup from different tables but the error does not comes on those columns. Only difference I can see is that this particular popup is coming from my custom table and not from the standard demo tables.
Any help or suggestions will be highly appreciated.
Best regards,
VikasHi,
Firstly, the close() should probably be within the function itself?
Secondly, it would be more typical to populate the parent's page item using something like:
opener.document.getElementById("P1_ITEMNAME").value = cstring;Have a look at: [http://www.oracle.com/technology/products/database/application_express/howtos/how_to_create_custom_popups.html] for examples of this.
Andy -
Difference between redirect to url and branch to url?
Hi,
I have two buttons. the first is a button in region position, the second one is a button displayed among the region's items.
For the first button I can enter a redirect to url, where I have entered a javascript call (javascript:my_function();)...and it works properly fine.
Because that is not possible for the second button, I have created a branch to page or url, selected url as target and entered there the same javascript call like in the first button (javascript:my_function();) ... result: it opens a blank page and nothing more.
So what is the different between the two calls, that the one is working and the other not.
And the resulting question would be: how to I call my javascript function from the second button??? I have no possibility to enter it directly in the button attributes and branch is not working, what now and why do buttons displayed among region's items don't support the redirect to url or page option like buttons in region position???
What I have found is that the second button has the following call when I enter for request my function: "javascript:doSubmit('javascript:run_radmin();');"
The first buttons calls this: "javascript:run_radmin();"
Can I change this anywhere(I've looked in template,but found nothing).
Thanks for solutions and explanations.
chrissySee
Re: Button Item and JavaScript -
Someone changed the apex admin URL then left the co; how can I retrieve it?
Hi alll
I have an XE database running an APEX site at http://127.0.0.1/ port 80
http://127.0.0.1/apex is 404 NOT FOUND
How can I find the admin URL of the apex? This is Windows 64 bit
Edited by: charred on Feb 14, 2012 10:33 AMHi,
which XE-release did you configure how to run which APEX on port 80?
Basically, the error message you receive tells you you don't have APEX on port 80...
Note that the default port for the APEX shipped with XE would be 8080.
The Admin-URL for apex would usually be http://<yourhost>:<yourport>/apex/apex_admin
-Udo -
Hi!
I've make HTML region and when i write
<table style="background-image: url(/i/yes.gif);">
that work fine because yes.gif is "integrated" in Apex, but if i write
<table style="background-image: url(/i/zag1.gif);">
where zag1.gif is my made picture - don't work.
I've try to load image with apxldimg.sql script but nothing.
How can i access custom file on my computer? Is there some security settings and can i set some directory for free accessing?
NenadThanks!
That's OK, but i still have some problem:
I can see background image but on print preview it disapear (only background defined in style clause is not viewable, other elements are ok). -
Problems passing value to an APEX application URL
Greetings,
My environment is:
Apex 4.0.1
Oracle 11g
Apex Listener (Weblogic 10g)
I am trying to pass a value to an Apex application from outside of Apex. Here is the URL I am using:
http://<servername>:<portno>/apex/f?p=138:2:0::::F138_ID:abcde
What happens when I enter this URL is the Login page is presented and I can successfully log in. I am directed to page 2 but the value of F138_ID is empty. I have tried it with an application item and a page item but still no value is passed. I have tried creating the page item where the value is populated from the application item. I have tried setting the value in a PL/SQL process. (:P2_ID := :P138_ID;) again no luck.
Should this work? And if so, does anyone have any idea why it isn’t?
Thanks for your help,
LarryThanks Sarvan,
Unforunatly that did not work. I have been working with it some more and noticed that if the page I am trying to access has an Authentication of 'Page is Public' the passing of the value works as expected. It is only when Authentication is set to 'Page Requires Authentication' (i.e. the user needs to provide a userid and password) that it fails. Do you have any idea how to get around this?
Thanks
Larry -
APEX Application URL doesnt recognize parameters (Doesnt work consistently)
Hello,
I have developed an application which I have published in company's intranet website. There are several links published for same application with different parameters. We are facing issues in publishing parameterized URLs as application is not recongizing the parameter values passed (in internet explorer it doesnt recognize at all, but in mozilla, once redirected if we again select address bar and press Enter it does recongize the parameter without changing URL).
E.g. I have hyperlink in intranet with
http://msi-pa-637.marvell.com:7777/pls/htmldb/f?p=111:101:0::NO::P101_PROJECT_INSTANCE:PRJ3
After clicking on the link it does open application, but report with complete data. now in Mozilla if I select address bar and press enter, it refreshes and does retrieve report with desired parameter. Do you have any clue why it doesnt do in first place? (in internet explorer, this work around doesnt help until you manually change the parameter from PRJ3 to PRJ2 and press enter).
Please help.
Thanks,
Prashant
4084311331Thanks Vikas for helping me to figure out myself.
The debug feature really helped!
My application was having computation on same item that was getting defaulted on new instance. I made that computation conditional and now it works!
Thanks a lot! -
PL/SQL process and popup URL
Hi,
I have a PL/SQL process which is called on submit but a button. This Pl/SQL creates a file on the web-server and I then want to open this file in a new browser window using the URL path to it. Can this be done from pl/sql or do I need to embed some javascript somewhere in the page. My eg block is :-
begin
pack.proc(15);
owa_util.mime_header('application/vnd.ms-word');
htp.init ;
owa_util.redirect_url('http://server:port/my_dir/myfile.doc');
end;
The redirect doesnt do anything.
Thanks for any assistance,
BrandonHi Teku,
You just have a look at this thread, where u can find a solution for your problem.
INSERTING Records into Second table based on First table Primary Key
hope this helps.
Bye,
Srikavi
Maybe you are looking for
-
I am very new to this site so I hope I get the format right... I am using Oracle Application Express Edition and trying to answer a question for my class, but I keep getting the same error every time. I've looked it up and it's apparently a storage e
-
BB8830 SW Ver 4.5 - Three Issues
I have a 8830 from Sprint. I have 3 issues thet I would like addressed: 1. The device is locking up frequently, requiring a hard reset (remove the battery). Is this a common problem and is someone looking into it? 2. When I have to do a hard rese
-
I could really use Customer Service help. I received Photoshop Elements as a gift for Christmas...I waiting until i got a new laptop so that I could use that as i was having trouble with older computer. However, I am having trouble installing the sof
-
Uninstall CS3 on XP Reinstall on Win 7
I have recently install Win 7 on my computer as a second OS. I have CS3 install on the Win XP OS on the same computer, can I uninstall from XP and reinstall on Win 7,so when i upgrade to CS5.5 everything will be in Win7 ? ? I have all my DVD and Ado
-
Formating telephone number in a table
I have a table contact info with contact_tel, contact_fax etc. The contact_tel, contact_fax are inputted without formating, some are null example Contact_tel contact Fax 111-463-8277 111-463-8277 111-1111 111-1111 1111111111 1111111111 Null null (111