Clicking the button leads to new window to (Dmitry

hai....
i have created a portal form
and i have written a plsql procedure to display the report... the
plsql procedure
is
cvalue varchar2(10):='Report';
cursor enquiry is select * from oredu_enqs;
cursor enqs is select * from oredu_enqs where
OR_REG_REGION in
(SELECT REGION FROM ORE_REGS WHERE ACCMGR_ID=portal40.wwctx_api.get_user);
begin
if cvalue='Report' then
If (portal40.wwctx_api.get_user='JAYANTHAN')then
htp.br;
htp.br;
htp.tableOpen('BORDER=2');
htp.CenterOpen();
htp.TableRowOpen;
htp.TableHeader('Region');
htp.TableHeader('Enquiry No');
htp.TableHeader('Name');
htp.TableHeader('Address');
htp.TableHeader('Company');
htp.TableHeader('Phone(Office)');
htp.TableHeader('Phone(Residence)');
htp.TableHeader('Fax');
htp.TableHeader('Email');
htp.TableHeader('Accademic Qualification');
htp.TableHeader('Professional Qualification');
htp.TableHeader('Work Experience');
htp.TableHeader('Request Date');
htp.TableHeader('Comments');
htp.TableHeader('Course Enquired For');
htp.TableHeader('Enquiry Tyep');
htp.TableHeader('Action Taken');
htp.TableHeader('Date Of Action');
htp.TableHeader('Status');
htp.TableHeader('Remarks');
htp.TableRowClose;
FOR i IN enquiry LOOP
htp.TableRowOpen;
htp.TableData(i.or_reg_region);
htp.TableData(i.enq_no);
htp.TableData(i.first_name| |i.last_name);
htp.TableData(i.address| |i.address2| |i.address3);
htp.TableData(i.company);
htp.TableData(i.phone_off);
htp.TableData(i.phone_res);
htp.TableData(i.fax);
htp.TableData(i.email);
htp.TableData(i.qual_acc);
htp.TableData(i.qual_prof);
htp.TableData(i.work_exp);
htp.TableData(i.date_req);
htp.TableData(i.comments);
htp.TableData(i.course);
htp.TableData(i.enq_type);
htp.TableData(i.action_taken);
htp.TableData(i.date_action);
htp.TableData(i.status);
htp.TableData(i.remarks);
htp.TableRowClose;
END LOOP;
htp.tableclose();
htp.appletclose();
else
htp.TableOpen('BORDER=2',cattributes=>'VALIGN="TOP"');
htp.TableRowOpen;
htp.TableHeader('Region');
htp.TableHeader('Enquiry No');
htp.TableHeader('Name');
htp.TableHeader('Address');
htp.TableHeader('Company');
htp.TableHeader('Phone(Office)');
htp.TableHeader('Phone(Residence)');
htp.TableHeader('Fax');
htp.TableHeader('Email');
htp.TableHeader('Accademic Qualification');
htp.TableHeader('Professional Qualification');
htp.TableHeader('Work Experience');
htp.TableHeader('Request Date');
htp.TableHeader('Comments');
htp.TableHeader('Course Enquired For');
htp.TableHeader('Enquiry Tyep');
htp.TableHeader('Action Taken');
htp.TableHeader('Date Of Action');
htp.TableHeader('Status');
htp.TableHeader('Remarks');
htp.TableRowClose;
FOR j IN enqs LOOP
htp.TableRowOpen;
htp.TableData(j.or_reg_region);
htp.TableData(j.enq_no);
htp.TableData(j.first_name| |j.last_name);
htp.TableData(j.address| |j.address2| |j.address3);
htp.TableData(j.company);
htp.TableData(j.phone_off);
htp.TableData(j.phone_res);
htp.TableData(j.fax);
htp.TableData(j.email);
htp.TableData(j.qual_acc);
htp.TableData(j.qual_prof);
htp.TableData(j.work_exp);
htp.TableData(j.date_req);
htp.TableData(j.comments);
htp.TableData(j.course);
htp.TableData(j.enq_type);
htp.TableData(j.action_taken);
htp.TableData(j.date_action);
htp.TableData(j.status);
htp.TableData(j.remarks);
htp.TableRowClose;
END LOOP;
htp.tableClose();
end if;
end if;
end;
this is the plsql procedure....
procedure is working well in the portal
i want to call this procedure when i click the button and shows the value....
i thing u will understand after reading my
program....
after checking the cvalue i want to go to
new window,and that window should show the
value...
please
thanks in advance

953006 wrote:
I would like to have a button that when clicked once, redirects the page to a URL in a new tab. The URL is based on a sql query from a dynamic action linked to the button.
Way 1:
I have tried to use redirect_url() in the dynamic action itself.
<pre>
htp.init;
owa_util.redirect_url('http://myurl.com');
</pre>
But it didn't work at all.
So I tried ...
Way 2:
1. In the dynamic action set a page item value to the url. This is Action 1 of the dynamic action.
<pre>
:P33_URL_ITEM := function_that_returns_the_url;
</pre>
2. Submit the page. This is Action 2 of the dynamic action.
3. Action 3 of the dynamic action executes the following JavaScript code:
<pre>
window.location.href="&P33_URL_ITEM.";
</pre>
However, the problem is P33_URL_ITEM is not set the first time (or whenever the session is cleared), so that the button has to be clicked twice in order for the page to be redirected.
Not-important question: Does anyone know how to fix it so that only 1 click is needed?
Can't you set the P33_URL_ITEM page item in a on-load pl/sql process? It is difficult to give a precise answer unless I see what you are doing the page.
Way 3:
Use APEX Branch.
Important question: Does anyone know how to make the branch open the URL in a new page?
This thread might help:
Open URL in new window when button pressed

Similar Messages

  • Why did in the right-click menu the "open in a new tab" and the "open in a new window" -buttons change places? And can you change it back?

    With the Firefox 4 RC, the "open in a new tab" and the "open in a new window" -buttons have changed places. It's quite annoying because I normally do it without even looking at it, but now it always opens in a new window instead of a new tab. Is it possible to change it back? Maybe in your own settings?

    You can use the menu editor extension to rearrange menu items - https://addons.mozilla.org/firefox/addon/menu-editor

  • I want to open new tabs with other ones open. So I click the + button for tabs and it does nothing. I right click and click new tab and still nothing. How do I get that feature to work again.

    I click the + button to open a new tab and it doesn't do anything, not even open a new tab. I try to right click and open a new tab and still don't work. But if I right click a link and click open in new tab it will work. How do I get to open my tabs again with the + button?

    Uninstall the Ask toolbar and it should work again. There is a compatibility issue with the Ask toolbar and Firefox that prevents new tabs from being opened.
    There are a couple of places to check for the Ask toolbar:
    * Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    * Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons

  • When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history pa

    When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history page etc. Happens on all options that should open new page. I am so frustrated, this has been happening since Firefox updated itself 2 days ago to Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0C) was fine before that. using windows vista. Can you please advise what I should do? Also can you go back to previous version? Error console eg
    Warning: Error in parsing value for 'cursor'. Declaration dropped.
    Source File: https://ib.nab.com.au/nabib/styles/menu_nab.css?id=009
    Line: 116
    ib.nab.com.au : server does not support RFC 5746, see CVE-2009-3555 and Warning: Selector expected. Ruleset ignored due to bad selector.
    Source File: https://ib.nab.com.au/nabib/styles/nabstyle.css?id=014
    Line: 837
    == This happened ==
    Every time Firefox opened
    == 2 days ago after update.

    Do you have that problem when running in the Firefox SafeMode?
    [http://support.mozilla.com/en-US/kb/Safe+Mode]
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this:
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • When I open a new firefox window, and click the + to open a new tab, my first page disappears - I can only seem to return to it by closing all the other tabs.

    The issue occurs like this:
    1. Open a new window
    2. Enter a URL and go to a page (any page).
    3. Click the + and open a new tab.
    4. The first tab is no longer visible in the tabs bar.
    5. I keep opening lots of other tabs and the first tab stays invisible (all the others stay visible / accessible).
    6. The only way I've found to return to the first tab is to close all my other tabs.
    This doesn't always happen (i.e. I can have two firefox windows open and only one of them does it!)
    I'm not sure if it's a feature or something? But it's very annoying!
    Any ideas welcomed.
    Thanks

    Hi - yes I can! I hadn't noticed that little arrow before, thanks.
    However I would really like to stop it hiding the first tab all the time.... Even when I navigate to the first tab using that "list all tabs" arrow, it still remains 'hidden' (i.e. I can't see a tab up the top, even when that tab is active. And when I navigate away from it to another tab, it is invisible again).
    Any ideas?
    Thanks

  • I preordered One Direction's new album Midnight Memories, but did not purchase it. It is not in my downloads or purchases even though it says it's purchased. I can't even buy it because it says purchased and will not let me click the button. Please help!

    I preordered One Direction's new album Midnight Memories, but did not purchase it. It is not in my downloads or purchases even though it says it's purchased. I can't even buy it because it says purchased and will not let me click the button. Please help!

    Try:
    HT2519 Pre-ordered album, it says...: Apple Support Communities

  • I click a link but it doesn't open. Instead I get a popup saying "Open the link in a new window," "Open link in a new tab," etc. How can I kill this popup or whatever it is forever?

    I click a link but it doesn’t open. Instead I get a popup saying “Open the link in a new window,” “Open link in a new tab,” etc. How can I kill this popup or whatever it is forever?

    That happens if the server sends the file as text/plain.
    You can see this if you open "Tools > Page Info > General": Content-Type: text/plain
    Files send this way will always open in a tab.
    *https://developer.mozilla.org/Tools/Web_Console

  • I cannot open a new browser window by double clicking Firefox icon or selecting NEW WINDOW from the file menu.

    I can open only 1 browser window and I can't open another or multiple windows by double clicking Firefox icon or selecting NEW WINDOW from the file menu.
    Looking forward to your earliest reply.
    Thanks and regards,
    Sheraz

    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • I cannot get a new tab to open when I click the + button.

    Usually when I click the + button, a new tab would open up. But during the last couple of days it has not worked. I click it and nothing happens. I've searched for a solution, but I can not find one. What do I need to do to correct this problem?

    That can a problem with the Ask<i></i>.com toolbar (Tools > Add-ons > Extensions)
    See:
    * [[Troubleshooting extensions and themes]]

  • I am a new user of iTunes and want to download music.   The instructions are:  1. Find the item you want  2. Click the button to download.   My problem is that I can not find a download button - what does it look like please?

    I am a new uses of iTunes and want to download music.   The instructions say:
    1.  Find the item you want
    2.  Click the button to download
    My problem is that I can't find a download button to click.   Where does it appear please?

    Thank you a million times over.   I've literally spent hours trying to solve this and I think those responsible for compiling the 'Help' notes for iTunes would be well advised to make this point clear in the downloading instructions.

  • Is it possible to controll the positioning of a new window when someone clicks  one of my links

    I was wondering if it was possible to control the positoning of a new window that pops up  when someone clicks one of my site document links on my dreamweaver site. When a link is clicked and the new window pops up, I'd like to control the window size and positioning of the new window. Is this possible without having to use a tooltip or other option?

    Some browsers will display pop-up windows in the parent window, some will open them in a new tab or new window.  I'm afraid there is nothing you can do about end user settings.
    Creating link to open in a Pop-Up window using DW and the Behaviors Panel
    http://www.cbtcafe.com/dreamweaver/popup_text/index.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • I have a late 2011 Macbook and whenever I open any application it opens only the top menu bar and no viewer windows.I always have to click cmd n to open new windows and it is quite annoying.Does anyone know how to fix this issue? Thx

    I have a late 2011 Macbook and whenever I open any application it opens only the top menu bar and no viewer windows.I always have to click cmd n to open new windows and it is quite annoying.Does anyone know how to fix this issue? Thx

    You may have more of a chance getting a quicker answer here:
    https://discussions.apple.com/community/windows_software/windows_compatibility

  • Hi, problem occurs when I'm clicking a button or a new url on the current site. For instance, when i clicked that "Ask This" button on this web site, It redirects me to the default homepage. I cant go back and I'm losing the previous web site HELP PLEASE!

    Hi, problem occurs when I'm clicking a button or a new url on the current site. For instance, when i clicked that "Ask This" button on this web site, It redirects me to the default homepage. I cant go back and I'm losing the previous web site HELP PLEASE!

    Try the Firefox SafeMode. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    # You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    # Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • When I click on a link, a new window opens but is blank and says "stopped" at the bottom

    Happens on any website.eg-if I am looking for a quote on moneysupermarket.com and I lick on the required link, a new window will open but it will be blank and in the bottom left hand corner the word stopped appears

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    There are other things that need attention.
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    # Shockwave Flash 10.0 r32
    # Java Plug-in 1.6.0_06 for Netscape Navigator (DLL Helper)
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    Update the [[Java]] plugin to the latest version.
    *http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)

  • Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL..

    Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL. However, if I right click on a link and select "Open Link In New Tab", the Tab shows URL in address bar. So it's working when it's a New Tab but not a New Window.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

Maybe you are looking for